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.001137/0.001138, allocations: 107.5 kB / 15.99 MB, free: 6.355 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.001226/0.001226, allocations: 198.5 kB / 16.91 MB, free: 6.195 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.362/1.362, allocations: 205.1 MB / 222.8 MB, free: 4.566 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.009432/0.009432, allocations: 1.927 MB / 272 MB, free: 3.375 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.001417/0.001417, allocations: 68.12 kB / 330 MB, free: 33.15 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08154/0.08297, allocations: 47.14 MB / 377.1 MB, free: 1.977 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController1): time 0.002626/0.08563, allocations: 1.594 MB / 378.7 MB, free: 372 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001125/0.08678, allocations: 0.7333 MB / 379.5 MB, free: 15.62 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.066e-05/0.08685, allocations: 4 kB / 379.5 MB, free: 15.62 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001209/0.08698, allocations: 47.88 kB / 379.5 MB, free: 15.57 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001032/0.0871, allocations: 67.72 kB / 379.6 MB, free: 15.5 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005105/0.08762, allocations: 147.8 kB / 379.7 MB, free: 15.36 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002007/0.08783, allocations: 167.6 kB / 379.9 MB, free: 15.2 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.483e-05/0.08792, allocations: 12 kB / 379.9 MB, free: 15.18 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001039/0.08803, allocations: 79.73 kB / 380 MB, free: 15.11 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001564/0.0882, allocations: 103.7 kB / 380.1 MB, free: 15 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.419e-05/0.08823, allocations: 8 kB / 380.1 MB, free: 15 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001912/0.08842, allocations: 159.8 kB / 380.2 MB, free: 14.84 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.598e-05/0.0885, allocations: 31.91 kB / 380.3 MB, free: 14.81 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.813e-05/0.08858, allocations: 71.66 kB / 380.3 MB, free: 14.74 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002089/0.0888, allocations: 155.9 kB / 380.5 MB, free: 14.59 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.08881, allocations: 4 kB / 380.5 MB, free: 14.58 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.08882, allocations: 0 / 380.5 MB, free: 14.58 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.561e-06/0.08883, allocations: 0 / 380.5 MB, free: 14.58 MB / 286.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.0007233/0.08956, allocations: 0.5177 MB / 381 MB, free: 14 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.316e-05/0.0896, allocations: 15.89 kB / 381 MB, free: 13.99 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.853e-05/0.08966, allocations: 20.75 kB / 381 MB, free: 13.97 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002081/0.08988, allocations: 204.8 kB / 381.2 MB, free: 13.73 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.767e-05/0.08994, allocations: 42.19 kB / 381.3 MB, free: 13.68 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.149e-05/0.08997, allocations: 8.375 kB / 381.3 MB, free: 13.68 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000264/0.09024, allocations: 133.7 kB / 381.4 MB, free: 13.54 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.554e-06/0.09026, allocations: 4 kB / 381.4 MB, free: 13.54 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.547e-05/0.09028, allocations: 0 / 381.4 MB, free: 13.54 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.117e-06/0.09029, allocations: 0 / 381.4 MB, free: 13.54 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001849/0.09048, allocations: 95.89 kB / 381.5 MB, free: 13.44 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004978/0.09099, allocations: 368.6 kB / 381.9 MB, free: 13.03 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002555/0.09126, allocations: 142.5 kB / 382 MB, free: 12.88 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001485/0.09141, allocations: 104.8 kB / 382.1 MB, free: 12.78 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.294e-05/0.09144, allocations: 4 kB / 382.1 MB, free: 12.77 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003564/0.0918, allocations: 237 kB / 382.4 MB, free: 12.52 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.713e-06/0.09181, allocations: 0 / 382.4 MB, free: 12.52 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007293/0.09254, allocations: 456.5 kB / 382.8 MB, free: 12.05 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.038e-05/0.09262, allocations: 122.8 kB / 382.9 MB, free: 11.91 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001569/0.09279, allocations: 183.3 kB / 383.1 MB, free: 11.72 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.873e-05/0.09283, allocations: 33.7 kB / 383.1 MB, free: 11.68 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.35e-05/0.09289, allocations: 104.6 kB / 383.2 MB, free: 11.58 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.267e-05/0.09295, allocations: 59.19 kB / 383.3 MB, free: 11.52 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.827e-05/0.09303, allocations: 45.7 kB / 383.3 MB, free: 11.47 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001077/0.09314, allocations: 330.8 kB / 383.7 MB, free: 11.14 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001568/0.0933, allocations: 84.19 kB / 383.7 MB, free: 11.05 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001353/0.09345, allocations: 96.36 kB / 383.8 MB, free: 10.96 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003164/0.09377, allocations: 293.7 kB / 384.1 MB, free: 10.65 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.19e-05/0.0938, allocations: 0 / 384.1 MB, free: 10.65 MB / 286.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004794/0.09428, allocations: 373 kB / 384.5 MB, free: 10.27 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.086e-05/0.09435, allocations: 75.38 kB / 384.6 MB, free: 10.18 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.09436, allocations: 0 / 384.6 MB, free: 10.18 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.062e-05/0.09438, allocations: 0 / 384.6 MB, free: 10.18 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000106/0.09449, allocations: 19.94 kB / 384.6 MB, free: 10.16 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.528e-06/0.09451, allocations: 11.98 kB / 384.6 MB, free: 10.15 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001193/0.09463, allocations: 15.91 kB / 384.6 MB, free: 10.13 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.107e-05/0.09466, allocations: 11.98 kB / 384.6 MB, free: 10.12 MB / 286.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.0001663/0.09483, allocations: 214.9 kB / 384.8 MB, free: 9.887 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.581e-05/0.09488, allocations: 19.81 kB / 384.9 MB, free: 9.867 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.556e-05/0.09492, allocations: 17.86 kB / 384.9 MB, free: 9.852 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.09493, allocations: 4 kB / 384.9 MB, free: 9.848 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.09494, allocations: 0 / 384.9 MB, free: 9.848 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.327e-06/0.09495, allocations: 4 kB / 384.9 MB, free: 9.844 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001985/0.09515, allocations: 253.3 kB / 385.1 MB, free: 9.547 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.09516, allocations: 3.984 kB / 385.1 MB, free: 9.543 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.275e-05/0.09522, allocations: 11.94 kB / 385.1 MB, free: 9.531 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.09523, allocations: 4 kB / 385.1 MB, free: 9.527 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.163e-05/0.09526, allocations: 8 kB / 385.2 MB, free: 9.52 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.477e-06/0.09526, allocations: 3.984 kB / 385.2 MB, free: 9.516 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.09527, allocations: 0 / 385.2 MB, free: 9.516 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005794/0.09585, allocations: 460.4 kB / 385.6 MB, free: 9.035 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.257e-05/0.09592, allocations: 92.86 kB / 385.7 MB, free: 8.926 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.317e-05/0.09597, allocations: 8 kB / 385.7 MB, free: 8.918 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001055/0.09608, allocations: 11.98 kB / 385.7 MB, free: 8.906 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.228e-05/0.09615, allocations: 19.97 kB / 385.7 MB, free: 8.887 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.991e-05/0.09618, allocations: 15.94 kB / 385.8 MB, free: 8.871 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001017/0.09629, allocations: 135.2 kB / 385.9 MB, free: 8.738 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.0963, allocations: 0 / 385.9 MB, free: 8.738 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002791/0.09658, allocations: 79.98 kB / 386 MB, free: 8.66 MB / 286.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.000237/0.09683, allocations: 163.5 kB / 386.1 MB, free: 8.492 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005148/0.09735, allocations: 401.6 kB / 386.5 MB, free: 8.078 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.09736, allocations: 4 kB / 386.5 MB, free: 8.074 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002659/0.09763, allocations: 274.8 kB / 386.8 MB, free: 7.781 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002181/0.09786, allocations: 27.98 kB / 386.8 MB, free: 7.754 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005745/0.09845, allocations: 417.1 kB / 387.2 MB, free: 7.316 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002721/0.09874, allocations: 0.7276 MB / 387.9 MB, free: 6.562 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.147e-05/0.09878, allocations: 11.44 kB / 388 MB, free: 6.551 MB / 286.1 MB Notification: Performance of SimCode: time 2.3e-07/0.09878, allocations: 0 / 388 MB, free: 6.551 MB / 286.1 MB Notification: Performance of Templates: time 0.004044/0.1028, allocations: 2.438 MB / 390.4 MB, free: 4.109 MB / 286.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 -lv LOG_STATS > MEV_MEV.Test.TestPatientController1.pipe 2>&1)