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.006934/0.006935, allocations: 95.92 kB / 15.73 MB, free: 6.039 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.001895/0.001895, allocations: 197.1 kB / 16.68 MB, free: 5.969 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.423/1.423, allocations: 205.1 MB / 222.6 MB, free: 4.551 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.00989/0.00989, allocations: 1.939 MB / 271.8 MB, free: 3.254 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.001499/0.001499, allocations: 71.89 kB / 377.7 MB, free: 0.9414 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0823/0.08381, allocations: 47.13 MB / 424.9 MB, free: 1.707 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController1): time 0.003122/0.08697, allocations: 1.513 MB / 426.4 MB, free: 184 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.1699/0.2569, allocations: 0.7406 MB / 427.1 MB, free: 10.5 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.97e-05/0.2571, allocations: 4.969 kB / 427.1 MB, free: 10.5 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001277/0.2572, allocations: 51.14 kB / 427.2 MB, free: 10.49 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001153/0.2574, allocations: 64.25 kB / 427.3 MB, free: 10.48 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006015/0.258, allocations: 171.1 kB / 427.4 MB, free: 10.46 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000254/0.2582, allocations: 170.3 kB / 427.6 MB, free: 10.45 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.61e-05/0.2583, allocations: 12.12 kB / 427.6 MB, free: 10.45 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001434/0.2585, allocations: 80.22 kB / 427.7 MB, free: 10.44 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001886/0.2587, allocations: 102.5 kB / 427.8 MB, free: 10.43 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.481e-05/0.2587, allocations: 10.84 kB / 427.8 MB, free: 10.43 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000236/0.259, allocations: 159.7 kB / 427.9 MB, free: 10.43 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.845e-05/0.259, allocations: 27.25 kB / 428 MB, free: 10.42 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.544e-05/0.2591, allocations: 67.86 kB / 428 MB, free: 10.4 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003505/0.2595, allocations: 226.9 kB / 428.3 MB, free: 10.38 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.2595, allocations: 0.6094 kB / 428.3 MB, free: 10.38 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2595, allocations: 1.25 kB / 428.3 MB, free: 10.38 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.081e-05/0.2595, allocations: 1.406 kB / 428.3 MB, free: 10.38 MB / 318.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.0007249/0.2603, allocations: 0.5238 MB / 428.8 MB, free: 9.898 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.706e-05/0.2603, allocations: 12.83 kB / 428.8 MB, free: 9.895 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.887e-05/0.2603, allocations: 48.19 kB / 428.8 MB, free: 9.855 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.931e-05/0.2604, allocations: 19.91 kB / 428.9 MB, free: 9.848 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002472/0.2607, allocations: 225.9 kB / 429.1 MB, free: 9.625 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.7e-05/0.2607, allocations: 36.36 kB / 429.1 MB, free: 9.594 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.191e-05/0.2607, allocations: 6.219 kB / 429.1 MB, free: 9.594 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002501/0.261, allocations: 138.8 kB / 429.3 MB, free: 9.559 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.135e-06/0.261, allocations: 0 / 429.3 MB, free: 9.559 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.66e-05/0.261, allocations: 7.656 kB / 429.3 MB, free: 9.559 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.398e-06/0.261, allocations: 1.5 kB / 429.3 MB, free: 9.559 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001803/0.2612, allocations: 93.28 kB / 429.4 MB, free: 9.555 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004396/0.2617, allocations: 369.3 kB / 429.7 MB, free: 9.277 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002453/0.2619, allocations: 133.8 kB / 429.9 MB, free: 9.254 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001412/0.2621, allocations: 103.9 kB / 430 MB, free: 9.242 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.32e-05/0.2621, allocations: 1.188 kB / 430 MB, free: 9.242 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003034/0.2624, allocations: 241.7 kB / 430.2 MB, free: 9.117 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.593e-06/0.2624, allocations: 0 / 430.2 MB, free: 9.117 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0006825/0.2631, allocations: 456.2 kB / 430.6 MB, free: 9.008 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.448e-05/0.2632, allocations: 118.9 kB / 430.8 MB, free: 8.879 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001387/0.2633, allocations: 184.6 kB / 430.9 MB, free: 8.777 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.986e-05/0.2633, allocations: 33.23 kB / 431 MB, free: 8.746 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.261e-05/0.2634, allocations: 110.6 kB / 431.1 MB, free: 8.66 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.356e-05/0.2634, allocations: 54.94 kB / 431.1 MB, free: 8.629 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.94e-05/0.2635, allocations: 44.92 kB / 431.2 MB, free: 8.613 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.941e-05/0.2636, allocations: 334.4 kB / 431.5 MB, free: 8.297 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001459/0.2637, allocations: 86.27 kB / 431.6 MB, free: 8.297 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001425/0.2639, allocations: 90.64 kB / 431.7 MB, free: 8.289 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002817/0.2642, allocations: 291.9 kB / 432 MB, free: 8.121 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.073e-06/0.2642, allocations: 0 / 432 MB, free: 8.121 MB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004635/0.2646, allocations: 376.8 kB / 432.3 MB, free: 7.949 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.086e-05/0.2647, allocations: 68.84 kB / 432.4 MB, free: 7.883 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.2647, allocations: 0.9375 kB / 432.4 MB, free: 7.883 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.473e-05/0.2647, allocations: 1.031 kB / 432.4 MB, free: 7.883 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001038/0.2648, allocations: 23.25 kB / 432.4 MB, free: 7.879 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.741e-06/0.2648, allocations: 5.094 kB / 432.4 MB, free: 7.875 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001218/0.265, allocations: 29.58 kB / 432.4 MB, free: 7.859 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.969e-05/0.265, allocations: 6.469 kB / 432.5 MB, free: 7.859 MB / 318.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.0001302/0.2651, allocations: 217.4 kB / 432.7 MB, free: 7.664 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.296e-05/0.2652, allocations: 19.06 kB / 432.7 MB, free: 7.656 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.231e-05/0.2652, allocations: 22.17 kB / 432.7 MB, free: 7.641 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.796e-06/0.2652, allocations: 1.188 kB / 432.7 MB, free: 7.641 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.2652, allocations: 1.594 kB / 432.7 MB, free: 7.641 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.2652, allocations: 4.703 kB / 432.7 MB, free: 7.637 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000165/0.2654, allocations: 250.7 kB / 433 MB, free: 7.414 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.2654, allocations: 1.156 kB / 433 MB, free: 7.414 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.443e-05/0.2655, allocations: 21.5 kB / 433 MB, free: 7.402 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.2655, allocations: 1.75 kB / 433 MB, free: 7.402 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.241e-05/0.2655, allocations: 6.344 kB / 433 MB, free: 7.402 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.464e-06/0.2655, allocations: 1.969 kB / 433 MB, free: 7.402 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.2655, allocations: 0 / 433 MB, free: 7.402 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005432/0.2661, allocations: 459.4 kB / 433.4 MB, free: 7.168 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.068e-05/0.2661, allocations: 92.36 kB / 433.5 MB, free: 7.066 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.035e-05/0.2662, allocations: 10.3 kB / 433.5 MB, free: 7.062 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001018/0.2663, allocations: 11.47 kB / 433.6 MB, free: 7.062 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.959e-05/0.2663, allocations: 21.83 kB / 433.6 MB, free: 7.055 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.819e-05/0.2664, allocations: 9.469 kB / 433.6 MB, free: 7.055 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.855e-05/0.2665, allocations: 137 kB / 433.7 MB, free: 6.965 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2665, allocations: 1.594 kB / 433.7 MB, free: 6.965 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003281/0.2668, allocations: 91.36 kB / 433.8 MB, free: 6.941 MB / 318.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.0008208/0.2676, allocations: 1.029 MB / 434.8 MB, free: 6.18 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004688/0.2681, allocations: 402.4 kB / 435.2 MB, free: 5.949 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.2681, allocations: 4 kB / 435.2 MB, free: 5.945 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002332/0.2684, allocations: 284.2 kB / 435.5 MB, free: 5.75 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002198/0.2686, allocations: 17.89 kB / 435.5 MB, free: 5.746 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002441/0.271, allocations: 2.411 MB / 437.9 MB, free: 4.148 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001455/0.2712, allocations: 0.7247 MB / 438.7 MB, free: 3.449 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.684e-05/0.2713, allocations: 12.3 kB / 438.7 MB, free: 3.445 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.624e-05/0.2713, allocations: 45.16 kB / 438.7 MB, free: 3.41 MB / 318.1 MB Notification: Performance of SimCode: time 8.32e-07/0.2713, allocations: 3.938 kB / 438.7 MB, free: 3.406 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02249/0.2938, allocations: 4.42 MB / 443.1 MB, free: 2.703 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.609/7.903, allocations: 5.156 kB / 443.1 MB, free: 2.699 MB / 318.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)