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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001346/0.001346, allocations: 105.8 kB / 16.4 MB, free: 6.445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00133/0.00133, allocations: 191.7 kB / 19.36 MB, free: 3.727 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.52/1.52, allocations: 205.1 MB / 227.2 MB, free: 4.551 MB / 174.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.009186/0.009186, allocations: 1.928 MB / 278.5 MB, free: 1.266 MB / 222.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "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.002283/0.002283, allocations: 67.89 kB / 386.5 MB, free: 14.65 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2645/0.2668, allocations: 47.12 MB / 433.6 MB, free: 12.43 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController2): time 0.002383/0.2693, allocations: 1.525 MB / 435.1 MB, free: 11.68 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001044/0.2703, allocations: 0.7404 MB / 435.9 MB, free: 11.18 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.841e-05/0.2704, allocations: 4.969 kB / 435.9 MB, free: 11.17 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001418/0.2706, allocations: 59.84 kB / 435.9 MB, free: 11.16 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001234/0.2707, allocations: 77.12 kB / 436 MB, free: 11.14 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006006/0.2713, allocations: 170.1 kB / 436.2 MB, free: 11.07 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002504/0.2716, allocations: 172 kB / 436.3 MB, free: 11.01 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.105e-05/0.2717, allocations: 18.22 kB / 436.3 MB, free: 11.01 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000114/0.2718, allocations: 82.69 kB / 436.4 MB, free: 10.98 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000193/0.272, allocations: 113.2 kB / 436.5 MB, free: 10.95 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.865e-05/0.272, allocations: 13.38 kB / 436.5 MB, free: 10.95 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002472/0.2723, allocations: 154.3 kB / 436.7 MB, free: 10.91 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.488e-05/0.2724, allocations: 40.67 kB / 436.7 MB, free: 10.89 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.042e-05/0.2725, allocations: 64.47 kB / 436.8 MB, free: 10.85 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003356/0.2728, allocations: 234.4 kB / 437 MB, free: 10.77 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.2728, allocations: 0 / 437 MB, free: 10.77 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.2728, allocations: 1.25 kB / 437 MB, free: 10.77 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.911e-06/0.2728, allocations: 3.938 kB / 437 MB, free: 10.77 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.0006841/0.2735, allocations: 0.5383 MB / 437.6 MB, free: 10.26 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.083e-05/0.2736, allocations: 13.42 kB / 437.6 MB, free: 10.25 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.188e-05/0.2736, allocations: 39.52 kB / 437.6 MB, free: 10.21 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.444e-05/0.2737, allocations: 24.22 kB / 437.6 MB, free: 10.2 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002496/0.2739, allocations: 225.1 kB / 437.9 MB, free: 9.973 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.826e-05/0.274, allocations: 33.39 kB / 437.9 MB, free: 9.941 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.704e-05/0.274, allocations: 10.86 kB / 437.9 MB, free: 9.938 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002676/0.2743, allocations: 142.5 kB / 438.1 MB, free: 9.875 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.478e-06/0.2743, allocations: 4 kB / 438.1 MB, free: 9.871 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.747e-05/0.2743, allocations: 2.281 kB / 438.1 MB, free: 9.871 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-06/0.2743, allocations: 1.891 kB / 438.1 MB, free: 9.871 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001883/0.2745, allocations: 93.09 kB / 438.2 MB, free: 9.852 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004589/0.275, allocations: 374.8 kB / 438.5 MB, free: 9.531 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002627/0.2753, allocations: 153.5 kB / 438.7 MB, free: 9.457 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001674/0.2754, allocations: 101.4 kB / 438.8 MB, free: 9.422 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.424e-05/0.2755, allocations: 2.125 kB / 438.8 MB, free: 9.422 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003469/0.2758, allocations: 243.1 kB / 439 MB, free: 9.266 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.423e-06/0.2758, allocations: 0 / 439 MB, free: 9.266 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.000786/0.2766, allocations: 481.5 kB / 439.5 MB, free: 9.066 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.418e-05/0.2767, allocations: 115.6 kB / 439.6 MB, free: 8.938 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001701/0.2769, allocations: 193.5 kB / 439.8 MB, free: 8.812 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.242e-05/0.2769, allocations: 32.78 kB / 439.8 MB, free: 8.777 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.227e-05/0.2769, allocations: 111.7 kB / 439.9 MB, free: 8.676 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.799e-05/0.277, allocations: 57.17 kB / 440 MB, free: 8.633 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.396e-05/0.2771, allocations: 44.25 kB / 440 MB, free: 8.605 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.964e-05/0.2772, allocations: 334.4 kB / 440.3 MB, free: 8.281 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001493/0.2773, allocations: 93.89 kB / 440.4 MB, free: 8.254 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001377/0.2775, allocations: 86.52 kB / 440.5 MB, free: 8.234 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003214/0.2778, allocations: 301 kB / 440.8 MB, free: 8.039 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.2778, allocations: 0 / 440.8 MB, free: 8.039 MB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004942/0.2783, allocations: 395.7 kB / 441.2 MB, free: 7.859 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.039e-05/0.2784, allocations: 70.11 kB / 441.3 MB, free: 7.793 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.2784, allocations: 0 / 441.3 MB, free: 7.793 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.716e-05/0.2784, allocations: 4.406 kB / 441.3 MB, free: 7.793 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001123/0.2785, allocations: 24 kB / 441.3 MB, free: 7.785 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.2785, allocations: 5.656 kB / 441.3 MB, free: 7.781 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001246/0.2787, allocations: 20.95 kB / 441.3 MB, free: 7.773 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.129e-05/0.2787, allocations: 15.66 kB / 441.3 MB, free: 7.766 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.0001511/0.2788, allocations: 215.6 kB / 441.5 MB, free: 7.57 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.569e-05/0.2789, allocations: 21.14 kB / 441.6 MB, free: 7.562 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.755e-05/0.2789, allocations: 21.95 kB / 441.6 MB, free: 7.547 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.139e-06/0.2789, allocations: 6.219 kB / 441.6 MB, free: 7.543 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.279, allocations: 0 / 441.6 MB, free: 7.543 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.838e-06/0.279, allocations: 0.75 kB / 441.6 MB, free: 7.543 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002132/0.2792, allocations: 261 kB / 441.9 MB, free: 7.312 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.2792, allocations: 0 / 441.9 MB, free: 7.312 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.194e-05/0.2792, allocations: 10.09 kB / 441.9 MB, free: 7.312 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/0.2793, allocations: 0.7969 kB / 441.9 MB, free: 7.312 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.366e-05/0.2793, allocations: 8.359 kB / 441.9 MB, free: 7.312 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.2793, allocations: 1.062 kB / 441.9 MB, free: 7.312 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.2793, allocations: 5.062 kB / 441.9 MB, free: 7.309 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005938/0.2799, allocations: 470.2 kB / 442.3 MB, free: 7.074 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.394e-05/0.28, allocations: 95.16 kB / 442.4 MB, free: 6.969 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.328e-05/0.28, allocations: 14.47 kB / 442.4 MB, free: 6.961 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001053/0.2801, allocations: 11.66 kB / 442.5 MB, free: 6.961 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.882e-05/0.2802, allocations: 16.23 kB / 442.5 MB, free: 6.957 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.182e-05/0.2802, allocations: 12.98 kB / 442.5 MB, free: 6.953 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001093/0.2804, allocations: 154 kB / 442.6 MB, free: 6.855 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2804, allocations: 0 / 442.6 MB, free: 6.855 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003797/0.2807, allocations: 85.78 kB / 442.7 MB, free: 6.84 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.0008774/0.2816, allocations: 1.044 MB / 443.8 MB, free: 6.066 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004919/0.2821, allocations: 408.9 kB / 444.2 MB, free: 5.836 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.2821, allocations: 0 / 444.2 MB, free: 5.836 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002882/0.2824, allocations: 288.3 kB / 444.4 MB, free: 5.641 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002758/0.2827, allocations: 17.75 kB / 444.5 MB, free: 5.637 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003153/0.2859, allocations: 2.504 MB / 447 MB, free: 4.012 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000182/0.2861, allocations: 0.7363 MB / 447.7 MB, free: 3.305 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.904e-05/0.2862, allocations: 7.859 kB / 447.7 MB, free: 3.305 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.438e-05/0.2862, allocations: 44.09 kB / 447.8 MB, free: 3.27 MB / 318.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2862, allocations: 1.125 kB / 447.8 MB, free: 3.27 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02901/0.3152, allocations: 4.529 MB / 452.3 MB, free: 2.277 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.197/8.512, allocations: 5.297 kB / 452.3 MB, free: 2.273 MB / 318.1 MB " [Timeout remaining time 651] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.034972368041053] Failed to read output from testmodel.py, exit status != 0: 8.578429214074276 8.593293755 8.317350652 Calling exit ...