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.0008903/0.0008902, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.006414/0.006415, allocations: 172.4 kB / 16.27 MB, free: 6.652 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.599/1.599, allocations: 205.4 MB / 222.4 MB, free: 5.805 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.01004/0.01004, allocations: 1.932 MB / 272.7 MB, free: 3.52 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.000524/0.0005241, allocations: 16 kB / 331.5 MB, free: 33.03 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09034/0.09088, allocations: 48.1 MB / 379.6 MB, free: 0.8711 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController2): time 0.001989/0.09291, allocations: 1.245 MB / 380.8 MB, free: 15.61 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001373/0.09432, allocations: 0.7735 MB / 381.6 MB, free: 14.83 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.784e-05/0.09444, allocations: 4 kB / 381.6 MB, free: 14.82 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001474/0.0946, allocations: 59.86 kB / 381.7 MB, free: 14.77 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001459/0.09475, allocations: 63.83 kB / 381.7 MB, free: 14.7 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006531/0.09541, allocations: 123.7 kB / 381.9 MB, free: 14.58 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002133/0.09564, allocations: 155.6 kB / 382 MB, free: 14.43 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001127/0.09576, allocations: 11.98 kB / 382 MB, free: 14.42 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001619/0.09593, allocations: 75.73 kB / 382.1 MB, free: 14.34 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000189/0.09613, allocations: 103.7 kB / 382.2 MB, free: 14.24 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.691e-05/0.09616, allocations: 4 kB / 382.2 MB, free: 14.24 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000237/0.0964, allocations: 147.9 kB / 382.3 MB, free: 14.09 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.079e-05/0.09648, allocations: 35.89 kB / 382.4 MB, free: 14.06 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001087/0.0966, allocations: 93.3 kB / 382.5 MB, free: 13.96 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003189/0.09693, allocations: 219.7 kB / 382.7 MB, free: 13.75 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.09694, allocations: 4 kB / 382.7 MB, free: 13.74 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.09695, allocations: 3.938 kB / 382.7 MB, free: 13.74 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.314e-06/0.09697, allocations: 0 / 382.7 MB, free: 13.74 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.0008433/0.09782, allocations: 0.5061 MB / 383.2 MB, free: 13.17 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.147e-05/0.09787, allocations: 8.031 kB / 383.2 MB, free: 13.16 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.051e-05/0.09793, allocations: 24.66 kB / 383.2 MB, free: 13.14 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002186/0.09816, allocations: 216 kB / 383.4 MB, free: 12.89 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.73e-05/0.09823, allocations: 34.27 kB / 383.5 MB, free: 12.85 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.428e-05/0.09826, allocations: 8.375 kB / 383.5 MB, free: 12.84 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002685/0.09853, allocations: 145.7 kB / 383.6 MB, free: 12.7 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.873e-06/0.09855, allocations: 0 / 383.6 MB, free: 12.7 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.741e-05/0.09857, allocations: 8 kB / 383.6 MB, free: 12.69 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.658e-06/0.09858, allocations: 0 / 383.6 MB, free: 12.69 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001906/0.09878, allocations: 99.94 kB / 383.7 MB, free: 12.59 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005751/0.09937, allocations: 376.5 kB / 384.1 MB, free: 12.17 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002759/0.09965, allocations: 150.5 kB / 384.2 MB, free: 12.02 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001601/0.09983, allocations: 108.8 kB / 384.4 MB, free: 11.91 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.129e-05/0.09985, allocations: 0 / 384.4 MB, free: 11.91 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004028/0.1003, allocations: 241.2 kB / 384.6 MB, free: 11.65 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 2.064e-06/0.1003, allocations: 0 / 384.6 MB, free: 11.65 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007681/0.101, allocations: 480.6 kB / 385.1 MB, free: 11.16 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.345e-05/0.1011, allocations: 110.8 kB / 385.2 MB, free: 11.03 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001921/0.1013, allocations: 202.6 kB / 385.4 MB, free: 10.82 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.643e-05/0.1014, allocations: 33.7 kB / 385.4 MB, free: 10.78 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000107/0.1015, allocations: 116.6 kB / 385.5 MB, free: 10.66 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.522e-05/0.1016, allocations: 59.19 kB / 385.6 MB, free: 10.6 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.171e-05/0.1017, allocations: 21.72 kB / 385.6 MB, free: 10.57 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001215/0.1018, allocations: 338.8 kB / 385.9 MB, free: 10.23 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001794/0.102, allocations: 92.19 kB / 386 MB, free: 10.14 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001533/0.1022, allocations: 92.42 kB / 386.1 MB, free: 10.05 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003649/0.1025, allocations: 300.8 kB / 386.4 MB, free: 9.734 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.047e-06/0.1025, allocations: 3.984 kB / 386.4 MB, free: 9.73 MB / 286.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000547/0.1031, allocations: 398.3 kB / 386.8 MB, free: 9.324 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.383e-05/0.1032, allocations: 67.39 kB / 386.9 MB, free: 9.246 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.1032, allocations: 0 / 386.9 MB, free: 9.246 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.579e-05/0.1032, allocations: 0 / 386.9 MB, free: 9.246 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001104/0.1033, allocations: 19.98 kB / 386.9 MB, free: 9.227 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.653e-06/0.1033, allocations: 4 kB / 386.9 MB, free: 9.223 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001333/0.1035, allocations: 31.77 kB / 386.9 MB, free: 9.191 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.037e-05/0.1035, allocations: 8 kB / 386.9 MB, free: 9.184 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.0002007/0.1037, allocations: 226.8 kB / 387.1 MB, free: 8.938 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.515e-05/0.1038, allocations: 19.81 kB / 387.2 MB, free: 8.918 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.14e-05/0.1038, allocations: 17.88 kB / 387.2 MB, free: 8.902 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.926e-06/0.1038, allocations: 4 kB / 387.2 MB, free: 8.898 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.1038, allocations: 0 / 387.2 MB, free: 8.898 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.1038, allocations: 3.984 kB / 387.2 MB, free: 8.895 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002337/0.1041, allocations: 253.4 kB / 387.4 MB, free: 8.598 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.993e-06/0.1041, allocations: 0 / 387.4 MB, free: 8.598 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.518e-05/0.1041, allocations: 11.98 kB / 387.4 MB, free: 8.586 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.1042, allocations: 0 / 387.4 MB, free: 8.586 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.786e-05/0.1042, allocations: 16 kB / 387.5 MB, free: 8.57 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.1042, allocations: 0 / 387.5 MB, free: 8.57 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.1042, allocations: 3.984 kB / 387.5 MB, free: 8.566 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006263/0.1048, allocations: 476.4 kB / 387.9 MB, free: 8.07 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.652e-05/0.1049, allocations: 100.8 kB / 388 MB, free: 7.953 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.442e-05/0.105, allocations: 11.98 kB / 388 MB, free: 7.941 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001107/0.1051, allocations: 15.98 kB / 388.1 MB, free: 7.926 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.822e-05/0.1051, allocations: 19.98 kB / 388.1 MB, free: 7.906 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.815e-05/0.1052, allocations: 11.98 kB / 388.1 MB, free: 7.895 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001248/0.1053, allocations: 144.3 kB / 388.2 MB, free: 7.754 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1053, allocations: 0 / 388.2 MB, free: 7.754 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003417/0.1057, allocations: 76 kB / 388.3 MB, free: 7.68 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.000253/0.1059, allocations: 162.8 kB / 388.5 MB, free: 7.512 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005915/0.1065, allocations: 413.4 kB / 388.9 MB, free: 7.086 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 5.039e-06/0.1066, allocations: 0 / 388.9 MB, free: 7.086 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003328/0.1069, allocations: 294.9 kB / 389.1 MB, free: 6.773 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002629/0.1072, allocations: 27.91 kB / 389.2 MB, free: 6.746 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006309/0.1078, allocations: 406.6 kB / 389.6 MB, free: 6.324 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002689/0.1081, allocations: 0.7319 MB / 390.3 MB, free: 5.566 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 5.382e-05/0.1082, allocations: 8.562 kB / 390.3 MB, free: 5.559 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.888e-05/0.1082, allocations: 11.44 kB / 390.3 MB, free: 5.547 MB / 286.1 MB Notification: Performance of SimCode: time 7.51e-07/0.1082, allocations: 0 / 390.3 MB, free: 5.547 MB / 286.1 MB Notification: Performance of Templates: time 0.005977/0.1142, allocations: 2.4 MB / 392.7 MB, free: 3.145 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: