Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr MEV_MEV.Test.TestPatientController1.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.TestPatientController1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="MEV_MEV.Test.TestPatientController1") translateModel(MEV.Test.TestPatientController1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="MEV_MEV.Test.TestPatientController1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001/0.001, allocations: 102.7 kB / 16.35 MB, free: 6.285 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.0009521/0.0009521, allocations: 196.2 kB / 17.29 MB, free: 5.863 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.167/1.167, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.008252/0.008252, allocations: 1.936 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.001398/0.001398, allocations: 71.89 kB / 331.3 MB, free: 15.19 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1661/0.1675, allocations: 47.13 MB / 378.4 MB, free: 53.04 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController1): time 0.002026/0.1696, allocations: 1.518 MB / 379.9 MB, free: 52.73 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008885/0.1705, allocations: 0.7355 MB / 380.7 MB, free: 52.47 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.107e-05/0.1705, allocations: 5.625 kB / 380.7 MB, free: 52.47 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001029/0.1707, allocations: 48.03 kB / 380.7 MB, free: 52.47 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.115e-05/0.1707, allocations: 59.25 kB / 380.8 MB, free: 52.46 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004643/0.1712, allocations: 173.7 kB / 380.9 MB, free: 52.45 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001753/0.1714, allocations: 168.1 kB / 381.1 MB, free: 52.44 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.223e-05/0.1715, allocations: 17.14 kB / 381.1 MB, free: 52.44 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.314e-05/0.1716, allocations: 80.66 kB / 381.2 MB, free: 52.43 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000148/0.1717, allocations: 101.8 kB / 381.3 MB, free: 52.41 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.453e-05/0.1718, allocations: 9.938 kB / 381.3 MB, free: 52.41 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001905/0.172, allocations: 155.1 kB / 381.5 MB, free: 52.41 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.685e-05/0.172, allocations: 32.38 kB / 381.5 MB, free: 52.41 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.259e-05/0.1721, allocations: 67.73 kB / 381.6 MB, free: 52.39 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002527/0.1724, allocations: 231 kB / 381.8 MB, free: 52.35 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.1724, allocations: 1.797 kB / 381.8 MB, free: 52.35 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1724, allocations: 4.594 kB / 381.8 MB, free: 52.35 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.238e-06/0.1724, allocations: 0 / 381.8 MB, free: 52.35 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.0005962/0.173, allocations: 0.5151 MB / 382.3 MB, free: 51.89 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.713e-05/0.173, allocations: 12.23 kB / 382.3 MB, free: 51.88 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.027e-05/0.1731, allocations: 19.03 kB / 382.3 MB, free: 51.88 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001859/0.1733, allocations: 218 kB / 382.5 MB, free: 51.66 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.359e-05/0.1733, allocations: 37 kB / 382.6 MB, free: 51.63 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.549e-05/0.1734, allocations: 7.594 kB / 382.6 MB, free: 51.63 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002338/0.1736, allocations: 142.4 kB / 382.7 MB, free: 51.59 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.1736, allocations: 0 / 382.7 MB, free: 51.59 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.594e-05/0.1737, allocations: 5.375 kB / 382.7 MB, free: 51.59 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.1737, allocations: 3.859 kB / 382.7 MB, free: 51.59 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001831/0.1738, allocations: 93.09 kB / 382.8 MB, free: 51.59 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003984/0.1743, allocations: 364.5 kB / 383.2 MB, free: 51.32 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002286/0.1745, allocations: 139.8 kB / 383.3 MB, free: 51.29 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000138/0.1746, allocations: 103.1 kB / 383.4 MB, free: 51.27 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.17e-05/0.1747, allocations: 1.281 kB / 383.4 MB, free: 51.27 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000274/0.1749, allocations: 246.7 kB / 383.7 MB, free: 51.12 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.543e-06/0.175, allocations: 0 / 383.7 MB, free: 51.12 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0006382/0.1756, allocations: 455.5 kB / 384.1 MB, free: 50.94 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.525e-05/0.1756, allocations: 114.2 kB / 384.2 MB, free: 50.81 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001206/0.1758, allocations: 196 kB / 384.4 MB, free: 50.68 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.829e-05/0.1758, allocations: 27.92 kB / 384.4 MB, free: 50.65 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.555e-05/0.1758, allocations: 106.4 kB / 384.5 MB, free: 50.55 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.947e-05/0.1759, allocations: 55.5 kB / 384.6 MB, free: 50.51 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.428e-05/0.176, allocations: 46.41 kB / 384.6 MB, free: 50.48 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.352e-05/0.176, allocations: 333.5 kB / 385 MB, free: 50.16 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000139/0.1761, allocations: 86.36 kB / 385.1 MB, free: 50.14 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001292/0.1763, allocations: 88.25 kB / 385.1 MB, free: 50.11 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002638/0.1766, allocations: 287.4 kB / 385.4 MB, free: 49.93 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.1766, allocations: 0 / 385.4 MB, free: 49.93 MB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004345/0.177, allocations: 386.4 kB / 385.8 MB, free: 49.75 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.591e-05/0.1771, allocations: 69.81 kB / 385.9 MB, free: 49.68 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.058e-06/0.1771, allocations: 1.031 kB / 385.9 MB, free: 49.68 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.184e-05/0.1771, allocations: 2.156 kB / 385.9 MB, free: 49.68 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.677e-05/0.1772, allocations: 16.06 kB / 385.9 MB, free: 49.68 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.899e-06/0.1772, allocations: 5.125 kB / 385.9 MB, free: 49.68 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001171/0.1773, allocations: 25.95 kB / 385.9 MB, free: 49.66 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.939e-05/0.1773, allocations: 6.672 kB / 385.9 MB, free: 49.66 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.000119/0.1775, allocations: 220.1 kB / 386.1 MB, free: 49.47 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.188e-05/0.1775, allocations: 20 kB / 386.2 MB, free: 49.46 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.149e-05/0.1775, allocations: 21.64 kB / 386.2 MB, free: 49.45 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.1776, allocations: 1.094 kB / 386.2 MB, free: 49.45 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.1776, allocations: 1.766 kB / 386.2 MB, free: 49.45 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.1776, allocations: 4.75 kB / 386.2 MB, free: 49.45 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001441/0.1777, allocations: 257.2 kB / 386.4 MB, free: 49.21 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.1777, allocations: 1.094 kB / 386.4 MB, free: 49.21 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.285e-05/0.1778, allocations: 13.91 kB / 386.5 MB, free: 49.21 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.1778, allocations: 0 / 386.5 MB, free: 49.21 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.126e-05/0.1778, allocations: 10.91 kB / 386.5 MB, free: 49.21 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.1778, allocations: 1.844 kB / 386.5 MB, free: 49.21 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.1778, allocations: 0 / 386.5 MB, free: 49.21 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005129/0.1784, allocations: 460 kB / 386.9 MB, free: 48.98 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.699e-05/0.1784, allocations: 90.81 kB / 387 MB, free: 48.88 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.997e-05/0.1784, allocations: 8.469 kB / 387 MB, free: 48.88 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001053/0.1786, allocations: 15.8 kB / 387 MB, free: 48.87 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.089e-05/0.1786, allocations: 17.12 kB / 387 MB, free: 48.87 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.719e-05/0.1787, allocations: 17.58 kB / 387.1 MB, free: 48.86 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.785e-05/0.1787, allocations: 132.5 kB / 387.2 MB, free: 48.77 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1787, allocations: 0 / 387.2 MB, free: 48.77 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002789/0.179, allocations: 80.64 kB / 387.3 MB, free: 48.76 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.0001765/0.1792, allocations: 161.1 kB / 387.4 MB, free: 48.65 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004308/0.1796, allocations: 398.8 kB / 387.8 MB, free: 48.43 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.1797, allocations: 0 / 387.8 MB, free: 48.43 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002237/0.1799, allocations: 280.3 kB / 388.1 MB, free: 48.24 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002036/0.1801, allocations: 22.31 kB / 388.1 MB, free: 48.23 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000445/0.1806, allocations: 343.5 kB / 388.4 MB, free: 48.04 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001152/0.1807, allocations: 0.7243 MB / 389.2 MB, free: 47.34 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.733e-05/0.1807, allocations: 7.078 kB / 389.2 MB, free: 47.34 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.558e-05/0.1808, allocations: 18.31 kB / 389.2 MB, free: 47.33 MB / 318.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1808, allocations: 0 / 389.2 MB, free: 47.33 MB / 318.1 MB Notification: Performance of Templates: time 0.3221/0.5029, allocations: 2.629 MB / 391.8 MB, free: 47.19 MB / 318.1 MB make -j1 -f MEV_MEV.Test.TestPatientController1.makefile (rm -f MEV_MEV.Test.TestPatientController1.pipe ; mkfifo MEV_MEV.Test.TestPatientController1.pipe ; head -c 1048576 < MEV_MEV.Test.TestPatientController1.pipe >> ../files/MEV_MEV.Test.TestPatientController1.sim & ./MEV_MEV.Test.TestPatientController1 -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > MEV_MEV.Test.TestPatientController1.pipe 2>&1)