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.001028/0.001028, allocations: 99.42 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001392/0.001392, allocations: 185.1 kB / 16.92 MB, free: 6.688 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.348/1.348, allocations: 205.4 MB / 223.1 MB, free: 5.566 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.008733/0.008733, allocations: 1.92 MB / 273.3 MB, free: 3.297 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.0005196/0.0005198, allocations: 20 kB / 332.1 MB, free: 33 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08226/0.08279, allocations: 48.1 MB / 380.2 MB, free: 0.8516 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController2): time 0.001565/0.0844, allocations: 1.251 MB / 381.5 MB, free: 15.59 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001157/0.08557, allocations: 0.7647 MB / 382.3 MB, free: 14.81 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.98e-05/0.08563, allocations: 4 kB / 382.3 MB, free: 14.81 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000118/0.08576, allocations: 59.84 kB / 382.3 MB, free: 14.75 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001038/0.08587, allocations: 63.83 kB / 382.4 MB, free: 14.69 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004336/0.08631, allocations: 131.7 kB / 382.5 MB, free: 14.56 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001673/0.08649, allocations: 147.6 kB / 382.7 MB, free: 14.41 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.912e-05/0.08658, allocations: 15.94 kB / 382.7 MB, free: 14.4 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001012/0.08668, allocations: 75.73 kB / 382.7 MB, free: 14.32 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001577/0.08685, allocations: 107.7 kB / 382.9 MB, free: 14.22 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.144e-05/0.08688, allocations: 4 kB / 382.9 MB, free: 14.21 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002052/0.08709, allocations: 143.9 kB / 383 MB, free: 14.07 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.101e-05/0.08717, allocations: 39.89 kB / 383 MB, free: 14.04 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.849e-05/0.08727, allocations: 89.3 kB / 383.1 MB, free: 13.94 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001951/0.08747, allocations: 156 kB / 383.3 MB, free: 13.79 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.005e-06/0.08748, allocations: 0 / 383.3 MB, free: 13.79 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.08749, allocations: 0 / 383.3 MB, free: 13.79 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.498e-06/0.0875, allocations: 0 / 383.3 MB, free: 13.79 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.0007014/0.0882, allocations: 0.5061 MB / 383.8 MB, free: 13.22 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.437e-05/0.08824, allocations: 12.03 kB / 383.8 MB, free: 13.21 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.198e-05/0.0883, allocations: 16.75 kB / 383.8 MB, free: 13.2 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000221/0.08853, allocations: 227.8 kB / 384 MB, free: 12.93 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.664e-05/0.08859, allocations: 34.27 kB / 384.1 MB, free: 12.89 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.476e-05/0.08863, allocations: 8.375 kB / 384.1 MB, free: 12.89 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002829/0.08891, allocations: 137.7 kB / 384.2 MB, free: 12.75 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.585e-06/0.08893, allocations: 0 / 384.2 MB, free: 12.75 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.989e-05/0.08896, allocations: 12 kB / 384.2 MB, free: 12.73 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.642e-06/0.08897, allocations: 0 / 384.2 MB, free: 12.73 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002067/0.08918, allocations: 103.9 kB / 384.3 MB, free: 12.63 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004866/0.08968, allocations: 364.6 kB / 384.7 MB, free: 12.23 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002763/0.08997, allocations: 146.7 kB / 384.8 MB, free: 12.07 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001572/0.09014, allocations: 112.8 kB / 384.9 MB, free: 11.96 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.957e-06/0.09016, allocations: 3.984 kB / 384.9 MB, free: 11.96 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003615/0.09053, allocations: 241.2 kB / 385.2 MB, free: 11.7 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.663e-06/0.09054, allocations: 4 kB / 385.2 MB, free: 11.7 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007678/0.09131, allocations: 480.4 kB / 385.6 MB, free: 11.21 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.798e-05/0.09139, allocations: 118.8 kB / 385.8 MB, free: 11.07 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001729/0.09157, allocations: 198.7 kB / 386 MB, free: 10.86 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.658e-05/0.09161, allocations: 33.7 kB / 386 MB, free: 10.82 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.249e-05/0.09168, allocations: 108.6 kB / 386.1 MB, free: 10.71 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.146e-05/0.09174, allocations: 51.27 kB / 386.1 MB, free: 10.66 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.424e-05/0.09179, allocations: 29.7 kB / 386.2 MB, free: 10.62 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001285/0.09193, allocations: 338.8 kB / 386.5 MB, free: 10.29 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001553/0.09209, allocations: 92.19 kB / 386.6 MB, free: 10.2 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001436/0.09224, allocations: 88.44 kB / 386.7 MB, free: 10.11 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003482/0.0926, allocations: 304.8 kB / 387 MB, free: 9.785 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.09261, allocations: 0 / 387 MB, free: 9.785 MB / 286.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005117/0.09313, allocations: 409.2 kB / 387.4 MB, free: 9.371 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.055e-05/0.09319, allocations: 67.39 kB / 387.4 MB, free: 9.293 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.09321, allocations: 3.984 kB / 387.4 MB, free: 9.289 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.15e-05/0.09322, allocations: 4 kB / 387.5 MB, free: 9.285 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001039/0.09333, allocations: 19.98 kB / 387.5 MB, free: 9.266 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/0.09335, allocations: 4 kB / 387.5 MB, free: 9.262 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001274/0.09348, allocations: 27.83 kB / 387.5 MB, free: 9.234 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.733e-05/0.09351, allocations: 4 kB / 387.5 MB, free: 9.23 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.0001819/0.0937, allocations: 222.8 kB / 387.7 MB, free: 8.988 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.409e-05/0.09374, allocations: 27.8 kB / 387.8 MB, free: 8.961 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.872e-05/0.09378, allocations: 25.88 kB / 387.8 MB, free: 8.938 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.09379, allocations: 0 / 387.8 MB, free: 8.938 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.0938, allocations: 0 / 387.8 MB, free: 8.938 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.397e-06/0.09381, allocations: 0 / 387.8 MB, free: 8.938 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002093/0.09402, allocations: 253.5 kB / 388 MB, free: 8.641 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.09403, allocations: 3.938 kB / 388 MB, free: 8.637 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.609e-05/0.0941, allocations: 15.98 kB / 388 MB, free: 8.621 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.824e-06/0.0941, allocations: 0 / 388 MB, free: 8.621 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.168e-05/0.09413, allocations: 8 kB / 388.1 MB, free: 8.613 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.09414, allocations: 0 / 388.1 MB, free: 8.613 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.09414, allocations: 0 / 388.1 MB, free: 8.613 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006302/0.09478, allocations: 480.5 kB / 388.5 MB, free: 8.113 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.611e-05/0.09484, allocations: 92.86 kB / 388.6 MB, free: 8.004 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.341e-05/0.09491, allocations: 12 kB / 388.6 MB, free: 7.992 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001126/0.09503, allocations: 11.98 kB / 388.6 MB, free: 7.98 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.814e-05/0.0951, allocations: 23.97 kB / 388.7 MB, free: 7.957 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.986e-05/0.09513, allocations: 12 kB / 388.7 MB, free: 7.945 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.000108/0.09525, allocations: 148.3 kB / 388.8 MB, free: 7.801 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.09525, allocations: 0 / 388.8 MB, free: 7.801 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002981/0.09555, allocations: 79.91 kB / 388.9 MB, free: 7.723 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.0002187/0.09578, allocations: 154.8 kB / 389 MB, free: 7.562 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.00054/0.09633, allocations: 418.7 kB / 389.5 MB, free: 7.129 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.09634, allocations: 0 / 389.5 MB, free: 7.129 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003585/0.0967, allocations: 294.7 kB / 389.7 MB, free: 6.816 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002209/0.09694, allocations: 16 kB / 389.8 MB, free: 6.801 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006367/0.09758, allocations: 440.2 kB / 390.2 MB, free: 6.34 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002848/0.09788, allocations: 0.7319 MB / 390.9 MB, free: 5.582 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.159e-05/0.09792, allocations: 15.38 kB / 390.9 MB, free: 5.566 MB / 286.1 MB Notification: Performance of SimCode: time 3.61e-07/0.09792, allocations: 0 / 390.9 MB, free: 5.566 MB / 286.1 MB Notification: Performance of Templates: time 0.004282/0.1022, allocations: 2.458 MB / 393.4 MB, free: 3.105 MB / 286.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 -lv LOG_STATS > MEV_MEV.Test.TestPatientController2.pipe 2>&1)