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.007149/0.007149, allocations: 106 kB / 15.74 MB, free: 6.02 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.001464/0.001465, allocations: 193.4 kB / 16.67 MB, free: 5.934 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.55/1.55, allocations: 205.1 MB / 222.6 MB, free: 4.516 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.008679/0.008679, allocations: 1.939 MB / 271.9 MB, free: 3.23 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.001815/0.001815, allocations: 75.84 kB / 377.8 MB, free: 0.918 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08527/0.08709, allocations: 47.12 MB / 424.9 MB, free: 1.691 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController2): time 0.002907/0.09005, allocations: 1.529 MB / 426.4 MB, free: 152 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.1631/0.2531, allocations: 0.7354 MB / 427.2 MB, free: 11.09 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.781e-05/0.2533, allocations: 5.031 kB / 427.2 MB, free: 11.09 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001642/0.2535, allocations: 55.52 kB / 427.2 MB, free: 11.09 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001619/0.2537, allocations: 78.59 kB / 427.3 MB, free: 11.07 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007412/0.2544, allocations: 168.6 kB / 427.5 MB, free: 11.05 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002763/0.2547, allocations: 170.9 kB / 427.6 MB, free: 11.04 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.539e-05/0.2548, allocations: 13.88 kB / 427.6 MB, free: 11.04 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001596/0.255, allocations: 86.64 kB / 427.7 MB, free: 11.03 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001975/0.2552, allocations: 112.7 kB / 427.8 MB, free: 11.02 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.681e-05/0.2552, allocations: 9.688 kB / 427.8 MB, free: 11.02 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002499/0.2555, allocations: 158.4 kB / 428 MB, free: 11.02 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.054e-05/0.2556, allocations: 35.55 kB / 428 MB, free: 11.01 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.48e-05/0.2557, allocations: 64.83 kB / 428.1 MB, free: 10.99 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003729/0.2561, allocations: 237.1 kB / 428.3 MB, free: 10.96 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.2561, allocations: 0.875 kB / 428.3 MB, free: 10.96 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.2561, allocations: 0.7031 kB / 428.3 MB, free: 10.96 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.015e-06/0.2561, allocations: 0.5 kB / 428.3 MB, free: 10.96 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.0007878/0.2569, allocations: 0.534 MB / 428.9 MB, free: 10.48 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.407e-05/0.2569, allocations: 13.67 kB / 428.9 MB, free: 10.48 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.738e-05/0.257, allocations: 40.69 kB / 428.9 MB, free: 10.44 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.974e-05/0.2571, allocations: 20.42 kB / 428.9 MB, free: 10.43 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003401/0.2574, allocations: 236.9 kB / 429.2 MB, free: 10.2 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.117e-05/0.2575, allocations: 40 kB / 429.2 MB, free: 10.17 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.846e-05/0.2575, allocations: 11.02 kB / 429.2 MB, free: 10.16 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003267/0.2579, allocations: 139.9 kB / 429.3 MB, free: 10.13 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.09e-05/0.2579, allocations: 0 / 429.3 MB, free: 10.13 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.881e-05/0.2579, allocations: 1.312 kB / 429.3 MB, free: 10.13 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.653e-06/0.2579, allocations: 2.188 kB / 429.4 MB, free: 10.13 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002301/0.2581, allocations: 94.8 kB / 429.4 MB, free: 10.13 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006491/0.2588, allocations: 376.7 kB / 429.8 MB, free: 9.824 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002889/0.2591, allocations: 141.3 kB / 429.9 MB, free: 9.762 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001703/0.2593, allocations: 104.5 kB / 430.1 MB, free: 9.723 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.186e-05/0.2593, allocations: 2.281 kB / 430.1 MB, free: 9.723 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003744/0.2597, allocations: 243 kB / 430.3 MB, free: 9.566 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.973e-06/0.2597, allocations: 0 / 430.3 MB, free: 9.566 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008419/0.2606, allocations: 475.1 kB / 430.8 MB, free: 9.375 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.483e-05/0.2606, allocations: 117.1 kB / 430.9 MB, free: 9.246 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001875/0.2608, allocations: 196.8 kB / 431.1 MB, free: 9.117 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.444e-05/0.2608, allocations: 33.14 kB / 431.1 MB, free: 9.082 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.638e-05/0.2609, allocations: 115.2 kB / 431.2 MB, free: 8.977 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.392e-05/0.261, allocations: 48.56 kB / 431.3 MB, free: 8.941 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.299e-05/0.2611, allocations: 44.84 kB / 431.3 MB, free: 8.914 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.73e-05/0.2611, allocations: 334.7 kB / 431.6 MB, free: 8.59 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001558/0.2613, allocations: 89.64 kB / 431.7 MB, free: 8.566 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001433/0.2615, allocations: 94.09 kB / 431.8 MB, free: 8.543 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000304/0.2618, allocations: 303.6 kB / 432.1 MB, free: 8.348 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.2618, allocations: 4 kB / 432.1 MB, free: 8.344 MB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004876/0.2623, allocations: 392.1 kB / 432.5 MB, free: 8.168 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.2e-05/0.2623, allocations: 69.91 kB / 432.6 MB, free: 8.102 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.702e-06/0.2623, allocations: 0.7031 kB / 432.6 MB, free: 8.102 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.071e-05/0.2624, allocations: 0.8438 kB / 432.6 MB, free: 8.102 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001072/0.2625, allocations: 15.84 kB / 432.6 MB, free: 8.102 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.684e-06/0.2625, allocations: 5.953 kB / 432.6 MB, free: 8.098 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00014/0.2626, allocations: 25.95 kB / 432.6 MB, free: 8.086 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.972e-05/0.2627, allocations: 9.469 kB / 432.6 MB, free: 8.082 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.0001391/0.2628, allocations: 225.1 kB / 432.8 MB, free: 7.883 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.755e-05/0.2629, allocations: 20.98 kB / 432.9 MB, free: 7.875 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.673e-05/0.2629, allocations: 22.45 kB / 432.9 MB, free: 7.859 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.2629, allocations: 1.125 kB / 432.9 MB, free: 7.859 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.2629, allocations: 1.875 kB / 432.9 MB, free: 7.859 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.2629, allocations: 0.6094 kB / 432.9 MB, free: 7.859 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001982/0.2631, allocations: 253.6 kB / 433.1 MB, free: 7.637 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.2631, allocations: 6.156 kB / 433.1 MB, free: 7.633 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.53e-05/0.2632, allocations: 14.03 kB / 433.1 MB, free: 7.629 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.987e-06/0.2632, allocations: 1.094 kB / 433.1 MB, free: 7.629 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.577e-05/0.2632, allocations: 10.94 kB / 433.2 MB, free: 7.625 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.945e-06/0.2633, allocations: 5.953 kB / 433.2 MB, free: 7.621 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.2633, allocations: 0 / 433.2 MB, free: 7.621 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006065/0.2639, allocations: 466 kB / 433.6 MB, free: 7.391 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.339e-05/0.2639, allocations: 102.2 kB / 433.7 MB, free: 7.277 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.231e-05/0.264, allocations: 10.88 kB / 433.7 MB, free: 7.273 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001086/0.2641, allocations: 20.8 kB / 433.7 MB, free: 7.27 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.44e-05/0.2642, allocations: 18.77 kB / 433.8 MB, free: 7.266 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.384e-05/0.2642, allocations: 9.562 kB / 433.8 MB, free: 7.266 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001193/0.2643, allocations: 149 kB / 433.9 MB, free: 7.172 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2643, allocations: 1.781 kB / 433.9 MB, free: 7.172 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003816/0.2647, allocations: 83.67 kB / 434 MB, free: 7.156 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.000881/0.2656, allocations: 1.044 MB / 435.1 MB, free: 6.387 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000468/0.2661, allocations: 404 kB / 435.4 MB, free: 6.16 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.2661, allocations: 0 / 435.4 MB, free: 6.16 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002504/0.2664, allocations: 284.2 kB / 435.7 MB, free: 5.969 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002345/0.2666, allocations: 25.81 kB / 435.7 MB, free: 5.957 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002819/0.2694, allocations: 2.507 MB / 438.3 MB, free: 4.332 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001708/0.2696, allocations: 0.7312 MB / 439 MB, free: 3.629 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 5.256e-05/0.2697, allocations: 16.45 kB / 439 MB, free: 3.617 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.423e-05/0.2698, allocations: 46.44 kB / 439 MB, free: 3.582 MB / 318.1 MB Notification: Performance of SimCode: time 4.11e-07/0.2698, allocations: 0 / 439 MB, free: 3.582 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02274/0.2925, allocations: 4.521 MB / 443.6 MB, free: 2.879 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.515/7.808, allocations: 9.062 kB / 443.6 MB, free: 2.871 MB / 318.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)