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.0008417/0.0008417, allocations: 99.11 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.001164/0.001164, allocations: 186.4 kB / 16.92 MB, free: 6.75 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.354/1.354, allocations: 205.4 MB / 223.1 MB, free: 5.543 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.009098/0.009098, allocations: 1.927 MB / 273.3 MB, free: 3.301 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.0005007/0.0005007, allocations: 19.98 kB / 332.2 MB, free: 33 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08157/0.08208, allocations: 48.1 MB / 380.2 MB, free: 0.8555 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController1): time 0.001697/0.08383, allocations: 1.251 MB / 381.5 MB, free: 15.59 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001231/0.08508, allocations: 0.7569 MB / 382.3 MB, free: 14.82 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.869e-05/0.08516, allocations: 0 / 382.3 MB, free: 14.82 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000128/0.0853, allocations: 47.88 kB / 382.3 MB, free: 14.78 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001115/0.08542, allocations: 67.77 kB / 382.4 MB, free: 14.71 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004922/0.08592, allocations: 131.8 kB / 382.5 MB, free: 14.58 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001733/0.0861, allocations: 143.6 kB / 382.6 MB, free: 14.44 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.854e-05/0.08619, allocations: 12 kB / 382.7 MB, free: 14.43 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000108/0.08631, allocations: 75.73 kB / 382.7 MB, free: 14.36 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001624/0.08648, allocations: 95.7 kB / 382.8 MB, free: 14.26 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.496e-05/0.08651, allocations: 8 kB / 382.8 MB, free: 14.25 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002058/0.08673, allocations: 139.9 kB / 383 MB, free: 14.12 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.195e-05/0.08681, allocations: 31.91 kB / 383 MB, free: 14.09 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001103/0.08692, allocations: 85.36 kB / 383.1 MB, free: 14 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002162/0.08715, allocations: 163.8 kB / 383.2 MB, free: 13.84 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.08716, allocations: 0 / 383.2 MB, free: 13.84 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.08717, allocations: 4 kB / 383.2 MB, free: 13.83 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.709e-06/0.08718, allocations: 0 / 383.2 MB, free: 13.83 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.000759/0.08794, allocations: 0.4905 MB / 383.7 MB, free: 13.28 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.695e-05/0.08799, allocations: 8.031 kB / 383.7 MB, free: 13.27 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.654e-05/0.08805, allocations: 24.69 kB / 383.8 MB, free: 13.25 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002395/0.0883, allocations: 208.8 kB / 384 MB, free: 13.01 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.291e-05/0.08837, allocations: 42.27 kB / 384 MB, free: 12.96 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.487e-05/0.0884, allocations: 8.375 kB / 384 MB, free: 12.95 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002926/0.0887, allocations: 141.7 kB / 384.2 MB, free: 12.81 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/0.08872, allocations: 0 / 384.2 MB, free: 12.81 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.978e-05/0.08875, allocations: 4 kB / 384.2 MB, free: 12.8 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.08876, allocations: 0 / 384.2 MB, free: 12.8 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000214/0.08898, allocations: 95.94 kB / 384.3 MB, free: 12.71 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005503/0.08954, allocations: 376.5 kB / 384.6 MB, free: 12.29 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002853/0.08983, allocations: 142.5 kB / 384.8 MB, free: 12.14 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001609/0.09001, allocations: 104.8 kB / 384.9 MB, free: 12.04 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.446e-05/0.09003, allocations: 4 kB / 384.9 MB, free: 12.04 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003783/0.09041, allocations: 229.2 kB / 385.1 MB, free: 11.79 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.683e-06/0.09043, allocations: 0 / 385.1 MB, free: 11.79 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007553/0.09119, allocations: 468.7 kB / 385.5 MB, free: 11.31 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.783e-05/0.09127, allocations: 114.8 kB / 385.7 MB, free: 11.18 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001632/0.09144, allocations: 191.2 kB / 385.8 MB, free: 10.98 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.561e-05/0.09148, allocations: 29.7 kB / 385.9 MB, free: 10.95 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.363e-05/0.09155, allocations: 104.6 kB / 386 MB, free: 10.84 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.53e-05/0.09161, allocations: 59.19 kB / 386 MB, free: 10.78 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.142e-05/0.09167, allocations: 29.7 kB / 386.1 MB, free: 10.75 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.09179, allocations: 338.8 kB / 386.4 MB, free: 10.41 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001519/0.09195, allocations: 84.19 kB / 386.5 MB, free: 10.32 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001526/0.09211, allocations: 95.7 kB / 386.6 MB, free: 10.23 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003357/0.09246, allocations: 289.7 kB / 386.9 MB, free: 9.926 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.09247, allocations: 0 / 386.9 MB, free: 9.926 MB / 286.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005193/0.09299, allocations: 389 kB / 387.2 MB, free: 9.527 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.611e-05/0.09306, allocations: 71.39 kB / 387.3 MB, free: 9.445 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.09307, allocations: 0 / 387.3 MB, free: 9.445 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.298e-05/0.09309, allocations: 3.938 kB / 387.3 MB, free: 9.441 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001116/0.09321, allocations: 19.98 kB / 387.3 MB, free: 9.422 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.552e-06/0.09322, allocations: 0 / 387.3 MB, free: 9.422 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001237/0.09335, allocations: 19.89 kB / 387.3 MB, free: 9.402 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.039e-05/0.09338, allocations: 19.98 kB / 387.4 MB, free: 9.383 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.0001912/0.09358, allocations: 214.8 kB / 387.6 MB, free: 9.148 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.108e-05/0.09363, allocations: 19.81 kB / 387.6 MB, free: 9.129 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.987e-05/0.09368, allocations: 21.86 kB / 387.6 MB, free: 9.109 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.389e-06/0.09369, allocations: 4 kB / 387.6 MB, free: 9.105 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.0937, allocations: 0 / 387.6 MB, free: 9.105 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.09371, allocations: 3.938 kB / 387.6 MB, free: 9.102 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002163/0.09393, allocations: 253.3 kB / 387.9 MB, free: 8.805 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.09394, allocations: 4 kB / 387.9 MB, free: 8.801 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.642e-05/0.094, allocations: 16 kB / 387.9 MB, free: 8.785 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.09401, allocations: 0 / 387.9 MB, free: 8.785 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.135e-05/0.09404, allocations: 7.984 kB / 387.9 MB, free: 8.777 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.09404, allocations: 0 / 387.9 MB, free: 8.777 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.09405, allocations: 4 kB / 387.9 MB, free: 8.773 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006155/0.09467, allocations: 460.5 kB / 388.4 MB, free: 8.293 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.473e-05/0.09475, allocations: 92.86 kB / 388.4 MB, free: 8.184 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.187e-05/0.09479, allocations: 12 kB / 388.5 MB, free: 8.172 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001086/0.09491, allocations: 11.98 kB / 388.5 MB, free: 8.16 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.73e-05/0.09498, allocations: 19.97 kB / 388.5 MB, free: 8.141 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.038e-05/0.09502, allocations: 16 kB / 388.5 MB, free: 8.125 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001001/0.09513, allocations: 135.2 kB / 388.6 MB, free: 7.992 MB / 286.1 MB Notification: Performance of sort global known variables: time 7.654e-06/0.09514, allocations: 0 / 388.6 MB, free: 7.992 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003049/0.09545, allocations: 83.92 kB / 388.7 MB, free: 7.91 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.0002314/0.09569, allocations: 159.5 kB / 388.9 MB, free: 7.746 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005629/0.09626, allocations: 406.5 kB / 389.3 MB, free: 7.324 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.09627, allocations: 0 / 389.3 MB, free: 7.324 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003331/0.09661, allocations: 286.7 kB / 389.5 MB, free: 7.02 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002429/0.09686, allocations: 23.98 kB / 389.6 MB, free: 6.996 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005973/0.09747, allocations: 412.4 kB / 390 MB, free: 6.562 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002999/0.09778, allocations: 0.7163 MB / 390.7 MB, free: 5.82 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.187e-05/0.09782, allocations: 15.44 kB / 390.7 MB, free: 5.805 MB / 286.1 MB Notification: Performance of SimCode: time 2.61e-07/0.09783, allocations: 0 / 390.7 MB, free: 5.805 MB / 286.1 MB Notification: Performance of Templates: time 0.004421/0.1023, allocations: 2.415 MB / 393.1 MB, free: 3.387 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)