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.0009917/0.0009917, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001079/0.001079, allocations: 194.8 kB / 16.14 MB, free: 6.711 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.311/1.311, allocations: 205.1 MB / 222 MB, free: 5 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.0091/0.0091, allocations: 1.928 MB / 271.3 MB, free: 3.781 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.001203/0.001203, allocations: 67.89 kB / 329.1 MB, free: 33.29 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07482/0.07603, allocations: 47.14 MB / 376.3 MB, free: 2.113 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController2): time 0.002396/0.07847, allocations: 1.576 MB / 377.9 MB, free: 0.5156 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001094/0.07958, allocations: 0.7968 MB / 378.7 MB, free: 15.71 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.428e-05/0.07965, allocations: 0 / 378.7 MB, free: 15.71 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001291/0.07978, allocations: 63.86 kB / 378.7 MB, free: 15.65 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 9.372e-05/0.07988, allocations: 71.75 kB / 378.8 MB, free: 15.58 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004088/0.08031, allocations: 119.8 kB / 378.9 MB, free: 15.46 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001408/0.08046, allocations: 151.6 kB / 379.1 MB, free: 15.31 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.819e-05/0.08054, allocations: 12 kB / 379.1 MB, free: 15.3 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.623e-05/0.08065, allocations: 75.8 kB / 379.1 MB, free: 15.23 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001401/0.08079, allocations: 103.7 kB / 379.2 MB, free: 15.12 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.386e-05/0.08083, allocations: 8 kB / 379.3 MB, free: 15.12 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000184/0.08102, allocations: 147.9 kB / 379.4 MB, free: 14.97 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.707e-05/0.08108, allocations: 31.89 kB / 379.4 MB, free: 14.94 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.808e-05/0.08117, allocations: 71.55 kB / 379.5 MB, free: 14.87 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002457/0.08142, allocations: 227.6 kB / 379.7 MB, free: 14.65 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.08143, allocations: 0 / 379.7 MB, free: 14.65 MB / 286.1 MB Notification: Performance of FrontEnd: time 7.41e-07/0.08144, allocations: 0 / 379.7 MB, free: 14.65 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.336e-06/0.08145, allocations: 4 kB / 379.7 MB, free: 14.64 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.0006915/0.08214, allocations: 0.5216 MB / 380.2 MB, free: 14.06 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.161e-05/0.08218, allocations: 16.02 kB / 380.3 MB, free: 14.05 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.322e-05/0.08224, allocations: 20.75 kB / 380.3 MB, free: 14.03 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001896/0.08244, allocations: 216 kB / 380.5 MB, free: 13.78 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.481e-05/0.08249, allocations: 30.27 kB / 380.5 MB, free: 13.74 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.399e-05/0.08252, allocations: 20.3 kB / 380.5 MB, free: 13.72 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00025/0.08278, allocations: 137.7 kB / 380.7 MB, free: 13.58 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.605e-06/0.08279, allocations: 3.938 kB / 380.7 MB, free: 13.58 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.494e-05/0.08281, allocations: 0 / 380.7 MB, free: 13.58 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.4e-06/0.08282, allocations: 4 kB / 380.7 MB, free: 13.57 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001777/0.08301, allocations: 91.94 kB / 380.8 MB, free: 13.48 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004485/0.08347, allocations: 380.5 kB / 381.1 MB, free: 13.06 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002416/0.08372, allocations: 142.5 kB / 381.3 MB, free: 12.91 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000137/0.08387, allocations: 101 kB / 381.4 MB, free: 12.81 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.163e-05/0.08389, allocations: 8 kB / 381.4 MB, free: 12.8 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003321/0.08422, allocations: 234.6 kB / 381.6 MB, free: 12.55 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 2.715e-06/0.08424, allocations: 96 / 381.6 MB, free: 12.55 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007885/0.08503, allocations: 478.9 kB / 382.1 MB, free: 12.07 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.393e-05/0.08511, allocations: 114.8 kB / 382.2 MB, free: 11.93 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001544/0.08527, allocations: 202.6 kB / 382.4 MB, free: 11.72 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.339e-05/0.0853, allocations: 33.7 kB / 382.4 MB, free: 11.68 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.536e-05/0.08537, allocations: 116.4 kB / 382.5 MB, free: 11.57 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.926e-05/0.08543, allocations: 55.34 kB / 382.6 MB, free: 11.51 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.75e-05/0.0855, allocations: 41.7 kB / 382.6 MB, free: 11.46 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001073/0.08561, allocations: 342.7 kB / 383 MB, free: 11.12 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001494/0.08577, allocations: 84.2 kB / 383.1 MB, free: 11.04 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001369/0.08591, allocations: 88.42 kB / 383.1 MB, free: 10.95 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003435/0.08627, allocations: 304.7 kB / 383.4 MB, free: 10.63 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.08628, allocations: 0 / 383.4 MB, free: 10.63 MB / 286.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004784/0.08676, allocations: 398.3 kB / 383.8 MB, free: 10.22 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.353e-05/0.08683, allocations: 63.39 kB / 383.9 MB, free: 10.15 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.08684, allocations: 0 / 383.9 MB, free: 10.15 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.063e-05/0.08685, allocations: 4 kB / 383.9 MB, free: 10.14 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001049/0.08696, allocations: 19.98 kB / 383.9 MB, free: 10.12 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.06e-06/0.08698, allocations: 3.938 kB / 383.9 MB, free: 10.12 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001216/0.0871, allocations: 27.83 kB / 383.9 MB, free: 10.09 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.786e-05/0.08713, allocations: 8 kB / 384 MB, free: 10.09 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.0001659/0.0873, allocations: 214.9 kB / 384.2 MB, free: 9.852 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.4e-05/0.08734, allocations: 19.81 kB / 384.2 MB, free: 9.832 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.565e-05/0.08739, allocations: 25.86 kB / 384.2 MB, free: 9.809 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.08739, allocations: 0 / 384.2 MB, free: 9.809 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.0874, allocations: 0 / 384.2 MB, free: 9.809 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.08741, allocations: 4 kB / 384.2 MB, free: 9.805 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001935/0.08761, allocations: 257.4 kB / 384.5 MB, free: 9.504 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.08762, allocations: 0 / 384.5 MB, free: 9.504 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.266e-05/0.08768, allocations: 11.98 kB / 384.5 MB, free: 9.492 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.737e-05/0.08774, allocations: 4 kB / 384.5 MB, free: 9.488 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.833e-05/0.08777, allocations: 7.938 kB / 384.5 MB, free: 9.48 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.08777, allocations: 0 / 384.5 MB, free: 9.48 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.08778, allocations: 0 / 384.5 MB, free: 9.48 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005635/0.08835, allocations: 472.7 kB / 385 MB, free: 8.988 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.506e-05/0.0884, allocations: 100.8 kB / 385 MB, free: 8.871 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.344e-05/0.08845, allocations: 12 kB / 385.1 MB, free: 8.859 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001039/0.08856, allocations: 11.98 kB / 385.1 MB, free: 8.848 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.584e-05/0.08864, allocations: 19.97 kB / 385.1 MB, free: 8.828 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.717e-05/0.08867, allocations: 12 kB / 385.1 MB, free: 8.816 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001099/0.08879, allocations: 144.3 kB / 385.2 MB, free: 8.676 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.08879, allocations: 0 / 385.2 MB, free: 8.676 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002777/0.08907, allocations: 75.98 kB / 385.3 MB, free: 8.602 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.0002123/0.08929, allocations: 170.7 kB / 385.5 MB, free: 8.426 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005013/0.0898, allocations: 406.8 kB / 385.9 MB, free: 8.004 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.08981, allocations: 0 / 385.9 MB, free: 8.004 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002705/0.09009, allocations: 290.6 kB / 386.2 MB, free: 7.695 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002058/0.09031, allocations: 16 kB / 386.2 MB, free: 7.68 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005575/0.09087, allocations: 408.1 kB / 386.6 MB, free: 7.258 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000269/0.09116, allocations: 0.7319 MB / 387.3 MB, free: 6.5 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 4.328e-05/0.09121, allocations: 4.562 kB / 387.3 MB, free: 6.496 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.77e-05/0.09124, allocations: 11.44 kB / 387.3 MB, free: 6.484 MB / 286.1 MB Notification: Performance of SimCode: time 1.452e-06/0.09125, allocations: 0 / 387.3 MB, free: 6.484 MB / 286.1 MB Notification: Performance of Templates: time 0.004733/0.09599, allocations: 2.428 MB / 389.8 MB, free: 4.055 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)