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.0009023/0.0009023, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.0009479/0.0009482, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.26/1.26, allocations: 205.4 MB / 222.1 MB, free: 5.676 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.007009/0.007009, allocations: 1.924 MB / 272.3 MB, free: 3.418 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.0004632/0.0004634, allocations: 12 kB / 330.9 MB, free: 33.39 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07201/0.07248, allocations: 48.1 MB / 379 MB, free: 1.238 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController2): time 0.001537/0.07405, allocations: 1.218 MB / 380.2 MB, free: 4 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001133/0.07521, allocations: 0.6883 MB / 380.9 MB, free: 15.31 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.394e-05/0.07532, allocations: 3.938 kB / 380.9 MB, free: 15.3 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000131/0.07546, allocations: 55.91 kB / 380.9 MB, free: 15.25 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001209/0.07559, allocations: 71.81 kB / 381 MB, free: 15.18 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005436/0.07614, allocations: 115.7 kB / 381.1 MB, free: 15.07 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001734/0.07632, allocations: 99.8 kB / 381.2 MB, free: 14.97 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.455e-05/0.07642, allocations: 8 kB / 381.2 MB, free: 14.96 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001277/0.07656, allocations: 75.8 kB / 381.3 MB, free: 14.89 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001664/0.07673, allocations: 83.77 kB / 381.4 MB, free: 14.8 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.313e-05/0.07676, allocations: 8 kB / 381.4 MB, free: 14.8 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002209/0.07699, allocations: 127.9 kB / 381.5 MB, free: 14.67 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.954e-05/0.07706, allocations: 35.91 kB / 381.5 MB, free: 14.64 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.356e-05/0.07714, allocations: 57.52 kB / 381.6 MB, free: 14.57 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002466/0.0774, allocations: 160 kB / 381.7 MB, free: 14.42 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.215e-06/0.07741, allocations: 0 / 381.7 MB, free: 14.42 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.07742, allocations: 0 / 381.7 MB, free: 14.42 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.292e-06/0.07743, allocations: 0 / 381.7 MB, free: 14.42 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.0007895/0.07822, allocations: 0.5059 MB / 382.3 MB, free: 13.85 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.716e-05/0.07827, allocations: 12.02 kB / 382.3 MB, free: 13.84 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.927e-05/0.07834, allocations: 19.81 kB / 382.3 MB, free: 13.82 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002451/0.07859, allocations: 210.7 kB / 382.5 MB, free: 13.57 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.901e-05/0.07866, allocations: 37.66 kB / 382.5 MB, free: 13.53 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.459e-05/0.07869, allocations: 15.97 kB / 382.5 MB, free: 13.52 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002634/0.07896, allocations: 137.6 kB / 382.7 MB, free: 13.38 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.899e-06/0.07898, allocations: 3.984 kB / 382.7 MB, free: 13.37 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.642e-05/0.07901, allocations: 4 kB / 382.7 MB, free: 13.37 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.612e-06/0.07902, allocations: 4 kB / 382.7 MB, free: 13.36 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001884/0.07921, allocations: 91.95 kB / 382.8 MB, free: 13.27 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005421/0.07976, allocations: 372.6 kB / 383.1 MB, free: 12.86 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002605/0.08004, allocations: 146.5 kB / 383.3 MB, free: 12.71 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.402e-05/0.08006, allocations: 7.938 kB / 383.3 MB, free: 12.7 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003569/0.08043, allocations: 229.1 kB / 383.5 MB, free: 12.45 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.393e-06/0.08044, allocations: 4 kB / 383.5 MB, free: 12.45 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008853/0.08133, allocations: 0.6284 MB / 384.1 MB, free: 11.77 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.417e-05/0.08142, allocations: 114.9 kB / 384.3 MB, free: 11.63 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001657/0.08159, allocations: 206.5 kB / 384.5 MB, free: 11.41 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.485e-05/0.08164, allocations: 33.7 kB / 384.5 MB, free: 11.38 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.511e-05/0.08171, allocations: 108.6 kB / 384.6 MB, free: 11.27 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.919e-05/0.08176, allocations: 55.34 kB / 384.7 MB, free: 11.21 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.139e-05/0.08178, allocations: 4 kB / 384.7 MB, free: 11.21 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001312/0.08192, allocations: 334.8 kB / 385 MB, free: 10.87 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000144/0.08207, allocations: 88.19 kB / 385.1 MB, free: 10.79 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001345/0.08221, allocations: 92.33 kB / 385.2 MB, free: 10.7 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000154/0.08238, allocations: 144.5 kB / 385.3 MB, free: 10.54 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.08239, allocations: 0 / 385.3 MB, free: 10.54 MB / 286.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005148/0.08291, allocations: 398.4 kB / 385.7 MB, free: 10.14 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.7e-05/0.08297, allocations: 71.39 kB / 385.8 MB, free: 10.05 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/0.08298, allocations: 0 / 385.8 MB, free: 10.05 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.182e-05/0.083, allocations: 0 / 385.8 MB, free: 10.05 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001011/0.0831, allocations: 19.98 kB / 385.8 MB, free: 10.04 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.08312, allocations: 0 / 385.8 MB, free: 10.04 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001294/0.08325, allocations: 35.78 kB / 385.8 MB, free: 10 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.764e-05/0.08328, allocations: 11.94 kB / 385.8 MB, free: 9.988 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 ($whenCondition3,$whenCondition1,$whenCondition2,$whenCondition4,$whenCondition5,$PRE.patientController.t_on,patientController.t_on,$PRE.patientController.t_off,patientController.t_off,$PRE.patientController.active,patientController.active,RR.a,RR.b,RR.last,$PRE.RR.nextEvent,RR.nextEvent,RR.nextEventScaled,dutyCycle.a,dutyCycle.b,dutyCycle.last,$PRE.dutyCycle.nextEvent,dutyCycle.nextEvent,dutyCycle.nextEventScaled) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001849/0.08347, allocations: 218.9 kB / 386 MB, free: 9.75 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.773e-05/0.0835, allocations: 19.81 kB / 386.1 MB, free: 9.73 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.421e-05/0.08354, allocations: 17.86 kB / 386.1 MB, free: 9.715 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.546e-06/0.08355, allocations: 7.938 kB / 386.1 MB, free: 9.707 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.367e-06/0.08356, allocations: 0 / 386.1 MB, free: 9.707 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.08357, allocations: 0 / 386.1 MB, free: 9.707 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002028/0.08378, allocations: 261.4 kB / 386.3 MB, free: 9.402 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.08379, allocations: 0 / 386.3 MB, free: 9.402 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.816e-05/0.08385, allocations: 19.98 kB / 386.4 MB, free: 9.383 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.08386, allocations: 0 / 386.4 MB, free: 9.383 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.188e-05/0.08389, allocations: 8 kB / 386.4 MB, free: 9.375 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.0839, allocations: 0 / 386.4 MB, free: 9.375 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.0839, allocations: 0 / 386.4 MB, free: 9.375 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005858/0.08449, allocations: 483.7 kB / 386.8 MB, free: 8.871 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.054e-05/0.08457, allocations: 96.84 kB / 386.9 MB, free: 8.758 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.517e-05/0.08463, allocations: 8 kB / 386.9 MB, free: 8.75 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001086/0.08474, allocations: 15.98 kB / 387 MB, free: 8.734 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.314e-05/0.08483, allocations: 19.97 kB / 387 MB, free: 8.715 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.833e-05/0.08486, allocations: 8 kB / 387 MB, free: 8.707 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001266/0.08499, allocations: 148.3 kB / 387.1 MB, free: 8.562 MB / 286.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.085, allocations: 0 / 387.1 MB, free: 8.562 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003002/0.08531, allocations: 80 kB / 387.2 MB, free: 8.484 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002376/0.08555, allocations: 155.9 kB / 387.4 MB, free: 8.324 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005116/0.08607, allocations: 409.5 kB / 387.8 MB, free: 7.902 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.08609, allocations: 0 / 387.8 MB, free: 7.902 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002939/0.08639, allocations: 290.7 kB / 388 MB, free: 7.594 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001702/0.08657, allocations: 20.12 kB / 388.1 MB, free: 7.574 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006219/0.0872, allocations: 386.5 kB / 388.4 MB, free: 7.172 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003614/0.08757, allocations: 0.7319 MB / 389.2 MB, free: 6.414 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 5.107e-05/0.08763, allocations: 12.55 kB / 389.2 MB, free: 6.402 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.763e-05/0.08767, allocations: 11.44 kB / 389.2 MB, free: 6.391 MB / 286.1 MB Notification: Performance of SimCode: time 8.32e-07/0.08767, allocations: 0 / 389.2 MB, free: 6.391 MB / 286.1 MB Notification: Performance of Templates: time 0.005123/0.0928, allocations: 2.345 MB / 391.5 MB, free: 4.043 MB / 286.1 MB make -j1 -f MEV_MEV.Test.TestPatientController2.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: