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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001688/0.001688, allocations: 114.8 kB / 17.16 MB, free: 5.895 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001946/0.001946, allocations: 210.3 kB / 20.13 MB, free: 2.949 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.399/1.399, allocations: 207.6 MB / 230.5 MB, free: 4.047 MB / 174.1 MB " [Timeout remaining time 179] 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.008282/0.008282, allocations: 1.966 MB / 284.3 MB, free: 14.36 MB / 238.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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(MEV.Test.TestPatientController2,fileNamePrefix="MEV_MEV_Test_TestPatientController2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(MEV.Test.TestPatientController2,fileNamePrefix="MEV_MEV_Test_TestPatientController2",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002353/0.002353, allocations: 64.53 kB / 397.3 MB, free: 8.867 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2478/0.2502, allocations: 49.67 MB / 447 MB, free: 8.457 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController2): time 0.002352/0.2525, allocations: 1.524 MB / 448.5 MB, free: 7.395 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001049/0.2536, allocations: 0.7577 MB / 449.2 MB, free: 6.871 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.581e-05/0.2536, allocations: 1.156 kB / 449.2 MB, free: 6.871 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001379/0.2538, allocations: 59.06 kB / 449.3 MB, free: 6.863 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001181/0.2539, allocations: 78.62 kB / 449.4 MB, free: 6.84 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005344/0.2544, allocations: 172.5 kB / 449.5 MB, free: 6.766 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000202/0.2546, allocations: 162.2 kB / 449.7 MB, free: 6.707 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.914e-05/0.2547, allocations: 14.41 kB / 449.7 MB, free: 6.703 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001129/0.2548, allocations: 84.72 kB / 449.8 MB, free: 6.676 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001912/0.255, allocations: 122.9 kB / 449.9 MB, free: 6.648 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.726e-05/0.255, allocations: 13.25 kB / 449.9 MB, free: 6.645 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002027/0.2552, allocations: 157.9 kB / 450.1 MB, free: 6.605 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.215e-05/0.2553, allocations: 37.36 kB / 450.1 MB, free: 6.586 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.805e-05/0.2554, allocations: 65.16 kB / 450.2 MB, free: 6.543 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002872/0.2557, allocations: 229.9 kB / 450.4 MB, free: 6.465 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.2557, allocations: 1.125 kB / 450.4 MB, free: 6.465 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.2557, allocations: 1.375 kB / 450.4 MB, free: 6.465 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.962e-06/0.2557, allocations: 7.875 kB / 450.4 MB, free: 6.457 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.0006994/0.2564, allocations: 0.5282 MB / 451 MB, free: 5.957 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.811e-05/0.2564, allocations: 18.14 kB / 451 MB, free: 5.949 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.158e-05/0.2564, allocations: 1.75 kB / 451 MB, free: 5.949 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.408e-05/0.2565, allocations: 41.05 kB / 451 MB, free: 5.906 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.777e-05/0.2565, allocations: 19.16 kB / 451 MB, free: 5.898 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002425/0.2568, allocations: 230 kB / 451.3 MB, free: 5.664 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.202e-05/0.2568, allocations: 32.8 kB / 451.3 MB, free: 5.633 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.883e-05/0.2568, allocations: 15.5 kB / 451.3 MB, free: 5.625 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002839/0.2571, allocations: 137.2 kB / 451.4 MB, free: 5.566 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.736e-06/0.2571, allocations: 5.375 kB / 451.4 MB, free: 5.562 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.68e-05/0.2572, allocations: 1.891 kB / 451.4 MB, free: 5.562 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.109e-06/0.2572, allocations: 1.891 kB / 451.4 MB, free: 5.562 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002223/0.2574, allocations: 92.62 kB / 451.5 MB, free: 5.543 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000511/0.2579, allocations: 370.9 kB / 451.9 MB, free: 5.227 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002957/0.2582, allocations: 125.4 kB / 452 MB, free: 5.172 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001409/0.2583, allocations: 85.05 kB / 452.1 MB, free: 5.145 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.666e-06/0.2583, allocations: 1.375 kB / 452.1 MB, free: 5.145 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003179/0.2587, allocations: 252.4 kB / 452.4 MB, free: 4.98 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.513e-06/0.2587, allocations: 0 / 452.4 MB, free: 4.98 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007596/0.2594, allocations: 482.8 kB / 452.8 MB, free: 4.781 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.257e-05/0.2595, allocations: 111 kB / 452.9 MB, free: 4.656 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001613/0.2596, allocations: 197 kB / 453.1 MB, free: 4.527 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.15e-05/0.2597, allocations: 33.17 kB / 453.2 MB, free: 4.492 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.567e-05/0.2597, allocations: 111.7 kB / 453.3 MB, free: 4.391 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.53e-05/0.2597, allocations: 55.19 kB / 453.3 MB, free: 4.348 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.126e-05/0.2598, allocations: 46.11 kB / 453.4 MB, free: 4.32 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.937e-05/0.2599, allocations: 342.7 kB / 453.7 MB, free: 3.988 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001525/0.26, allocations: 84.91 kB / 453.8 MB, free: 3.969 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001399/0.2602, allocations: 92 kB / 453.9 MB, free: 3.945 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002933/0.2605, allocations: 301 kB / 454.2 MB, free: 3.75 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.2605, allocations: 0 / 454.2 MB, free: 3.75 MB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004758/0.2609, allocations: 390.2 kB / 454.5 MB, free: 3.574 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.524e-05/0.261, allocations: 70.47 kB / 454.6 MB, free: 3.508 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.593e-06/0.261, allocations: 1.469 kB / 454.6 MB, free: 3.508 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.905e-05/0.261, allocations: 7.938 kB / 454.6 MB, free: 3.5 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001098/0.2611, allocations: 21.09 kB / 454.6 MB, free: 3.496 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.971e-06/0.2611, allocations: 1.438 kB / 454.6 MB, free: 3.496 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000124/0.2613, allocations: 21.58 kB / 454.7 MB, free: 3.488 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.982e-05/0.2613, allocations: 10.28 kB / 454.7 MB, free: 3.484 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.0001426/0.2614, allocations: 220.9 kB / 454.9 MB, free: 3.285 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.547e-05/0.2614, allocations: 20.3 kB / 454.9 MB, free: 3.277 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.781e-05/0.2615, allocations: 22.25 kB / 454.9 MB, free: 3.262 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.2615, allocations: 1.375 kB / 454.9 MB, free: 3.262 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.351e-06/0.2615, allocations: 1.156 kB / 454.9 MB, free: 3.262 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.489e-06/0.2615, allocations: 0.7031 kB / 454.9 MB, free: 3.262 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001845/0.2617, allocations: 263.7 kB / 455.2 MB, free: 3.027 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.2617, allocations: 0.6562 kB / 455.2 MB, free: 3.027 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.344e-05/0.2617, allocations: 14.91 kB / 455.2 MB, free: 3.023 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.2617, allocations: 0 / 455.2 MB, free: 3.023 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.18e-05/0.2618, allocations: 7.609 kB / 455.2 MB, free: 3.023 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.365e-06/0.2618, allocations: 1.219 kB / 455.2 MB, free: 3.023 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.2618, allocations: 7.938 kB / 455.2 MB, free: 3.016 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005675/0.2623, allocations: 469 kB / 455.7 MB, free: 2.785 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.011e-05/0.2624, allocations: 93.98 kB / 455.8 MB, free: 2.68 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.222e-05/0.2624, allocations: 11.11 kB / 455.8 MB, free: 2.676 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001037/0.2625, allocations: 11.23 kB / 455.8 MB, free: 2.676 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.185e-05/0.2626, allocations: 16.97 kB / 455.8 MB, free: 2.672 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.772e-05/0.2626, allocations: 17.09 kB / 455.8 MB, free: 2.664 MB / 318.1 MB Notification: Performance of sorting global known variables: time 9.669e-05/0.2627, allocations: 153.8 kB / 456 MB, free: 2.566 MB / 318.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2627, allocations: 1.125 kB / 456 MB, free: 2.566 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002932/0.263, allocations: 83.42 kB / 456.1 MB, free: 2.551 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.0007957/0.2638, allocations: 1.048 MB / 457.1 MB, free: 1.777 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004411/0.2642, allocations: 343.2 kB / 457.4 MB, free: 1.59 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.2642, allocations: 0 / 457.4 MB, free: 1.59 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002154/0.2644, allocations: 223.5 kB / 457.7 MB, free: 1.438 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002192/0.2647, allocations: 28.58 kB / 457.7 MB, free: 1.422 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002753/0.2674, allocations: 2.51 MB / 460.2 MB, free: 15.8 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003963/0.2678, allocations: 0.735 MB / 460.9 MB, free: 15.09 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.299e-05/0.2679, allocations: 8.328 kB / 460.9 MB, free: 15.09 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.705e-05/0.2679, allocations: 46.06 kB / 461 MB, free: 15.05 MB / 334.1 MB Notification: Performance of SimCode: time 3.5e-07/0.2679, allocations: 0 / 461 MB, free: 15.05 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01926/0.2872, allocations: 4.561 MB / 465.6 MB, free: 12.74 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.037/8.324, allocations: 10.3 kB / 465.6 MB, free: 12.73 MB / 334.1 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_MEV_MEV_Test_TestPatientController2_fmu --startTime=0 --stopTime=100 --stepSize=0.2 --timeout=50 --tolerance=1e-06 MEV_MEV_Test_TestPatientController2.fmu > MEV_MEV.Test.TestPatientController2.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.615308968001045] Failed to read output from testmodel.py, exit status != 0: 8.448780872975476 8.467617789 8.208361353 Calling exit ...