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: "" <> buildModelFMU(MEV.Test.TestPatientController2,fileNamePrefix="MEV_MEV_Test_TestPatientController2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(MEV.Test.TestPatientController2,fileNamePrefix="MEV_MEV_Test_TestPatientController2",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.001145/0.001145, allocations: 108 kB / 15.61 MB, free: 128 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.001772/0.001772, allocations: 195.5 kB / 16.53 MB, free: 6.668 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.434/1.434, allocations: 205.1 MB / 222.4 MB, free: 4.621 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.009498/0.009498, allocations: 1.935 MB / 271.7 MB, free: 3.348 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.001383/0.001383, allocations: 72.11 kB / 329.9 MB, free: 32.72 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07166/0.07305, allocations: 47.13 MB / 377.1 MB, free: 1.539 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController2): time 0.002869/0.07596, allocations: 1.531 MB / 378.6 MB, free: 15.99 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001084/0.07707, allocations: 0.7343 MB / 379.3 MB, free: 15.25 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.685e-05/0.07714, allocations: 4 kB / 379.3 MB, free: 15.24 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00012/0.07727, allocations: 55.8 kB / 379.4 MB, free: 15.19 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 9.922e-05/0.07739, allocations: 71.75 kB / 379.5 MB, free: 15.12 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005146/0.07791, allocations: 171.6 kB / 379.6 MB, free: 14.95 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001918/0.07811, allocations: 167.6 kB / 379.8 MB, free: 14.79 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.06e-05/0.07821, allocations: 19.97 kB / 379.8 MB, free: 14.77 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001009/0.07832, allocations: 75.75 kB / 379.9 MB, free: 14.69 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001661/0.07849, allocations: 119.7 kB / 380 MB, free: 14.57 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.793e-05/0.07853, allocations: 8 kB / 380 MB, free: 14.57 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000215/0.07875, allocations: 151.9 kB / 380.2 MB, free: 14.42 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.942e-05/0.07882, allocations: 35.84 kB / 380.2 MB, free: 14.38 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.714e-05/0.07892, allocations: 71.58 kB / 380.3 MB, free: 14.31 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000281/0.07921, allocations: 227.7 kB / 380.5 MB, free: 14.09 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.07922, allocations: 7.938 kB / 380.5 MB, free: 14.08 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.07923, allocations: 4 kB / 380.5 MB, free: 14.08 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.539e-06/0.07924, allocations: 0 / 380.5 MB, free: 14.08 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.0007504/0.08, allocations: 0.5215 MB / 381 MB, free: 13.5 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.384e-05/0.08004, allocations: 15.89 kB / 381 MB, free: 13.48 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.977e-05/0.08008, allocations: 46.67 kB / 381.1 MB, free: 13.43 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.599e-05/0.08014, allocations: 16.75 kB / 381.1 MB, free: 13.41 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002119/0.08035, allocations: 224 kB / 381.3 MB, free: 13.15 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.031e-05/0.08041, allocations: 42.25 kB / 381.4 MB, free: 13.11 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.062e-05/0.08044, allocations: 8.375 kB / 381.4 MB, free: 13.1 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002503/0.0807, allocations: 141.5 kB / 381.5 MB, free: 12.95 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.154e-06/0.08071, allocations: 0 / 381.5 MB, free: 12.95 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.546e-05/0.08073, allocations: 4 kB / 381.5 MB, free: 12.95 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.08074, allocations: 0 / 381.5 MB, free: 12.95 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001816/0.08093, allocations: 95.94 kB / 381.6 MB, free: 12.86 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004837/0.08142, allocations: 380.5 kB / 382 MB, free: 12.43 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002584/0.08169, allocations: 138.6 kB / 382.1 MB, free: 12.29 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001445/0.08185, allocations: 101 kB / 382.2 MB, free: 12.19 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.084e-05/0.08187, allocations: 4 kB / 382.2 MB, free: 12.18 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003527/0.08222, allocations: 238.6 kB / 382.5 MB, free: 11.93 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.503e-06/0.08224, allocations: 0 / 382.5 MB, free: 11.93 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0006994/0.08294, allocations: 474.8 kB / 382.9 MB, free: 11.45 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.746e-05/0.08302, allocations: 118.8 kB / 383 MB, free: 11.3 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001587/0.08318, allocations: 194.7 kB / 383.2 MB, free: 11.11 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.389e-05/0.08322, allocations: 29.7 kB / 383.3 MB, free: 11.07 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.989e-05/0.08328, allocations: 116.5 kB / 383.4 MB, free: 10.95 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.586e-05/0.08335, allocations: 55.34 kB / 383.4 MB, free: 10.9 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.969e-05/0.08342, allocations: 41.7 kB / 383.5 MB, free: 10.85 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001108/0.08354, allocations: 338.8 kB / 383.8 MB, free: 10.51 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001589/0.0837, allocations: 88.19 kB / 383.9 MB, free: 10.43 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001521/0.08386, allocations: 96.36 kB / 384 MB, free: 10.33 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003227/0.08419, allocations: 294 kB / 384.3 MB, free: 10.02 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.08421, allocations: 4 kB / 384.3 MB, free: 10.02 MB / 286.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004921/0.0847, allocations: 394.3 kB / 384.6 MB, free: 9.613 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.61e-05/0.08477, allocations: 67.39 kB / 384.7 MB, free: 9.535 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.08478, allocations: 4 kB / 384.7 MB, free: 9.531 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.434e-05/0.0848, allocations: 3.938 kB / 384.7 MB, free: 9.527 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001078/0.08492, allocations: 23.92 kB / 384.7 MB, free: 9.504 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.12e-06/0.08493, allocations: 0 / 384.7 MB, free: 9.504 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001231/0.08506, allocations: 27.83 kB / 384.8 MB, free: 9.477 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.878e-05/0.08509, allocations: 8 kB / 384.8 MB, free: 9.469 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.0001668/0.08526, allocations: 214.9 kB / 385 MB, free: 9.234 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.659e-05/0.08531, allocations: 27.8 kB / 385 MB, free: 9.207 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.276e-05/0.08535, allocations: 17.88 kB / 385 MB, free: 9.191 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.08536, allocations: 4 kB / 385 MB, free: 9.188 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.08537, allocations: 3.938 kB / 385 MB, free: 9.184 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.08537, allocations: 0 / 385 MB, free: 9.184 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001936/0.08557, allocations: 253.4 kB / 385.3 MB, free: 8.887 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.08558, allocations: 4 kB / 385.3 MB, free: 8.883 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.612e-05/0.08564, allocations: 19.92 kB / 385.3 MB, free: 8.863 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.385e-06/0.08565, allocations: 0 / 385.3 MB, free: 8.863 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.115e-05/0.08568, allocations: 8 kB / 385.3 MB, free: 8.855 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.08569, allocations: 3.984 kB / 385.3 MB, free: 8.852 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.08569, allocations: 0 / 385.3 MB, free: 8.852 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005879/0.08629, allocations: 468.4 kB / 385.8 MB, free: 8.363 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.574e-05/0.08634, allocations: 96.86 kB / 385.9 MB, free: 8.25 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.592e-05/0.0864, allocations: 19.97 kB / 385.9 MB, free: 8.23 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001042/0.08651, allocations: 8 kB / 385.9 MB, free: 8.223 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.132e-05/0.08657, allocations: 23.97 kB / 385.9 MB, free: 8.199 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.645e-05/0.08661, allocations: 8 kB / 385.9 MB, free: 8.191 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001146/0.08673, allocations: 148.3 kB / 386.1 MB, free: 8.047 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.525e-06/0.08674, allocations: 0 / 386.1 MB, free: 8.047 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000292/0.08703, allocations: 91.8 kB / 386.2 MB, free: 7.957 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.0009718/0.08801, allocations: 1.037 MB / 387.2 MB, free: 6.879 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005254/0.08855, allocations: 421.8 kB / 387.6 MB, free: 6.445 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.08856, allocations: 0 / 387.6 MB, free: 6.445 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002761/0.08885, allocations: 290.7 kB / 387.9 MB, free: 6.137 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002131/0.08907, allocations: 24 kB / 387.9 MB, free: 6.113 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002666/0.09174, allocations: 2.487 MB / 390.4 MB, free: 3.527 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002736/0.09204, allocations: 0.7278 MB / 391.1 MB, free: 2.773 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 5.122e-05/0.0921, allocations: 8.547 kB / 391.1 MB, free: 2.766 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.207e-05/0.09217, allocations: 47.42 kB / 391.2 MB, free: 2.719 MB / 286.1 MB Notification: Performance of SimCode: time 2.51e-07/0.09218, allocations: 0 / 391.2 MB, free: 2.719 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02202/0.1142, allocations: 4.473 MB / 395.7 MB, free: 14.18 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.024/8.138, allocations: 3.859 kB / 395.7 MB, free: 14.18 MB / 302.1 MB (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 & python3 -m fmpy simulate --output-file MEV_MEV.Test.TestPatientController2_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_TestPatientController2.fmu > MEV_MEV.Test.TestPatientController2.pipe 2>&1)