Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr MEV_MEV.Test.TestPatientController2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo", uses=false) Using package MEV with version 1.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(MEV.Test.TestPatientController2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="MEV_MEV.Test.TestPatientController2") translateModel(MEV.Test.TestPatientController2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="MEV_MEV.Test.TestPatientController2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001205/0.001205, allocations: 104.1 kB / 16.35 MB, free: 6.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001191/0.001191, allocations: 193.4 kB / 17.29 MB, free: 5.867 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.161/1.161, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.007523/0.007523, allocations: 1.935 MB / 272.5 MB, free: 10.09 MB / 222.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001361/0.001361, allocations: 63.89 kB / 331.3 MB, free: 15.19 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1586/0.16, allocations: 47.13 MB / 378.4 MB, free: 53.2 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController2): time 0.002022/0.162, allocations: 1.527 MB / 379.9 MB, free: 52.87 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008911/0.1629, allocations: 0.7348 MB / 380.7 MB, free: 52.61 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.518e-05/0.163, allocations: 2.656 kB / 380.7 MB, free: 52.61 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001053/0.1631, allocations: 58.23 kB / 380.7 MB, free: 52.61 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.464e-05/0.1632, allocations: 71.91 kB / 380.8 MB, free: 52.6 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004544/0.1637, allocations: 168.8 kB / 381 MB, free: 52.59 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000178/0.1638, allocations: 175.2 kB / 381.1 MB, free: 52.58 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.56e-05/0.1639, allocations: 11.64 kB / 381.1 MB, free: 52.58 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.431e-05/0.164, allocations: 86.66 kB / 381.2 MB, free: 52.57 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001529/0.1642, allocations: 115.9 kB / 381.3 MB, free: 52.55 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.35e-05/0.1642, allocations: 9.5 kB / 381.3 MB, free: 52.55 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001827/0.1644, allocations: 157.2 kB / 381.5 MB, free: 52.55 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.663e-05/0.1645, allocations: 33.39 kB / 381.5 MB, free: 52.54 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.665e-05/0.1645, allocations: 69.88 kB / 381.6 MB, free: 52.52 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002559/0.1648, allocations: 235.5 kB / 381.8 MB, free: 52.48 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.1648, allocations: 6.094 kB / 381.8 MB, free: 52.48 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.1648, allocations: 0 / 381.8 MB, free: 52.48 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.105e-06/0.1648, allocations: 1.656 kB / 381.8 MB, free: 52.48 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0005931/0.1654, allocations: 0.5301 MB / 382.4 MB, free: 52 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.9e-05/0.1655, allocations: 13.89 kB / 382.4 MB, free: 52 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.147e-05/0.1655, allocations: 19.09 kB / 382.4 MB, free: 51.99 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001936/0.1657, allocations: 221.2 kB / 382.6 MB, free: 51.78 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.275e-05/0.1658, allocations: 33.23 kB / 382.6 MB, free: 51.75 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.207e-05/0.1658, allocations: 16.98 kB / 382.7 MB, free: 51.75 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002293/0.166, allocations: 137.7 kB / 382.8 MB, free: 51.71 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.223e-06/0.1661, allocations: 0 / 382.8 MB, free: 51.71 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.585e-05/0.1661, allocations: 7.641 kB / 382.8 MB, free: 51.71 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-06/0.1661, allocations: 1.375 kB / 382.8 MB, free: 51.71 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001664/0.1663, allocations: 91.75 kB / 382.9 MB, free: 51.71 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004224/0.1667, allocations: 378.4 kB / 383.3 MB, free: 51.42 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002265/0.1669, allocations: 137.5 kB / 383.4 MB, free: 51.36 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001316/0.1671, allocations: 108.5 kB / 383.5 MB, free: 51.32 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.677e-06/0.1671, allocations: 5.688 kB / 383.5 MB, free: 51.32 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000269/0.1674, allocations: 237.3 kB / 383.7 MB, free: 51.17 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.603e-06/0.1674, allocations: 0 / 383.7 MB, free: 51.17 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0006322/0.168, allocations: 479.6 kB / 384.2 MB, free: 50.98 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.489e-05/0.1681, allocations: 116.6 kB / 384.3 MB, free: 50.85 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001295/0.1682, allocations: 197.2 kB / 384.5 MB, free: 50.72 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.912e-05/0.1682, allocations: 32.77 kB / 384.6 MB, free: 50.69 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.808e-05/0.1683, allocations: 111.3 kB / 384.7 MB, free: 50.59 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.792e-05/0.1683, allocations: 59.97 kB / 384.7 MB, free: 50.54 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.25e-05/0.1684, allocations: 44.73 kB / 384.8 MB, free: 50.51 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.259e-05/0.1684, allocations: 335.1 kB / 385.1 MB, free: 50.19 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001391/0.1686, allocations: 87.23 kB / 385.2 MB, free: 50.17 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001238/0.1687, allocations: 95.39 kB / 385.3 MB, free: 50.14 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002654/0.169, allocations: 299.6 kB / 385.6 MB, free: 49.95 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.169, allocations: 1.688 kB / 385.6 MB, free: 49.95 MB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004499/0.1694, allocations: 390.7 kB / 385.9 MB, free: 49.77 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.515e-05/0.1695, allocations: 71.98 kB / 386 MB, free: 49.71 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.108e-06/0.1695, allocations: 0 / 386 MB, free: 49.71 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.406e-05/0.1695, allocations: 1.938 kB / 386 MB, free: 49.71 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001002/0.1696, allocations: 26.16 kB / 386 MB, free: 49.7 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.129e-06/0.1696, allocations: 4 kB / 386 MB, free: 49.7 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001136/0.1697, allocations: 18.19 kB / 386.1 MB, free: 49.69 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.835e-05/0.1698, allocations: 10.45 kB / 386.1 MB, free: 49.69 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 23 (dutyCycle.nextEventScaled,dutyCycle.nextEvent,$PRE.dutyCycle.nextEvent,dutyCycle.last,dutyCycle.b,dutyCycle.a,RR.nextEventScaled,RR.nextEvent,$PRE.RR.nextEvent,RR.last,RR.b,RR.a,patientController.active,$PRE.patientController.active,patientController.t_off,$PRE.patientController.t_off,patientController.t_on,$PRE.patientController.t_on,$whenCondition5,$whenCondition4,$whenCondition2,$whenCondition1,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 16 * 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.0001182/0.1699, allocations: 218.8 kB / 386.3 MB, free: 49.49 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.331e-05/0.1699, allocations: 21.31 kB / 386.3 MB, free: 49.48 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.145e-05/0.17, allocations: 21.64 kB / 386.3 MB, free: 49.47 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.17, allocations: 2.828 kB / 386.3 MB, free: 49.47 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.075e-06/0.17, allocations: 0 / 386.3 MB, free: 49.47 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.17, allocations: 6.812 kB / 386.3 MB, free: 49.47 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001431/0.1701, allocations: 259.8 kB / 386.6 MB, free: 49.24 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.1702, allocations: 1.547 kB / 386.6 MB, free: 49.24 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.178e-05/0.1702, allocations: 9.734 kB / 386.6 MB, free: 49.24 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.1702, allocations: 2.188 kB / 386.6 MB, free: 49.24 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.975e-05/0.1702, allocations: 7.234 kB / 386.6 MB, free: 49.24 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.1703, allocations: 1 kB / 386.6 MB, free: 49.24 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.1703, allocations: 2.375 kB / 386.6 MB, free: 49.24 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005294/0.1708, allocations: 481 kB / 387.1 MB, free: 49 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.768e-05/0.1708, allocations: 97.88 kB / 387.2 MB, free: 48.89 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.934e-05/0.1709, allocations: 12.38 kB / 387.2 MB, free: 48.88 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001034/0.171, allocations: 12.12 kB / 387.2 MB, free: 48.88 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.226e-05/0.171, allocations: 17.39 kB / 387.2 MB, free: 48.88 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.629e-05/0.1711, allocations: 13.22 kB / 387.2 MB, free: 48.88 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.443e-05/0.1712, allocations: 149.5 kB / 387.4 MB, free: 48.78 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1712, allocations: 0 / 387.4 MB, free: 48.78 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002711/0.1715, allocations: 80.61 kB / 387.5 MB, free: 48.77 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition3,$whenCondition1,$whenCondition2,$whenCondition4,$whenCondition5,patientController.t_on,patientController.t_off,patientController.active,RR.a,RR.b,RR.last,RR.nextEvent,RR.nextEventScaled,dutyCycle.a,dutyCycle.b,dutyCycle.last,dutyCycle.nextEvent,dutyCycle.nextEventScaled) * Number of discrete states: 14 (dutyCycle.nextEvent,dutyCycle.last,dutyCycle.nextEventScaled,dutyCycle.b,dutyCycle.a,$whenCondition4,RR.nextEvent,RR.last,RR.nextEventScaled,RR.b,RR.a,$whenCondition5,patientController.active,patientController.t_on) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 3 * 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.000167/0.1716, allocations: 157.1 kB / 387.6 MB, free: 48.66 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004283/0.1721, allocations: 405.4 kB / 388 MB, free: 48.44 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.1721, allocations: 0 / 388 MB, free: 48.44 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002166/0.1723, allocations: 289.5 kB / 388.3 MB, free: 48.25 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001996/0.1725, allocations: 23.47 kB / 388.3 MB, free: 48.24 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004544/0.173, allocations: 357.1 kB / 388.7 MB, free: 48.04 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001192/0.1731, allocations: 0.724 MB / 389.4 MB, free: 47.35 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.747e-05/0.1731, allocations: 7.359 kB / 389.4 MB, free: 47.35 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.62e-05/0.1732, allocations: 22.88 kB / 389.4 MB, free: 47.33 MB / 318.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1732, allocations: 2.719 kB / 389.4 MB, free: 47.33 MB / 318.1 MB Notification: Performance of Templates: time 0.1704/0.3436, allocations: 2.628 MB / 392 MB, free: 47.2 MB / 318.1 MB make -j1 -f MEV_MEV.Test.TestPatientController2.makefile (rm -f MEV_MEV.Test.TestPatientController2.pipe ; mkfifo MEV_MEV.Test.TestPatientController2.pipe ; head -c 1048576 < MEV_MEV.Test.TestPatientController2.pipe >> ../files/MEV_MEV.Test.TestPatientController2.sim & ./MEV_MEV.Test.TestPatientController2 -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > MEV_MEV.Test.TestPatientController2.pipe 2>&1)