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.0008458/0.0008458, 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.0008442/0.0008442, allocations: 169.9 kB / 22.46 MB, free: 2.105 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.9319/0.9319, allocations: 158.6 MB / 184.2 MB, free: 3.039 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.01054/0.01054, allocations: 1.432 MB / 237.9 MB, free: 14 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 1.463e-06/1.463e-06, allocations: 0 / 352.5 MB, free: 15.91 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.572e-05/1.718e-05, allocations: 6.219 kB / 352.5 MB, free: 15.9 MB / 282.7 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController2): time 0.001589/0.001606, allocations: 1.506 MB / 354 MB, free: 14.38 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008035/0.002409, allocations: 0.696 MB / 354.7 MB, free: 13.68 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.863e-05/0.002478, allocations: 7.938 kB / 354.7 MB, free: 13.67 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001316/0.002609, allocations: 59.78 kB / 354.7 MB, free: 13.61 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 8.681e-05/0.002696, allocations: 67.77 kB / 354.8 MB, free: 13.54 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004451/0.003141, allocations: 171.5 kB / 355 MB, free: 13.38 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001485/0.00329, allocations: 163.6 kB / 355.1 MB, free: 13.21 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.415e-05/0.003374, allocations: 19.92 kB / 355.2 MB, free: 13.2 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001011/0.003475, allocations: 99.83 kB / 355.3 MB, free: 13.1 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001324/0.003607, allocations: 111.8 kB / 355.4 MB, free: 12.99 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.155e-05/0.003629, allocations: 8 kB / 355.4 MB, free: 12.98 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001286/0.003758, allocations: 151.8 kB / 355.5 MB, free: 12.83 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.355e-05/0.003811, allocations: 35.84 kB / 355.6 MB, free: 12.8 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.39e-05/0.003865, allocations: 43.91 kB / 355.6 MB, free: 12.75 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002046/0.00407, allocations: 275.3 kB / 355.9 MB, free: 12.48 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.314e-06/0.004072, allocations: 0 / 355.9 MB, free: 12.48 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.004073, allocations: 0 / 355.9 MB, free: 12.48 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.118e-06/0.004077, allocations: 0 / 355.9 MB, free: 12.48 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.0005086/0.004586, allocations: 476.6 kB / 356.3 MB, free: 11.98 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.704e-05/0.004623, allocations: 19.92 kB / 356.3 MB, free: 11.96 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.569e-05/0.004649, allocations: 38.75 kB / 356.4 MB, free: 11.91 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.656e-05/0.004685, allocations: 20.84 kB / 356.4 MB, free: 11.89 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001792/0.004864, allocations: 157.5 kB / 356.6 MB, free: 11.71 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.699e-05/0.004911, allocations: 63.97 kB / 356.6 MB, free: 11.64 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.434e-05/0.004926, allocations: 8.359 kB / 356.6 MB, free: 11.63 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001887/0.005114, allocations: 205.5 kB / 356.8 MB, free: 11.41 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-06/0.005123, allocations: 12.11 kB / 356.8 MB, free: 11.4 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.148e-05/0.005134, allocations: 3.938 kB / 356.8 MB, free: 11.39 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.388e-06/0.005139, allocations: 0 / 356.8 MB, free: 11.39 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001452/0.005284, allocations: 155.3 kB / 357 MB, free: 11.23 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003187/0.005603, allocations: 311.9 kB / 357.3 MB, free: 10.88 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001635/0.005766, allocations: 193.8 kB / 357.5 MB, free: 10.67 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.382e-05/0.00585, allocations: 148.2 kB / 357.6 MB, free: 10.51 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.228e-06/0.005859, allocations: 0 / 357.6 MB, free: 10.51 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002037/0.006063, allocations: 302.2 kB / 357.9 MB, free: 10.18 MB / 282.7 MB Notification: Performance of pre-optimization done (n=23): time 1.082e-06/0.006064, allocations: 0 / 357.9 MB, free: 10.18 MB / 282.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004391/0.006503, allocations: 0.5996 MB / 358.5 MB, free: 9.539 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.274e-05/0.006536, allocations: 114.8 kB / 358.6 MB, free: 9.402 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.409e-05/0.00662, allocations: 206.7 kB / 358.8 MB, free: 9.188 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.259e-05/0.006632, allocations: 33.7 kB / 358.9 MB, free: 9.148 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.276e-05/0.006665, allocations: 108.6 kB / 359 MB, free: 9.039 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.982e-05/0.006695, allocations: 59.53 kB / 359 MB, free: 8.98 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.273e-05/0.006738, allocations: 41.7 kB / 359.1 MB, free: 8.934 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 3.155e-05/0.006769, allocations: 334.8 kB / 359.4 MB, free: 8.598 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.344e-05/0.006863, allocations: 151.6 kB / 359.6 MB, free: 8.438 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.335e-05/0.006946, allocations: 151.8 kB / 359.7 MB, free: 8.277 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001687/0.007115, allocations: 310.4 kB / 360 MB, free: 7.949 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.007117, allocations: 0 / 360 MB, free: 7.949 MB / 282.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000273/0.00739, allocations: 489.9 kB / 360.5 MB, free: 7.441 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.749e-05/0.007417, allocations: 74.34 kB / 360.6 MB, free: 7.359 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.528e-06/0.007422, allocations: 0 / 360.6 MB, free: 7.359 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.03e-05/0.007432, allocations: 4 kB / 360.6 MB, free: 7.355 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.406e-05/0.007496, allocations: 19.98 kB / 360.6 MB, free: 7.336 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.589e-06/0.007501, allocations: 0 / 360.6 MB, free: 7.336 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.512e-05/0.007566, allocations: 31.88 kB / 360.6 MB, free: 7.305 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.109e-05/0.007577, allocations: 4 kB / 360.6 MB, free: 7.301 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.21e-05/0.007659, allocations: 223.1 kB / 360.8 MB, free: 7.059 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.654e-05/0.007676, allocations: 19.91 kB / 360.9 MB, free: 7.039 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.123e-05/0.007697, allocations: 25.89 kB / 360.9 MB, free: 7.02 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.007699, allocations: 0 / 360.9 MB, free: 7.02 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.007702, allocations: 0 / 360.9 MB, free: 7.02 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.007705, allocations: 0 / 360.9 MB, free: 7.02 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.737e-05/0.007793, allocations: 208.6 kB / 361.1 MB, free: 6.773 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.007794, allocations: 0 / 361.1 MB, free: 6.773 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.267e-05/0.007816, allocations: 12 kB / 361.1 MB, free: 6.762 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.007818, allocations: 4 kB / 361.1 MB, free: 6.758 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.317e-05/0.007832, allocations: 11.98 kB / 361.1 MB, free: 6.746 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.007833, allocations: 0 / 361.1 MB, free: 6.746 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.11e-07/0.007833, allocations: 0 / 361.1 MB, free: 6.746 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003156/0.008149, allocations: 0.5235 MB / 361.6 MB, free: 6.18 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.278e-05/0.008162, allocations: 23.78 kB / 361.7 MB, free: 6.156 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.531e-05/0.008187, allocations: 12 kB / 361.7 MB, free: 6.145 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.797e-05/0.008235, allocations: 15.92 kB / 361.7 MB, free: 6.129 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.918e-05/0.008284, allocations: 19.97 kB / 361.7 MB, free: 6.109 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.883e-05/0.008303, allocations: 12 kB / 361.7 MB, free: 6.098 MB / 282.7 MB Notification: Performance of sorting global known variables: time 5.118e-05/0.008354, allocations: 147.2 kB / 361.9 MB, free: 5.953 MB / 282.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.008354, allocations: 0 / 361.9 MB, free: 5.953 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000181/0.008535, allocations: 75.92 kB / 361.9 MB, free: 5.879 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.0004845/0.00902, allocations: 1.128 MB / 363.1 MB, free: 4.699 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002856/0.009305, allocations: 477.3 kB / 363.5 MB, free: 4.184 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.152e-06/0.009307, allocations: 7.938 kB / 363.5 MB, free: 4.176 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001235/0.00943, allocations: 294.1 kB / 363.8 MB, free: 3.852 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001502/0.00958, allocations: 15.98 kB / 363.8 MB, free: 3.836 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001497/0.01108, allocations: 2.866 MB / 366.7 MB, free: 0.8047 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.906e-05/0.01113, allocations: 114.5 kB / 366.8 MB, free: 0.6719 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 2.904e-05/0.01116, allocations: 8.5 kB / 366.8 MB, free: 0.6641 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.149e-05/0.0112, allocations: 48.48 kB / 366.9 MB, free: 0.6172 MB / 282.7 MB Notification: Performance of SimCode: time 4.11e-07/0.0112, allocations: 0 / 366.9 MB, free: 0.6172 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01538/0.02658, allocations: 5.352 MB / 372.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.024/7.05, allocations: 4 kB / 372.2 MB, free: 11.21 MB / 298.7 MB " [Timeout remaining time 653] (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 sys.exit(0), Time elapsed: 8.78537380695343] Failed to read output from testmodel.py, exit status != 0: 7.13253309391439 7.142276658 7.136529484 Calling exit ...