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: "" <> buildModelFMU(MEV.Test.TestPatientController1,fileNamePrefix="MEV_MEV_Test_TestPatientController1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(MEV.Test.TestPatientController1,fileNamePrefix="MEV_MEV_Test_TestPatientController1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001547/0.001547, allocations: 108 kB / 15.6 MB, free: 132 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.001843/0.001843, allocations: 193.6 kB / 16.53 MB, free: 6.391 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.522/1.522, allocations: 205.1 MB / 222.4 MB, free: 4.574 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.01005/0.01005, allocations: 1.924 MB / 271.7 MB, free: 3.352 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.002338/0.002339, allocations: 72.11 kB / 329.9 MB, free: 32.71 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09789/0.1002, allocations: 47.14 MB / 377.1 MB, free: 1.527 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController1): time 0.002928/0.1032, allocations: 1.523 MB / 378.6 MB, free: 15.98 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001319/0.1046, allocations: 0.7382 MB / 379.3 MB, free: 15.24 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.317e-05/0.1046, allocations: 0 / 379.3 MB, free: 15.24 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000157/0.1048, allocations: 51.86 kB / 379.4 MB, free: 15.19 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001122/0.1049, allocations: 63.73 kB / 379.5 MB, free: 15.12 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000638/0.1056, allocations: 163.6 kB / 379.6 MB, free: 14.96 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002394/0.1058, allocations: 171.6 kB / 379.8 MB, free: 14.8 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001203/0.106, allocations: 11.98 kB / 379.8 MB, free: 14.79 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001282/0.1061, allocations: 83.73 kB / 379.9 MB, free: 14.7 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00018/0.1063, allocations: 95.7 kB / 380 MB, free: 14.61 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.099e-05/0.1063, allocations: 12 kB / 380 MB, free: 14.6 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000223/0.1066, allocations: 159.8 kB / 380.1 MB, free: 14.44 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.444e-05/0.1066, allocations: 39.84 kB / 380.2 MB, free: 14.4 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.423e-05/0.1068, allocations: 67.64 kB / 380.2 MB, free: 14.34 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000312/0.1071, allocations: 223.6 kB / 380.5 MB, free: 14.12 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.1071, allocations: 0 / 380.5 MB, free: 14.12 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.075e-06/0.1071, allocations: 4 kB / 380.5 MB, free: 14.11 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.65e-06/0.1071, allocations: 0 / 380.5 MB, free: 14.11 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.0007771/0.1079, allocations: 0.5216 MB / 381 MB, free: 13.53 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.057e-05/0.1079, allocations: 11.89 kB / 381 MB, free: 13.52 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.993e-05/0.108, allocations: 42.73 kB / 381 MB, free: 13.47 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.517e-05/0.108, allocations: 20.75 kB / 381.1 MB, free: 13.45 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002324/0.1083, allocations: 221.8 kB / 381.3 MB, free: 13.2 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.081e-05/0.1083, allocations: 30.27 kB / 381.3 MB, free: 13.16 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.626e-05/0.1084, allocations: 16.36 kB / 381.3 MB, free: 13.14 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002614/0.1086, allocations: 129.6 kB / 381.4 MB, free: 13.01 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.785e-06/0.1087, allocations: 0 / 381.4 MB, free: 13.01 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.871e-05/0.1087, allocations: 7.984 kB / 381.5 MB, free: 13 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/0.1087, allocations: 4 kB / 381.5 MB, free: 13 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001869/0.1089, allocations: 91.89 kB / 381.5 MB, free: 12.91 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005979/0.1095, allocations: 364.6 kB / 381.9 MB, free: 12.5 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002754/0.1098, allocations: 138.6 kB / 382 MB, free: 12.36 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001761/0.11, allocations: 104.8 kB / 382.1 MB, free: 12.25 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.395e-05/0.11, allocations: 0 / 382.1 MB, free: 12.25 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004675/0.1105, allocations: 230.8 kB / 382.4 MB, free: 12 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.423e-06/0.1105, allocations: 0 / 382.4 MB, free: 12 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008075/0.1113, allocations: 466.8 kB / 382.8 MB, free: 11.53 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.208e-05/0.1114, allocations: 110.8 kB / 382.9 MB, free: 11.4 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001691/0.1116, allocations: 187.3 kB / 383.1 MB, free: 11.21 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.386e-05/0.1116, allocations: 25.7 kB / 383.1 MB, free: 11.18 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.39e-05/0.1117, allocations: 108.6 kB / 383.2 MB, free: 11.07 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.523e-05/0.1118, allocations: 59.19 kB / 383.3 MB, free: 11.01 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.44e-05/0.1118, allocations: 45.7 kB / 383.3 MB, free: 10.96 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000138/0.112, allocations: 334.8 kB / 383.7 MB, free: 10.62 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001494/0.1121, allocations: 92.19 kB / 383.8 MB, free: 10.53 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001481/0.1123, allocations: 84.38 kB / 383.8 MB, free: 10.45 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003472/0.1127, allocations: 289.7 kB / 384.1 MB, free: 10.14 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.1127, allocations: 3.938 kB / 384.1 MB, free: 10.14 MB / 286.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000514/0.1132, allocations: 380.9 kB / 384.5 MB, free: 9.746 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.399e-05/0.1133, allocations: 69.89 kB / 384.6 MB, free: 9.668 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.1133, allocations: 0 / 384.6 MB, free: 9.668 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.774e-05/0.1133, allocations: 11.92 kB / 384.6 MB, free: 9.656 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001095/0.1134, allocations: 19.94 kB / 384.6 MB, free: 9.637 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.41e-06/0.1134, allocations: 0 / 384.6 MB, free: 9.637 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000124/0.1136, allocations: 19.98 kB / 384.6 MB, free: 9.617 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.869e-05/0.1136, allocations: 4 kB / 384.6 MB, free: 9.613 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.0001999/0.1138, allocations: 218.9 kB / 384.8 MB, free: 9.375 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.648e-05/0.1138, allocations: 23.72 kB / 384.9 MB, free: 9.352 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.679e-05/0.1139, allocations: 21.86 kB / 384.9 MB, free: 9.332 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.987e-06/0.1139, allocations: 8 kB / 384.9 MB, free: 9.324 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.1139, allocations: 0 / 384.9 MB, free: 9.324 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.539e-06/0.1139, allocations: 3.984 kB / 384.9 MB, free: 9.32 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002083/0.1141, allocations: 249.4 kB / 385.1 MB, free: 9.027 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.1141, allocations: 0 / 385.1 MB, free: 9.027 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.362e-05/0.1142, allocations: 15.92 kB / 385.2 MB, free: 9.012 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.1142, allocations: 0 / 385.2 MB, free: 9.012 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.141e-05/0.1142, allocations: 8 kB / 385.2 MB, free: 9.004 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.975e-06/0.1142, allocations: 4 kB / 385.2 MB, free: 9 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1142, allocations: 0 / 385.2 MB, free: 9 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005768/0.1148, allocations: 464.4 kB / 385.6 MB, free: 8.516 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.806e-05/0.1149, allocations: 100.9 kB / 385.7 MB, free: 8.398 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.183e-05/0.1149, allocations: 4 kB / 385.7 MB, free: 8.395 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001165/0.1151, allocations: 15.98 kB / 385.7 MB, free: 8.379 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.113e-05/0.1152, allocations: 23.91 kB / 385.8 MB, free: 8.355 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.561e-05/0.1152, allocations: 8 kB / 385.8 MB, free: 8.348 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001038/0.1153, allocations: 139.2 kB / 385.9 MB, free: 8.211 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1153, allocations: 4 kB / 385.9 MB, free: 8.207 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000299/0.1156, allocations: 75.94 kB / 386 MB, free: 8.133 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.0009535/0.1166, allocations: 1.025 MB / 387 MB, free: 7.066 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005362/0.1171, allocations: 414.5 kB / 387.4 MB, free: 6.637 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.1171, allocations: 0 / 387.4 MB, free: 6.637 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002732/0.1174, allocations: 282.7 kB / 387.7 MB, free: 6.336 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000227/0.1176, allocations: 23.98 kB / 387.7 MB, free: 6.312 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002685/0.1203, allocations: 2.403 MB / 390.1 MB, free: 3.812 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002913/0.1206, allocations: 0.7277 MB / 390.8 MB, free: 3.059 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 4.604e-05/0.1207, allocations: 8.562 kB / 390.9 MB, free: 3.051 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.94e-05/0.1208, allocations: 43.42 kB / 390.9 MB, free: 3.008 MB / 286.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1208, allocations: 0 / 390.9 MB, free: 3.008 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02024/0.141, allocations: 4.358 MB / 395.3 MB, free: 14.58 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.974/8.116, allocations: 7.922 kB / 395.3 MB, free: 14.57 MB / 302.1 MB (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 & python3 -m fmpy simulate --output-file MEV_MEV.Test.TestPatientController1_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.2 MEV_MEV_Test_TestPatientController1.fmu > MEV_MEV.Test.TestPatientController1.pipe 2>&1)