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.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.001208/0.001208, allocations: 80.44 kB / 19.17 MB, free: 0.7461 MB / 13.93 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.001477/0.001477, allocations: 165.9 kB / 22.45 MB, free: 2.113 MB / 18.57 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 0.9498/0.9498, allocations: 158.6 MB / 184.2 MB, free: 3.043 MB / 170.7 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.007932/0.007932, allocations: 1.432 MB / 237.9 MB, free: 13.92 MB / 234.7 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.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.375e-06/2.375e-06, allocations: 0 / 352.5 MB, free: 15.91 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.419e-05/2.656e-05, allocations: 2.281 kB / 352.5 MB, free: 15.91 MB / 282.7 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController1): time 0.001892/0.001918, allocations: 1.502 MB / 354 MB, free: 14.39 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008663/0.002785, allocations: 0.6999 MB / 354.7 MB, free: 13.68 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.842e-05/0.002863, allocations: 3.938 kB / 354.7 MB, free: 13.68 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001587/0.003022, allocations: 51.81 kB / 354.7 MB, free: 13.63 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001035/0.003125, allocations: 59.77 kB / 354.8 MB, free: 13.57 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006576/0.003783, allocations: 179.4 kB / 354.9 MB, free: 13.39 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002183/0.004001, allocations: 159.6 kB / 355.1 MB, free: 13.24 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000104/0.004105, allocations: 12 kB / 355.1 MB, free: 13.23 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001374/0.004243, allocations: 99.83 kB / 355.2 MB, free: 13.13 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001555/0.004398, allocations: 103.8 kB / 355.3 MB, free: 13.03 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.973e-05/0.004428, allocations: 12 kB / 355.3 MB, free: 13.02 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001488/0.004577, allocations: 139.9 kB / 355.5 MB, free: 12.88 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.468e-05/0.004631, allocations: 31.86 kB / 355.5 MB, free: 12.85 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.81e-05/0.004689, allocations: 47.89 kB / 355.5 MB, free: 12.8 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002142/0.004904, allocations: 271.3 kB / 355.8 MB, free: 12.54 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.344e-06/0.004906, allocations: 0 / 355.8 MB, free: 12.54 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.143e-06/0.004907, allocations: 0 / 355.8 MB, free: 12.54 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.598e-06/0.004912, allocations: 3.938 kB / 355.8 MB, free: 12.53 MB / 282.7 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.0005371/0.005449, allocations: 460.8 kB / 356.3 MB, free: 12.04 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.179e-05/0.005491, allocations: 11.98 kB / 356.3 MB, free: 12.03 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.028e-05/0.005521, allocations: 38.75 kB / 356.3 MB, free: 11.98 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.534e-05/0.005566, allocations: 24.84 kB / 356.3 MB, free: 11.96 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002151/0.005781, allocations: 158.2 kB / 356.5 MB, free: 11.78 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.336e-05/0.005835, allocations: 59.97 kB / 356.5 MB, free: 11.71 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.533e-05/0.00585, allocations: 8.375 kB / 356.6 MB, free: 11.7 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002129/0.006063, allocations: 205.4 kB / 356.8 MB, free: 11.48 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.298e-06/0.006072, allocations: 192 / 356.8 MB, free: 11.48 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.48e-05/0.006087, allocations: 7.922 kB / 356.8 MB, free: 11.47 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.006094, allocations: 4 kB / 356.8 MB, free: 11.47 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000127/0.006221, allocations: 155.3 kB / 356.9 MB, free: 11.3 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003872/0.006608, allocations: 311.8 kB / 357.2 MB, free: 10.96 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001802/0.006788, allocations: 181.9 kB / 357.4 MB, free: 10.76 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.422e-05/0.006882, allocations: 144.2 kB / 357.5 MB, free: 10.6 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.073e-05/0.006893, allocations: 3.938 kB / 357.5 MB, free: 10.6 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002391/0.007132, allocations: 294.2 kB / 357.8 MB, free: 10.27 MB / 282.7 MB Notification: Performance of pre-optimization done (n=23): time 1.313e-06/0.007134, allocations: 0 / 357.8 MB, free: 10.27 MB / 282.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004835/0.007617, allocations: 0.5879 MB / 358.4 MB, free: 9.645 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.119e-05/0.007658, allocations: 114.8 kB / 358.5 MB, free: 9.508 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.848e-05/0.007747, allocations: 181.2 kB / 358.7 MB, free: 9.324 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.264e-05/0.007759, allocations: 29.69 kB / 358.7 MB, free: 9.289 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.622e-05/0.007796, allocations: 104.6 kB / 358.8 MB, free: 9.184 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.145e-05/0.007827, allocations: 67.41 kB / 358.9 MB, free: 9.117 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.366e-05/0.007871, allocations: 45.7 kB / 358.9 MB, free: 9.066 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 3.479e-05/0.007905, allocations: 330.8 kB / 359.3 MB, free: 8.734 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.12e-05/0.007997, allocations: 147.6 kB / 359.4 MB, free: 8.578 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.656e-05/0.008083, allocations: 152.8 kB / 359.6 MB, free: 8.418 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001705/0.008254, allocations: 308.7 kB / 359.9 MB, free: 8.09 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.008256, allocations: 4 kB / 359.9 MB, free: 8.086 MB / 282.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0002809/0.008537, allocations: 464.4 kB / 360.3 MB, free: 7.602 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.988e-05/0.008567, allocations: 70.36 kB / 360.4 MB, free: 7.523 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.008573, allocations: 3.984 kB / 360.4 MB, free: 7.52 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.21e-05/0.008585, allocations: 4 kB / 360.4 MB, free: 7.516 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.756e-05/0.008652, allocations: 12 kB / 360.4 MB, free: 7.504 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.18e-06/0.008658, allocations: 0 / 360.4 MB, free: 7.504 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.734e-05/0.008725, allocations: 27.94 kB / 360.4 MB, free: 7.477 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.099e-05/0.008736, allocations: 4 kB / 360.4 MB, free: 7.473 MB / 282.7 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 8.817e-05/0.008824, allocations: 223.1 kB / 360.7 MB, free: 7.23 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.813e-05/0.008842, allocations: 19.91 kB / 360.7 MB, free: 7.211 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.298e-05/0.008865, allocations: 17.97 kB / 360.7 MB, free: 7.199 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.008867, allocations: 0 / 360.7 MB, free: 7.199 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.008873, allocations: 4 kB / 360.7 MB, free: 7.195 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.008878, allocations: 3.984 kB / 360.7 MB, free: 7.191 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.718e-05/0.008975, allocations: 204.5 kB / 360.9 MB, free: 6.949 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.008976, allocations: 4 kB / 360.9 MB, free: 6.945 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.215e-05/0.008999, allocations: 11.98 kB / 360.9 MB, free: 6.934 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.242e-06/0.009, allocations: 0 / 360.9 MB, free: 6.934 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.351e-05/0.009013, allocations: 8 kB / 360.9 MB, free: 6.926 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.009014, allocations: 0 / 360.9 MB, free: 6.926 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.009015, allocations: 0 / 360.9 MB, free: 6.926 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003286/0.009344, allocations: 0.5156 MB / 361.4 MB, free: 6.367 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.486e-05/0.009359, allocations: 19.84 kB / 361.5 MB, free: 6.348 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.645e-05/0.009385, allocations: 8 kB / 361.5 MB, free: 6.34 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.212e-05/0.009437, allocations: 19.97 kB / 361.5 MB, free: 6.32 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.527e-05/0.009493, allocations: 19.97 kB / 361.5 MB, free: 6.301 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.188e-05/0.009514, allocations: 19.92 kB / 361.5 MB, free: 6.281 MB / 282.7 MB Notification: Performance of sorting global known variables: time 5.028e-05/0.009565, allocations: 135.2 kB / 361.7 MB, free: 6.148 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.009565, allocations: 0 / 361.7 MB, free: 6.148 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001949/0.00976, allocations: 79.89 kB / 361.7 MB, free: 6.07 MB / 282.7 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.0005322/0.01029, allocations: 1.114 MB / 362.9 MB, free: 4.902 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002992/0.01059, allocations: 477.3 kB / 363.3 MB, free: 4.387 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.01059, allocations: 0 / 363.3 MB, free: 4.387 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001306/0.01072, allocations: 290.1 kB / 363.6 MB, free: 4.066 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001555/0.01088, allocations: 19.98 kB / 363.6 MB, free: 4.047 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001607/0.01249, allocations: 2.759 MB / 366.4 MB, free: 1.129 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.806e-05/0.01254, allocations: 114.5 kB / 366.5 MB, free: 1 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 3.575e-05/0.01258, allocations: 8.484 kB / 366.5 MB, free: 0.9922 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.895e-05/0.01263, allocations: 44.48 kB / 366.5 MB, free: 0.9492 MB / 282.7 MB Notification: Performance of SimCode: time 1.413e-06/0.01263, allocations: 0 / 366.5 MB, free: 0.9492 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01584/0.02847, allocations: 5.232 MB / 371.8 MB, free: 11.66 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.274/7.303, allocations: 4.062 kB / 371.8 MB, free: 11.65 MB / 298.7 MB " [Timeout remaining time 653] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.228310527279973] Failed to read output from testmodel.py, exit status != 0: 7.385396691039205 7.392210767 7.385739251 Calling exit ...