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.0009254/0.0009256, allocations: 95.92 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.005548/0.005548, allocations: 170.9 kB / 16.27 MB, free: 6.648 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.604/1.604, allocations: 205.4 MB / 222.5 MB, free: 5.555 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.009408/0.009408, allocations: 1.924 MB / 272.7 MB, free: 3.293 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.0007651/0.0007652, allocations: 12 kB / 331.5 MB, free: 33 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1099, allocations: 48.1 MB / 379.6 MB, free: 0.8398 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController1): time 0.001556/0.1115, allocations: 1.249 MB / 380.8 MB, free: 15.57 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001216/0.1127, allocations: 0.7657 MB / 381.6 MB, free: 14.8 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.19e-05/0.1128, allocations: 4 kB / 381.6 MB, free: 14.8 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001105/0.1129, allocations: 47.88 kB / 381.7 MB, free: 14.75 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001056/0.113, allocations: 63.83 kB / 381.7 MB, free: 14.69 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005667/0.1136, allocations: 127.7 kB / 381.8 MB, free: 14.56 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000196/0.1138, allocations: 147.6 kB / 382 MB, free: 14.42 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.263e-05/0.1139, allocations: 8 kB / 382 MB, free: 14.41 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.881e-05/0.114, allocations: 75.73 kB / 382.1 MB, free: 14.34 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001481/0.1142, allocations: 95.7 kB / 382.2 MB, free: 14.24 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.059e-05/0.1142, allocations: 8 kB / 382.2 MB, free: 14.23 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001884/0.1144, allocations: 147.9 kB / 382.3 MB, free: 14.09 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.912e-05/0.1145, allocations: 27.91 kB / 382.3 MB, free: 14.06 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.673e-05/0.1146, allocations: 85.36 kB / 382.4 MB, free: 13.97 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000268/0.1148, allocations: 219.6 kB / 382.6 MB, free: 13.76 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.666e-06/0.1149, allocations: 4 kB / 382.6 MB, free: 13.75 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.1149, allocations: 0 / 382.6 MB, free: 13.75 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.677e-06/0.1149, allocations: 3.938 kB / 382.6 MB, free: 13.75 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.0006847/0.1156, allocations: 0.4983 MB / 383.1 MB, free: 13.19 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.35e-05/0.1156, allocations: 12.03 kB / 383.2 MB, free: 13.18 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.94e-05/0.1157, allocations: 16.75 kB / 383.2 MB, free: 13.16 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001982/0.1159, allocations: 200.8 kB / 383.4 MB, free: 12.93 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.5e-05/0.1159, allocations: 42.25 kB / 383.4 MB, free: 12.88 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.355e-05/0.116, allocations: 4.375 kB / 383.4 MB, free: 12.88 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002627/0.1162, allocations: 149.7 kB / 383.6 MB, free: 12.73 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.402e-06/0.1163, allocations: 0 / 383.6 MB, free: 12.73 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.653e-05/0.1163, allocations: 4 kB / 383.6 MB, free: 12.72 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-06/0.1163, allocations: 0 / 383.6 MB, free: 12.72 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002379/0.1165, allocations: 95.94 kB / 383.7 MB, free: 12.63 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005034/0.117, allocations: 368.5 kB / 384 MB, free: 12.22 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002579/0.1173, allocations: 142.5 kB / 384.2 MB, free: 12.07 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001598/0.1175, allocations: 104.8 kB / 384.3 MB, free: 11.96 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.293e-05/0.1175, allocations: 4 kB / 384.3 MB, free: 11.96 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003491/0.1179, allocations: 245.2 kB / 384.5 MB, free: 11.7 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.572e-06/0.1179, allocations: 0 / 384.5 MB, free: 11.7 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.000729/0.1186, allocations: 460.7 kB / 385 MB, free: 11.23 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.711e-05/0.1187, allocations: 118.8 kB / 385.1 MB, free: 11.09 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000167/0.1189, allocations: 195.2 kB / 385.3 MB, free: 10.89 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.759e-05/0.1189, allocations: 33.7 kB / 385.3 MB, free: 10.85 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.614e-05/0.119, allocations: 104.6 kB / 385.4 MB, free: 10.75 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.137e-05/0.119, allocations: 55.2 kB / 385.5 MB, free: 10.69 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.076e-05/0.1191, allocations: 25.7 kB / 385.5 MB, free: 10.66 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001104/0.1192, allocations: 334.8 kB / 385.8 MB, free: 10.32 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001802/0.1194, allocations: 88.19 kB / 385.9 MB, free: 10.24 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001416/0.1195, allocations: 88.44 kB / 386 MB, free: 10.15 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003721/0.1199, allocations: 293.7 kB / 386.3 MB, free: 9.84 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.113e-06/0.1199, allocations: 0 / 386.3 MB, free: 9.84 MB / 286.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005192/0.1205, allocations: 381 kB / 386.6 MB, free: 9.449 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.134e-05/0.1205, allocations: 78.34 kB / 386.7 MB, free: 9.363 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.1205, allocations: 0 / 386.7 MB, free: 9.363 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.288e-05/0.1206, allocations: 7.938 kB / 386.7 MB, free: 9.355 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000105/0.1207, allocations: 20 kB / 386.7 MB, free: 9.336 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.929e-06/0.1207, allocations: 0 / 386.7 MB, free: 9.336 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001442/0.1208, allocations: 23.89 kB / 386.8 MB, free: 9.312 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.931e-05/0.1209, allocations: 8 kB / 386.8 MB, free: 9.305 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.0001796/0.1211, allocations: 222.8 kB / 387 MB, free: 9.062 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.293e-05/0.1211, allocations: 23.81 kB / 387 MB, free: 9.039 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.542e-05/0.1211, allocations: 17.88 kB / 387 MB, free: 9.023 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.1211, allocations: 4 kB / 387 MB, free: 9.02 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.309e-06/0.1212, allocations: 0 / 387 MB, free: 9.02 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.1212, allocations: 3.984 kB / 387 MB, free: 9.016 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001959/0.1214, allocations: 249.3 kB / 387.3 MB, free: 8.723 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.1214, allocations: 0 / 387.3 MB, free: 8.723 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.726e-05/0.1214, allocations: 15.98 kB / 387.3 MB, free: 8.707 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.1214, allocations: 0 / 387.3 MB, free: 8.707 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.837e-05/0.1215, allocations: 4 kB / 387.3 MB, free: 8.703 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.1215, allocations: 4 kB / 387.3 MB, free: 8.699 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.1215, allocations: 4 kB / 387.3 MB, free: 8.695 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005964/0.1221, allocations: 472.3 kB / 387.8 MB, free: 8.203 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.581e-05/0.1221, allocations: 92.86 kB / 387.9 MB, free: 8.094 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.941e-05/0.1222, allocations: 8 kB / 387.9 MB, free: 8.086 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001097/0.1223, allocations: 19.98 kB / 387.9 MB, free: 8.066 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.096e-05/0.1224, allocations: 19.97 kB / 387.9 MB, free: 8.047 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.637e-05/0.1224, allocations: 8 kB / 387.9 MB, free: 8.039 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001029/0.1225, allocations: 139.2 kB / 388 MB, free: 7.902 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.124e-06/0.1225, allocations: 0 / 388 MB, free: 7.902 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003404/0.1229, allocations: 79.92 kB / 388.1 MB, free: 7.824 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.0002393/0.1231, allocations: 163.5 kB / 388.3 MB, free: 7.656 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005275/0.1237, allocations: 406.6 kB / 388.7 MB, free: 7.234 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.1237, allocations: 0 / 388.7 MB, free: 7.234 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000285/0.124, allocations: 286.7 kB / 389 MB, free: 6.93 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002251/0.1242, allocations: 20.48 kB / 389 MB, free: 6.91 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005971/0.1248, allocations: 378.2 kB / 389.4 MB, free: 6.516 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002981/0.1251, allocations: 0.7241 MB / 390.1 MB, free: 5.766 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 4.769e-05/0.1252, allocations: 4.562 kB / 390.1 MB, free: 5.762 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.002e-05/0.1252, allocations: 15.44 kB / 390.1 MB, free: 5.746 MB / 286.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1252, allocations: 0 / 390.1 MB, free: 5.746 MB / 286.1 MB Notification: Performance of Templates: time 0.005619/0.1309, allocations: 2.4 MB / 392.5 MB, free: 3.344 MB / 286.1 MB make -j1 -f MEV_MEV.Test.TestPatientController1.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: