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.001453/0.001453, allocations: 108 kB / 15.61 MB, free: 152 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.001593/0.001593, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.38/1.38, allocations: 205.1 MB / 222.4 MB, free: 4.586 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.008933/0.008933, allocations: 1.931 MB / 271.7 MB, free: 3.324 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.001433/0.001433, allocations: 67.84 kB / 329.8 MB, free: 32.82 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07518/0.07663, allocations: 47.14 MB / 377 MB, free: 1.637 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController2): time 0.002854/0.07951, allocations: 1.539 MB / 378.5 MB, free: 80 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001196/0.08073, allocations: 0.7343 MB / 379.2 MB, free: 15.34 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.069e-05/0.08083, allocations: 0 / 379.2 MB, free: 15.34 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001373/0.08098, allocations: 55.86 kB / 379.3 MB, free: 15.28 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001179/0.08112, allocations: 79.69 kB / 379.4 MB, free: 15.2 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005698/0.0817, allocations: 163.6 kB / 379.5 MB, free: 15.04 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002216/0.08193, allocations: 167.6 kB / 379.7 MB, free: 14.88 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.306e-05/0.08203, allocations: 15.98 kB / 379.7 MB, free: 14.86 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001392/0.08218, allocations: 83.73 kB / 379.8 MB, free: 14.78 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001712/0.08236, allocations: 115.7 kB / 379.9 MB, free: 14.67 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.131e-05/0.0824, allocations: 8 kB / 379.9 MB, free: 14.66 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002294/0.08263, allocations: 151.9 kB / 380.1 MB, free: 14.51 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.692e-05/0.08271, allocations: 31.91 kB / 380.1 MB, free: 14.48 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.096e-05/0.08281, allocations: 79.53 kB / 380.2 MB, free: 14.4 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000325/0.08314, allocations: 235.6 kB / 380.4 MB, free: 14.17 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.595e-06/0.08315, allocations: 0 / 380.4 MB, free: 14.17 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.08316, allocations: 0 / 380.4 MB, free: 14.17 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.561e-06/0.08317, allocations: 0 / 380.4 MB, free: 14.17 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.0007909/0.08396, allocations: 0.5294 MB / 380.9 MB, free: 13.58 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.89e-05/0.08401, allocations: 15.89 kB / 381 MB, free: 13.57 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.065e-05/0.08409, allocations: 20.75 kB / 381 MB, free: 13.55 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002436/0.08434, allocations: 216 kB / 381.2 MB, free: 13.3 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.975e-05/0.0844, allocations: 42.2 kB / 381.2 MB, free: 13.25 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.191e-05/0.08443, allocations: 4.375 kB / 381.2 MB, free: 13.25 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000274/0.08471, allocations: 137.7 kB / 381.4 MB, free: 13.11 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-06/0.08473, allocations: 0 / 381.4 MB, free: 13.11 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.843e-05/0.08476, allocations: 4 kB / 381.4 MB, free: 13.1 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.08477, allocations: 0 / 381.4 MB, free: 13.1 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001993/0.08497, allocations: 99.94 kB / 381.5 MB, free: 13 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005422/0.08552, allocations: 376.5 kB / 381.8 MB, free: 12.59 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002763/0.08581, allocations: 138.5 kB / 382 MB, free: 12.44 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001544/0.08598, allocations: 116.8 kB / 382.1 MB, free: 12.32 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.071e-05/0.086, allocations: 0 / 382.1 MB, free: 12.32 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000374/0.08638, allocations: 241 kB / 382.3 MB, free: 12.07 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.523e-06/0.08639, allocations: 0 / 382.3 MB, free: 12.07 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007556/0.08715, allocations: 476.5 kB / 382.8 MB, free: 11.58 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.597e-05/0.08724, allocations: 110.8 kB / 382.9 MB, free: 11.45 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001761/0.08742, allocations: 202.7 kB / 383.1 MB, free: 11.24 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.766e-05/0.08746, allocations: 33.7 kB / 383.1 MB, free: 11.2 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.396e-05/0.08753, allocations: 108.6 kB / 383.2 MB, free: 11.09 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.296e-05/0.0876, allocations: 55.25 kB / 383.3 MB, free: 11.04 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.549e-05/0.08768, allocations: 45.7 kB / 383.3 MB, free: 10.99 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001126/0.0878, allocations: 330.8 kB / 383.6 MB, free: 10.66 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001598/0.08796, allocations: 92.19 kB / 383.7 MB, free: 10.57 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001404/0.08811, allocations: 96.42 kB / 383.8 MB, free: 10.47 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003303/0.08845, allocations: 305.9 kB / 384.1 MB, free: 10.15 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.08847, allocations: 0 / 384.1 MB, free: 10.15 MB / 286.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004963/0.08897, allocations: 386.4 kB / 384.5 MB, free: 9.754 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.142e-05/0.08904, allocations: 75.38 kB / 384.6 MB, free: 9.668 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.08905, allocations: 0 / 384.6 MB, free: 9.668 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.199e-05/0.08907, allocations: 3.938 kB / 384.6 MB, free: 9.664 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001041/0.08918, allocations: 15.94 kB / 384.6 MB, free: 9.648 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-06/0.08919, allocations: 4 kB / 384.6 MB, free: 9.645 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001223/0.08932, allocations: 27.83 kB / 384.6 MB, free: 9.617 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.803e-05/0.08934, allocations: 8 kB / 384.6 MB, free: 9.609 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.0001679/0.08952, allocations: 218.9 kB / 384.9 MB, free: 9.371 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.465e-05/0.08956, allocations: 19.81 kB / 384.9 MB, free: 9.352 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.323e-05/0.0896, allocations: 21.86 kB / 384.9 MB, free: 9.332 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-06/0.08961, allocations: 4 kB / 384.9 MB, free: 9.328 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.08962, allocations: 0 / 384.9 MB, free: 9.328 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/0.08963, allocations: 7.984 kB / 384.9 MB, free: 9.32 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001932/0.08983, allocations: 257.4 kB / 385.2 MB, free: 9.02 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.08984, allocations: 0 / 385.2 MB, free: 9.02 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.227e-05/0.08989, allocations: 11.94 kB / 385.2 MB, free: 9.008 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.0899, allocations: 0 / 385.2 MB, free: 9.008 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.142e-05/0.08993, allocations: 11.98 kB / 385.2 MB, free: 8.996 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.938e-06/0.08994, allocations: 4 kB / 385.2 MB, free: 8.992 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.08994, allocations: 0 / 385.2 MB, free: 8.992 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006008/0.09055, allocations: 472.4 kB / 385.6 MB, free: 8.5 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.77e-05/0.09061, allocations: 92.86 kB / 385.7 MB, free: 8.391 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.28e-05/0.09066, allocations: 8 kB / 385.7 MB, free: 8.383 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001051/0.09077, allocations: 11.98 kB / 385.8 MB, free: 8.371 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.167e-05/0.09084, allocations: 23.92 kB / 385.8 MB, free: 8.348 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.648e-05/0.09087, allocations: 11.98 kB / 385.8 MB, free: 8.336 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001347/0.09101, allocations: 148.3 kB / 385.9 MB, free: 8.191 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.994e-06/0.09102, allocations: 0 / 385.9 MB, free: 8.191 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002814/0.09131, allocations: 83.92 kB / 386 MB, free: 8.109 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.0002196/0.09153, allocations: 162.8 kB / 386.2 MB, free: 7.941 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005017/0.09204, allocations: 409.4 kB / 386.6 MB, free: 7.52 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.09205, allocations: 0 / 386.6 MB, free: 7.52 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002725/0.09233, allocations: 294.7 kB / 386.9 MB, free: 7.207 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002078/0.09255, allocations: 12 kB / 386.9 MB, free: 7.195 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005546/0.09311, allocations: 371.4 kB / 387.2 MB, free: 6.805 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002706/0.0934, allocations: 0.7315 MB / 388 MB, free: 6.047 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 4.318e-05/0.09345, allocations: 8.547 kB / 388 MB, free: 6.039 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.8e-05/0.09348, allocations: 15.44 kB / 388 MB, free: 6.023 MB / 286.1 MB Notification: Performance of SimCode: time 2.61e-07/0.09349, allocations: 4 kB / 388 MB, free: 6.02 MB / 286.1 MB Notification: Performance of Templates: time 0.005406/0.0989, allocations: 2.622 MB / 390.6 MB, free: 3.398 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)