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.001296/0.001297, allocations: 108 kB / 16.41 MB, free: 6.492 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.001294/0.001295, allocations: 194.8 kB / 19.36 MB, free: 3.75 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.444/1.444, allocations: 205.1 MB / 227.2 MB, free: 12.14 MB / 190.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.009416/0.009416, allocations: 1.935 MB / 278.5 MB, free: 7.957 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.002156/0.002156, allocations: 74.16 kB / 386.5 MB, free: 51.89 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08421/0.08637, allocations: 47.13 MB / 433.6 MB, free: 16.56 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController2): time 0.002195/0.08861, allocations: 1.534 MB / 435.1 MB, free: 15.01 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009413/0.08958, allocations: 0.742 MB / 435.9 MB, free: 14.26 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.228e-05/0.08965, allocations: 3.938 kB / 435.9 MB, free: 14.26 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001212/0.08978, allocations: 67.84 kB / 435.9 MB, free: 14.19 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.944e-05/0.08988, allocations: 71.7 kB / 436 MB, free: 14.12 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004792/0.09037, allocations: 163.6 kB / 436.2 MB, free: 13.96 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001662/0.09055, allocations: 183.6 kB / 436.3 MB, free: 13.78 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.378e-05/0.09064, allocations: 8 kB / 436.3 MB, free: 13.77 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.838e-05/0.09073, allocations: 83.73 kB / 436.4 MB, free: 13.69 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001479/0.09088, allocations: 111.8 kB / 436.5 MB, free: 13.58 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.666e-05/0.09092, allocations: 15.94 kB / 436.6 MB, free: 13.57 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001733/0.0911, allocations: 155.8 kB / 436.7 MB, free: 13.41 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.791e-05/0.09116, allocations: 35.89 kB / 436.7 MB, free: 13.38 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.718e-05/0.09123, allocations: 63.61 kB / 436.8 MB, free: 13.32 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002396/0.09148, allocations: 231.2 kB / 437 MB, free: 13.09 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.09149, allocations: 0 / 437 MB, free: 13.09 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.385e-06/0.0915, allocations: 0 / 437 MB, free: 13.09 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.661e-06/0.09151, allocations: 3.938 kB / 437 MB, free: 13.09 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.000672/0.09219, allocations: 0.5486 MB / 437.6 MB, free: 12.48 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.411e-05/0.09223, allocations: 11.89 kB / 437.6 MB, free: 12.46 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.163e-05/0.09226, allocations: 38.75 kB / 437.6 MB, free: 12.42 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.451e-05/0.09231, allocations: 20.84 kB / 437.7 MB, free: 12.4 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000228/0.09255, allocations: 220 kB / 437.9 MB, free: 12.14 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.703e-05/0.0926, allocations: 46.14 kB / 437.9 MB, free: 12.09 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.013e-05/0.09263, allocations: 8.375 kB / 437.9 MB, free: 12.09 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002198/0.09286, allocations: 141.5 kB / 438.1 MB, free: 11.94 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.067e-06/0.09287, allocations: 0 / 438.1 MB, free: 11.94 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.516e-05/0.09289, allocations: 3.984 kB / 438.1 MB, free: 11.94 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.0929, allocations: 0 / 438.1 MB, free: 11.94 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001593/0.09307, allocations: 91.95 kB / 438.2 MB, free: 11.85 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003942/0.09347, allocations: 376.6 kB / 438.5 MB, free: 11.43 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002284/0.09371, allocations: 146.5 kB / 438.7 MB, free: 11.28 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001265/0.09385, allocations: 109.8 kB / 438.8 MB, free: 11.17 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.176e-05/0.09387, allocations: 0 / 438.8 MB, free: 11.17 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002711/0.09414, allocations: 246.6 kB / 439 MB, free: 10.9 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.613e-06/0.09415, allocations: 3.938 kB / 439 MB, free: 10.9 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.000597/0.09476, allocations: 468.9 kB / 439.5 MB, free: 10.42 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.437e-05/0.09481, allocations: 110.8 kB / 439.6 MB, free: 10.29 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001205/0.09494, allocations: 198.6 kB / 439.8 MB, free: 10.08 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.702e-05/0.09496, allocations: 33.7 kB / 439.8 MB, free: 10.04 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.44e-05/0.09501, allocations: 108.6 kB / 439.9 MB, free: 9.934 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4e-05/0.09506, allocations: 59.52 kB / 440 MB, free: 9.875 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.929e-05/0.09512, allocations: 49.7 kB / 440 MB, free: 9.82 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.472e-05/0.09518, allocations: 330.8 kB / 440.3 MB, free: 9.488 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001264/0.09532, allocations: 92.19 kB / 440.4 MB, free: 9.398 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001176/0.09544, allocations: 92.42 kB / 440.5 MB, free: 9.309 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002545/0.0957, allocations: 300.7 kB / 440.8 MB, free: 8.988 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.09571, allocations: 0 / 440.8 MB, free: 8.988 MB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000382/0.0961, allocations: 390.5 kB / 441.2 MB, free: 8.59 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.762e-05/0.09615, allocations: 75.38 kB / 441.3 MB, free: 8.504 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.09616, allocations: 0 / 441.3 MB, free: 8.504 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.371e-05/0.09618, allocations: 0 / 441.3 MB, free: 8.504 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.818e-05/0.09628, allocations: 19.94 kB / 441.3 MB, free: 8.484 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.021e-06/0.09629, allocations: 7.922 kB / 441.3 MB, free: 8.477 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001109/0.09641, allocations: 19.95 kB / 441.3 MB, free: 8.457 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.693e-05/0.09643, allocations: 11.98 kB / 441.3 MB, free: 8.445 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.0001342/0.09657, allocations: 218.9 kB / 441.5 MB, free: 8.207 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.848e-05/0.09661, allocations: 19.91 kB / 441.6 MB, free: 8.188 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.477e-05/0.09665, allocations: 25.86 kB / 441.6 MB, free: 8.16 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-06/0.09665, allocations: 0 / 441.6 MB, free: 8.16 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.97e-06/0.09666, allocations: 0 / 441.6 MB, free: 8.16 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.09667, allocations: 0 / 441.6 MB, free: 8.16 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001483/0.09682, allocations: 261.4 kB / 441.8 MB, free: 7.855 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.09683, allocations: 3.938 kB / 441.8 MB, free: 7.852 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.74e-05/0.09688, allocations: 8 kB / 441.9 MB, free: 7.844 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.09689, allocations: 3.938 kB / 441.9 MB, free: 7.84 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.973e-05/0.09692, allocations: 15.98 kB / 441.9 MB, free: 7.824 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.09692, allocations: 4 kB / 441.9 MB, free: 7.82 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.09693, allocations: 0 / 441.9 MB, free: 7.82 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004671/0.0974, allocations: 464 kB / 442.3 MB, free: 7.336 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.078e-05/0.09744, allocations: 96.91 kB / 442.4 MB, free: 7.223 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.711e-05/0.09749, allocations: 8 kB / 442.4 MB, free: 7.215 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.552e-05/0.09759, allocations: 15.98 kB / 442.5 MB, free: 7.199 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.19e-05/0.09766, allocations: 19.98 kB / 442.5 MB, free: 7.18 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.57e-05/0.09769, allocations: 11.98 kB / 442.5 MB, free: 7.168 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.677e-05/0.09777, allocations: 148.3 kB / 442.6 MB, free: 7.023 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.09777, allocations: 0 / 442.6 MB, free: 7.023 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002637/0.09804, allocations: 83.86 kB / 442.7 MB, free: 6.941 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.0007245/0.09877, allocations: 1.053 MB / 443.8 MB, free: 5.848 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004012/0.09919, allocations: 410.9 kB / 444.2 MB, free: 5.422 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.0992, allocations: 0 / 444.2 MB, free: 5.422 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002039/0.09941, allocations: 290.7 kB / 444.4 MB, free: 5.113 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002105/0.09963, allocations: 23.97 kB / 444.5 MB, free: 5.09 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002066/0.1017, allocations: 2.495 MB / 447 MB, free: 2.488 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001382/0.1019, allocations: 0.7355 MB / 447.7 MB, free: 1.727 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.932e-05/0.1019, allocations: 8.547 kB / 447.7 MB, free: 1.719 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.52e-05/0.102, allocations: 39.42 kB / 447.7 MB, free: 1.68 MB / 318.1 MB Notification: Performance of SimCode: time 3.61e-07/0.102, allocations: 0 / 447.7 MB, free: 1.68 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02532/0.1273, allocations: 4.531 MB / 452.3 MB, free: 13.1 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.99/8.117, allocations: 4.062 kB / 452.3 MB, free: 13.1 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 & 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: 10.691922159050591] Failed to read output from testmodel.py, exit status != 0: 8.18500638299156 8.201680011 8.107281681 Calling exit ...