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.000816/0.000816, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.0009201/0.0009201, allocations: 169.9 kB / 22.46 MB, free: 2.102 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.9083/0.9083, allocations: 158.6 MB / 184.2 MB, free: 3.023 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.006828/0.006828, allocations: 1.42 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.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: Performance of FrontEnd - loaded program: time 3.216e-06/3.216e-06, allocations: 0 / 352.5 MB, free: 15.9 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.665e-05/2.987e-05, allocations: 6.219 kB / 352.5 MB, free: 15.89 MB / 282.7 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController2): time 0.002752/0.002782, allocations: 1.51 MB / 354 MB, free: 14.37 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001158/0.00394, allocations: 0.7038 MB / 354.7 MB, free: 13.66 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.889e-05/0.004009, allocations: 0 / 354.7 MB, free: 13.66 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001361/0.004145, allocations: 67.72 kB / 354.7 MB, free: 13.59 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 8.9e-05/0.004234, allocations: 67.77 kB / 354.8 MB, free: 13.52 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004933/0.004727, allocations: 163.5 kB / 355 MB, free: 13.36 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000162/0.004889, allocations: 171.6 kB / 355.1 MB, free: 13.2 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001028/0.004992, allocations: 15.98 kB / 355.2 MB, free: 13.18 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001142/0.005106, allocations: 103.8 kB / 355.3 MB, free: 13.08 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001677/0.005274, allocations: 115.8 kB / 355.4 MB, free: 12.96 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.399e-05/0.005298, allocations: 8 kB / 355.4 MB, free: 12.96 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001509/0.005449, allocations: 151.8 kB / 355.5 MB, free: 12.81 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.622e-05/0.005515, allocations: 31.86 kB / 355.6 MB, free: 12.78 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.912e-05/0.005574, allocations: 47.89 kB / 355.6 MB, free: 12.73 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002431/0.005817, allocations: 267.3 kB / 355.9 MB, free: 12.47 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.005821, allocations: 4 kB / 355.9 MB, free: 12.46 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.005823, allocations: 0 / 355.9 MB, free: 12.46 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.43e-06/0.005829, allocations: 0 / 355.9 MB, free: 12.46 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.0005862/0.006415, allocations: 472.6 kB / 356.3 MB, free: 11.96 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.94e-05/0.006454, allocations: 11.98 kB / 356.3 MB, free: 11.95 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.625e-05/0.006481, allocations: 42.73 kB / 356.4 MB, free: 11.9 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.515e-05/0.006526, allocations: 20.84 kB / 356.4 MB, free: 11.88 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000238/0.006764, allocations: 169.4 kB / 356.6 MB, free: 11.69 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.146e-05/0.006815, allocations: 59.95 kB / 356.6 MB, free: 11.62 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.577e-05/0.006831, allocations: 12.38 kB / 356.6 MB, free: 11.61 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002071/0.007038, allocations: 193.6 kB / 356.8 MB, free: 11.4 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.436e-06/0.007047, allocations: 192 / 356.8 MB, free: 11.4 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.265e-05/0.007059, allocations: 7.938 kB / 356.8 MB, free: 11.39 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.007064, allocations: 0 / 356.8 MB, free: 11.39 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001272/0.007191, allocations: 163.3 kB / 357 MB, free: 11.22 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003564/0.007547, allocations: 311.9 kB / 357.3 MB, free: 10.87 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001878/0.007735, allocations: 193.8 kB / 357.5 MB, free: 10.66 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.75e-05/0.007823, allocations: 144.3 kB / 357.6 MB, free: 10.5 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.192e-05/0.007835, allocations: 7.938 kB / 357.6 MB, free: 10.5 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002327/0.008067, allocations: 298.2 kB / 357.9 MB, free: 10.17 MB / 282.7 MB Notification: Performance of pre-optimization done (n=23): time 2.004e-06/0.008069, allocations: 0 / 357.9 MB, free: 10.17 MB / 282.7 MB Notification: Performance of matching and sorting (n=23): time 0.0005168/0.008586, allocations: 0.5918 MB / 358.5 MB, free: 9.535 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.374e-05/0.00863, allocations: 122.7 kB / 358.6 MB, free: 9.391 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.364e-05/0.008724, allocations: 210.7 kB / 358.8 MB, free: 9.172 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.27e-05/0.008736, allocations: 29.7 kB / 358.9 MB, free: 9.137 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.547e-05/0.008772, allocations: 108.6 kB / 359 MB, free: 9.027 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.304e-05/0.008805, allocations: 55.53 kB / 359 MB, free: 8.973 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.931e-05/0.008854, allocations: 49.69 kB / 359.1 MB, free: 8.918 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 3.628e-05/0.00889, allocations: 330.8 kB / 359.4 MB, free: 8.586 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001046/0.008995, allocations: 147.6 kB / 359.6 MB, free: 8.43 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.19e-05/0.009087, allocations: 159.8 kB / 359.7 MB, free: 8.262 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000179/0.009266, allocations: 310.4 kB / 360 MB, free: 7.934 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.009268, allocations: 4 kB / 360 MB, free: 7.93 MB / 282.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0002822/0.00955, allocations: 482 kB / 360.5 MB, free: 7.43 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.567e-05/0.009586, allocations: 75.39 kB / 360.6 MB, free: 7.344 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.009592, allocations: 0 / 360.6 MB, free: 7.344 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.364e-05/0.009606, allocations: 0 / 360.6 MB, free: 7.344 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.513e-05/0.009681, allocations: 15.98 kB / 360.6 MB, free: 7.328 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.202e-06/0.009687, allocations: 4 kB / 360.6 MB, free: 7.324 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.181e-05/0.009759, allocations: 19.88 kB / 360.6 MB, free: 7.305 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.262e-05/0.009772, allocations: 16 kB / 360.6 MB, free: 7.289 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 9.634e-05/0.009868, allocations: 223.1 kB / 360.8 MB, free: 7.047 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.876e-05/0.009887, allocations: 23.84 kB / 360.9 MB, free: 7.023 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.467e-05/0.009911, allocations: 17.97 kB / 360.9 MB, free: 7.012 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.009914, allocations: 7.984 kB / 360.9 MB, free: 7.004 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.009919, allocations: 0 / 360.9 MB, free: 7.004 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.009923, allocations: 3.984 kB / 360.9 MB, free: 7 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001033/0.01003, allocations: 204.6 kB / 361.1 MB, free: 6.758 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.01003, allocations: 0 / 361.1 MB, free: 6.758 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.186e-05/0.01006, allocations: 11.98 kB / 361.1 MB, free: 6.746 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.01006, allocations: 4 kB / 361.1 MB, free: 6.742 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.321e-05/0.01007, allocations: 8 kB / 361.1 MB, free: 6.734 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.01008, allocations: 0 / 361.1 MB, free: 6.734 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.01008, allocations: 0 / 361.1 MB, free: 6.734 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003296/0.01041, allocations: 0.5235 MB / 361.6 MB, free: 6.168 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.615e-05/0.01042, allocations: 19.8 kB / 361.7 MB, free: 6.148 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.619e-05/0.01045, allocations: 11.98 kB / 361.7 MB, free: 6.137 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.225e-05/0.0105, allocations: 15.94 kB / 361.7 MB, free: 6.121 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.595e-05/0.01056, allocations: 19.97 kB / 361.7 MB, free: 6.102 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.013e-05/0.01058, allocations: 15.98 kB / 361.7 MB, free: 6.086 MB / 282.7 MB Notification: Performance of sorting global known variables: time 5.504e-05/0.01063, allocations: 143.2 kB / 361.9 MB, free: 5.945 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01063, allocations: 0 / 361.9 MB, free: 5.945 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002019/0.01083, allocations: 75.94 kB / 361.9 MB, free: 5.871 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.0005562/0.01139, allocations: 1.139 MB / 363.1 MB, free: 4.68 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003246/0.01172, allocations: 479.9 kB / 363.5 MB, free: 4.164 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.215e-06/0.01172, allocations: 0 / 363.5 MB, free: 4.164 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001344/0.01185, allocations: 298.1 kB / 363.8 MB, free: 3.836 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002006/0.01205, allocations: 16 kB / 363.8 MB, free: 3.82 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001719/0.01377, allocations: 2.861 MB / 366.7 MB, free: 0.7969 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.8e-05/0.01384, allocations: 118.5 kB / 366.8 MB, free: 0.6602 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 4.729e-05/0.01389, allocations: 12.48 kB / 366.8 MB, free: 0.6484 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.993e-05/0.01395, allocations: 40.48 kB / 366.9 MB, free: 0.6094 MB / 282.7 MB Notification: Performance of SimCode: time 1.423e-06/0.01395, allocations: 0 / 366.9 MB, free: 0.6094 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02084/0.03479, allocations: 5.344 MB / 372.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.547/7.582, allocations: 8 kB / 372.2 MB, free: 11.2 MB / 298.7 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 & 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: 9.455579480156302] Failed to read output from testmodel.py, exit status != 0: 7.6674781972542405 7.676074754 7.668368787 Calling exit ...