Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Pharmacolibrary_Pharmacolibrary.Examples.PD_Examples.PD_linear_effect.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001983/0.001983, allocations: 109.5 kB / 18.95 MB, free: 1.18 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002092/0.002092, allocations: 213.9 kB / 22.25 MB, free: 3.582 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.684/1.684, allocations: 230.6 MB / 256 MB, free: 9.609 MB / 202.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Pharmacolibrary 26.11.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Pharmacolibrary 26.11.0/package.mo): time 1.532/1.532, allocations: 314.1 MB / 0.6119 GB, free: 95.45 MB / 410.7 MB " [Timeout remaining time 178] Using package Pharmacolibrary with version 26.11 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Pharmacolibrary 26.11.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Pharmacolibrary.Examples.PD_Examples.PD_linear_effect,tolerance=1e-06,outputFormat="empty",numberOfIntervals=3600,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Examples.PD_Examples.PD_linear_effect") translateModel(Pharmacolibrary.Examples.PD_Examples.PD_linear_effect,tolerance=1e-06,outputFormat="empty",numberOfIntervals=3600,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Examples.PD_Examples.PD_linear_effect") [Timeout 660] "Notification: Pharmacolibrary requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003995/0.003995, allocations: 81.81 kB / 0.7724 GB, free: 17.16 MB / 410.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1522/0.1562, allocations: 73.99 MB / 0.8446 GB, free: 7.309 MB / 474.8 MB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Examples.PD_Examples.PD_linear_effect): time 0.004853/0.161, allocations: 2.028 MB / 0.8466 GB, free: 5.285 MB / 474.8 MB Notification: Performance of NFInst.instExpressions: time 0.001456/0.1625, allocations: 0.5344 MB / 0.8471 GB, free: 4.75 MB / 474.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.18e-05/0.1626, allocations: 0 / 0.8471 GB, free: 4.75 MB / 474.8 MB Notification: Performance of NFTyping.typeComponents: time 6.978e-05/0.1627, allocations: 12.45 kB / 0.8471 GB, free: 4.738 MB / 474.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0002654/0.1629, allocations: 52.16 kB / 0.8472 GB, free: 4.688 MB / 474.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002095/0.1631, allocations: 52.47 kB / 0.8472 GB, free: 4.637 MB / 474.8 MB Notification: Performance of NFFlatten.flatten: time 0.0003721/0.1635, allocations: 196.4 kB / 0.8474 GB, free: 4.445 MB / 474.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001519/0.1637, allocations: 25.95 kB / 0.8474 GB, free: 4.418 MB / 474.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001781/0.1638, allocations: 75.72 kB / 0.8475 GB, free: 4.344 MB / 474.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001901/0.164, allocations: 72.89 kB / 0.8476 GB, free: 4.273 MB / 474.8 MB Notification: Performance of NFPackage.collectConstants: time 4.973e-05/0.1641, allocations: 16 kB / 0.8476 GB, free: 4.258 MB / 474.8 MB Notification: Performance of NFFlatten.collectFunctions: time 5.929e-05/0.1641, allocations: 19.94 kB / 0.8476 GB, free: 4.238 MB / 474.8 MB Notification: Performance of NFScalarize.scalarize: time 6.36e-05/0.1642, allocations: 32.42 kB / 0.8477 GB, free: 4.207 MB / 474.8 MB Notification: Performance of NFVerifyModel.verify: time 0.0001306/0.1643, allocations: 68.34 kB / 0.8477 GB, free: 4.141 MB / 474.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0003475/0.1647, allocations: 167.4 kB / 0.8479 GB, free: 3.977 MB / 474.8 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1647, allocations: 0.6875 kB / 0.8479 GB, free: 3.977 MB / 474.8 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1647, allocations: 0 / 0.8479 GB, free: 3.977 MB / 474.8 MB Notification: Performance of Transformations before backend: time 5.631e-06/0.1647, allocations: 0.5 kB / 0.8479 GB, free: 3.977 MB / 474.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.001154/0.1658, allocations: 438.2 kB / 0.8483 GB, free: 3.508 MB / 474.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.941e-05/0.1659, allocations: 12.88 kB / 0.8483 GB, free: 3.496 MB / 474.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.787e-05/0.1659, allocations: 16.84 kB / 0.8483 GB, free: 3.48 MB / 474.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004277/0.1664, allocations: 191.9 kB / 0.8485 GB, free: 3.27 MB / 474.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.773e-05/0.1664, allocations: 8.375 kB / 0.8485 GB, free: 3.262 MB / 474.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.732e-05/0.1664, allocations: 20.84 kB / 0.8485 GB, free: 3.242 MB / 474.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003675/0.1668, allocations: 147.8 kB / 0.8487 GB, free: 3.086 MB / 474.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.812e-05/0.1668, allocations: 4.609 kB / 0.8487 GB, free: 3.082 MB / 474.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.112e-05/0.1668, allocations: 8 kB / 0.8487 GB, free: 3.074 MB / 474.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.1668, allocations: 0.625 kB / 0.8487 GB, free: 3.074 MB / 474.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003839/0.1672, allocations: 138.2 kB / 0.8488 GB, free: 2.934 MB / 474.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008885/0.1681, allocations: 420.3 kB / 0.8492 GB, free: 2.484 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004247/0.1685, allocations: 154.8 kB / 0.8494 GB, free: 2.32 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001885/0.1687, allocations: 78.53 kB / 0.8494 GB, free: 2.234 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.061e-05/0.1687, allocations: 7.984 kB / 0.8495 GB, free: 2.227 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004126/0.1692, allocations: 213.2 kB / 0.8497 GB, free: 1.988 MB / 474.8 MB Notification: Performance of pre-optimization done (n=18): time 1.843e-06/0.1692, allocations: 0 / 0.8497 GB, free: 1.988 MB / 474.8 MB Notification: Performance of matching and sorting (n=19): time 0.001862/0.171, allocations: 0.6637 MB / 0.8503 GB, free: 1.266 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001117/0.1711, allocations: 141.1 kB / 0.8504 GB, free: 1.098 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000186/0.1713, allocations: 157.4 kB / 0.8506 GB, free: 0.9375 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 3.022e-05/0.1714, allocations: 34.67 kB / 0.8506 GB, free: 0.8984 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.000101/0.1715, allocations: 116.4 kB / 0.8507 GB, free: 0.7812 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 6.638e-05/0.1715, allocations: 63.53 kB / 0.8508 GB, free: 0.7188 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.553e-05/0.1716, allocations: 43.67 kB / 0.8508 GB, free: 0.6719 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.0001817/0.1718, allocations: 330.8 kB / 0.8512 GB, free: 348 kB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002631/0.172, allocations: 132.7 kB / 0.8513 GB, free: 200 kB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003145/0.1724, allocations: 208.4 kB / 0.8515 GB, free: 15.95 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006047/0.173, allocations: 294.7 kB / 0.8518 GB, free: 15.62 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.173, allocations: 0 / 0.8518 GB, free: 15.62 MB / 490.8 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006436/0.1736, allocations: 366 kB / 0.8521 GB, free: 15.24 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 7.124e-05/0.1737, allocations: 71.33 kB / 0.8522 GB, free: 15.16 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.1737, allocations: 3.938 kB / 0.8522 GB, free: 15.16 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.734e-05/0.1737, allocations: 7.938 kB / 0.8522 GB, free: 15.15 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002265/0.1739, allocations: 41.64 kB / 0.8522 GB, free: 15.11 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.238e-05/0.1739, allocations: 7.984 kB / 0.8522 GB, free: 15.1 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001614/0.1741, allocations: 15.98 kB / 0.8523 GB, free: 15.09 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.143e-05/0.1741, allocations: 8 kB / 0.8523 GB, free: 15.08 MB / 490.8 MB Warning: Assuming fixed start value for the following 2 variables: singleDose.TotalCumulativeMass:VARIABLE(min = -1e-12 unit = \"kg\" fixed = true ) \"Total dose adminitrated by this source\" type: Real linearEffect.Ce:VARIABLE(min = -1e-9 unit = \"kg/m3\" fixed = true ) \"effect site conc\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 13 (ntcomp.Cmin,$PRE.ntcomp.Cmin,ntcomp.Cmax,$PRE.ntcomp.Cmax,ntcomp.rising,$PRE.ntcomp.rising,singleDose.pulse.count,$PRE.singleDose.pulse.count,singleDose.pulse.T_start,$PRE.singleDose.pulse.T_start,$whenCondition2,$whenCondition1,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000236/0.1744, allocations: 175.7 kB / 0.8524 GB, free: 14.89 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.706e-05/0.1744, allocations: 20.53 kB / 0.8524 GB, free: 14.88 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.392e-05/0.1745, allocations: 17.81 kB / 0.8525 GB, free: 14.86 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.1745, allocations: 0 / 0.8525 GB, free: 14.86 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.426e-06/0.1745, allocations: 4.625 kB / 0.8525 GB, free: 14.86 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.161e-06/0.1745, allocations: 3.984 kB / 0.8525 GB, free: 14.85 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008566/0.1753, allocations: 0.5023 MB / 0.853 GB, free: 14.3 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.878e-06/0.1753, allocations: 4.578 kB / 0.853 GB, free: 14.3 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001828/0.1755, allocations: 28.61 kB / 0.853 GB, free: 14.27 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.109e-06/0.1755, allocations: 4.578 kB / 0.853 GB, free: 14.27 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.145e-05/0.1756, allocations: 8 kB / 0.853 GB, free: 14.26 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.788e-06/0.1756, allocations: 4.5 kB / 0.853 GB, free: 14.25 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1756, allocations: 0.5938 kB / 0.853 GB, free: 14.25 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008184/0.1764, allocations: 479.7 kB / 0.8535 GB, free: 13.75 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 2.666e-05/0.1764, allocations: 11.91 kB / 0.8535 GB, free: 13.74 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.18e-05/0.1764, allocations: 12.56 kB / 0.8535 GB, free: 13.73 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001508/0.1766, allocations: 8.781 kB / 0.8535 GB, free: 13.72 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.011e-05/0.1767, allocations: 16.72 kB / 0.8535 GB, free: 13.71 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.644e-05/0.1767, allocations: 11.98 kB / 0.8535 GB, free: 13.7 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.0001167/0.1768, allocations: 123 kB / 0.8536 GB, free: 13.58 MB / 490.8 MB Notification: Performance of sort global known variables: time 8e-08/0.1768, allocations: 0 / 0.8536 GB, free: 13.58 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.0002839/0.1771, allocations: 44.56 kB / 0.8537 GB, free: 13.54 MB / 490.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (linearEffect.Ce,singleDose.TotalCumulativeMass,ntcomp.C,ntcomp.AUC) * Number of discrete variables: 8 ($whenCondition3,$whenCondition1,$whenCondition2,singleDose.pulse.T_start,singleDose.pulse.count,ntcomp.Cmax,ntcomp.Cmin,ntcomp.rising) * Number of discrete states: 6 (singleDose.pulse.count,ntcomp.Cmin,$whenCondition2,ntcomp.Cmax,$whenCondition1,ntcomp.rising) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001387/0.1772, allocations: 107.9 kB / 0.8538 GB, free: 13.42 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.0006195/0.1778, allocations: 365.5 kB / 0.8541 GB, free: 13.02 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.1778, allocations: 0.6875 kB / 0.8541 GB, free: 13.02 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0002567/0.1781, allocations: 161.5 kB / 0.8543 GB, free: 12.85 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003912/0.1785, allocations: 52.47 kB / 0.8543 GB, free: 12.8 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2736/0.4521, allocations: 0.6049 MB / 0.8549 GB, free: 29.03 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001479/0.4522, allocations: 107.4 kB / 0.855 GB, free: 28.95 MB / 490.8 MB Notification: Performance of simCode: alias equations: time 0.0002217/0.4524, allocations: 15.14 kB / 0.8551 GB, free: 28.95 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.816e-05/0.4525, allocations: 20.77 kB / 0.8551 GB, free: 28.94 MB / 490.8 MB Notification: Performance of SimCode: time 1.132e-06/0.4525, allocations: 1.75 kB / 0.8551 GB, free: 28.94 MB / 490.8 MB Notification: Performance of Templates: time 0.01196/0.4645, allocations: 2.69 MB / 0.8577 GB, free: 28.84 MB / 490.8 MB " [Timeout remaining time 660] make -j1 -f Pharmacolibrary_Pharmacolibrary.Examples.PD_Examples.PD_linear_effect.makefile [Timeout 660] (rm -f Pharmacolibrary_Pharmacolibrary.Examples.PD_Examples.PD_linear_effect.pipe ; mkfifo Pharmacolibrary_Pharmacolibrary.Examples.PD_Examples.PD_linear_effect.pipe ; head -c 1048576 < Pharmacolibrary_Pharmacolibrary.Examples.PD_Examples.PD_linear_effect.pipe >> ../files/Pharmacolibrary_Pharmacolibrary.Examples.PD_Examples.PD_linear_effect.sim & ./Pharmacolibrary_Pharmacolibrary.Examples.PD_Examples.PD_linear_effect -abortSlowSimulation -alarm=240 -lv LOG_STATS > Pharmacolibrary_Pharmacolibrary.Examples.PD_Examples.PD_linear_effect.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 7.44103794102557]