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.001964/0.001964, allocations: 110.6 kB / 18.94 MB, free: 2.949 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.001736/0.001736, allocations: 220.6 kB / 22.26 MB, free: 5.125 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.415/1.415, allocations: 207.6 MB / 233 MB, free: 9.969 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.009281/0.009281, allocations: 1.966 MB / 287.2 MB, free: 3.844 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.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: 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.003214/0.003214, allocations: 69.81 kB / 401.8 MB, free: 50.91 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08284/0.08605, allocations: 49.7 MB / 451.5 MB, free: 6.254 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController2): time 0.002128/0.08818, allocations: 1.545 MB / 453 MB, free: 4.695 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009194/0.0891, allocations: 0.758 MB / 453.8 MB, free: 3.93 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.324e-05/0.08916, allocations: 0 / 453.8 MB, free: 3.93 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001268/0.08929, allocations: 63.78 kB / 453.8 MB, free: 3.867 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.817e-05/0.08938, allocations: 63.78 kB / 453.9 MB, free: 3.805 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004676/0.08984, allocations: 175.5 kB / 454.1 MB, free: 3.633 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001652/0.09001, allocations: 163.6 kB / 454.2 MB, free: 3.473 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.803e-05/0.09009, allocations: 15.92 kB / 454.3 MB, free: 3.457 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.789e-05/0.09017, allocations: 83.8 kB / 454.3 MB, free: 3.375 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001668/0.09034, allocations: 119.7 kB / 454.5 MB, free: 3.258 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.306e-05/0.09036, allocations: 19.98 kB / 454.5 MB, free: 3.238 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001637/0.09053, allocations: 159.8 kB / 454.6 MB, free: 3.082 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.229e-05/0.09058, allocations: 31.91 kB / 454.7 MB, free: 3.051 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.684e-05/0.09065, allocations: 63.61 kB / 454.7 MB, free: 2.988 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002215/0.09087, allocations: 231.2 kB / 455 MB, free: 2.762 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.09087, allocations: 4 kB / 455 MB, free: 2.758 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.09087, allocations: 0 / 455 MB, free: 2.758 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.119e-06/0.09088, allocations: 0 / 455 MB, free: 2.758 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.0006178/0.0915, allocations: 480.6 kB / 455.4 MB, free: 2.246 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.334e-05/0.09153, allocations: 11.98 kB / 455.4 MB, free: 2.234 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.666e-05/0.09157, allocations: 42.69 kB / 455.5 MB, free: 2.184 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.621e-05/0.09161, allocations: 16.84 kB / 455.5 MB, free: 2.168 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002118/0.09182, allocations: 166.3 kB / 455.7 MB, free: 1.98 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.074e-05/0.09188, allocations: 67.91 kB / 455.7 MB, free: 1.902 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.776e-05/0.09189, allocations: 4.375 kB / 455.7 MB, free: 1.898 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002162/0.09211, allocations: 137.5 kB / 455.9 MB, free: 1.758 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.017e-06/0.09212, allocations: 11.94 kB / 455.9 MB, free: 1.746 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.3e-05/0.09213, allocations: 0 / 455.9 MB, free: 1.746 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.857e-06/0.09214, allocations: 0 / 455.9 MB, free: 1.746 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001484/0.09228, allocations: 99.88 kB / 456 MB, free: 1.648 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003855/0.09267, allocations: 339.7 kB / 456.3 MB, free: 1.273 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002007/0.09287, allocations: 126.5 kB / 456.4 MB, free: 1.141 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001078/0.09298, allocations: 84.81 kB / 456.5 MB, free: 1.055 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.744e-06/0.09299, allocations: 0 / 456.5 MB, free: 1.055 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002522/0.09324, allocations: 246.5 kB / 456.8 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.773e-06/0.09324, allocations: 3.984 kB / 456.8 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0005449/0.09378, allocations: 473 kB / 457.2 MB, free: 312 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.904e-05/0.09382, allocations: 118.8 kB / 457.3 MB, free: 168 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001483/0.09397, allocations: 202.7 kB / 457.5 MB, free: 15.95 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.505e-05/0.094, allocations: 25.7 kB / 457.6 MB, free: 15.92 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.662e-05/0.09408, allocations: 112.6 kB / 457.7 MB, free: 15.8 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.906e-05/0.09414, allocations: 59.52 kB / 457.7 MB, free: 15.75 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.259e-05/0.09422, allocations: 45.7 kB / 457.8 MB, free: 15.7 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001454/0.09436, allocations: 338.8 kB / 458.1 MB, free: 15.36 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001551/0.09452, allocations: 88.19 kB / 458.2 MB, free: 15.27 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001412/0.09466, allocations: 90.06 kB / 458.3 MB, free: 15.18 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003461/0.095, allocations: 304.7 kB / 458.6 MB, free: 14.86 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.095, allocations: 0 / 458.6 MB, free: 14.86 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005115/0.09552, allocations: 394.4 kB / 459 MB, free: 14.46 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.707e-05/0.09557, allocations: 67.39 kB / 459 MB, free: 14.38 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.65e-06/0.09558, allocations: 3.984 kB / 459 MB, free: 14.38 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.449e-05/0.09559, allocations: 8 kB / 459 MB, free: 14.37 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000102/0.0957, allocations: 12 kB / 459 MB, free: 14.36 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.13e-06/0.0957, allocations: 0 / 459 MB, free: 14.36 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001189/0.09582, allocations: 19.94 kB / 459.1 MB, free: 14.34 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.962e-05/0.09584, allocations: 8 kB / 459.1 MB, free: 14.33 MB / 334.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.0001892/0.09603, allocations: 222.8 kB / 459.3 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.501e-05/0.09606, allocations: 19.91 kB / 459.3 MB, free: 14.07 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.052e-05/0.0961, allocations: 25.97 kB / 459.3 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.09611, allocations: 0 / 459.3 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.183e-06/0.09611, allocations: 7.984 kB / 459.3 MB, free: 14.03 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.09612, allocations: 4 kB / 459.3 MB, free: 14.03 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002124/0.09633, allocations: 228.4 kB / 459.6 MB, free: 13.76 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.09633, allocations: 3.938 kB / 459.6 MB, free: 13.76 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.015e-05/0.09638, allocations: 8 kB / 459.6 MB, free: 13.75 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.09638, allocations: 4 kB / 459.6 MB, free: 13.75 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.519e-05/0.09641, allocations: 11.98 kB / 459.6 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.09641, allocations: 0 / 459.6 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.09641, allocations: 4 kB / 459.6 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000628/0.09704, allocations: 468 kB / 460.1 MB, free: 13.24 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.789e-05/0.09707, allocations: 23.78 kB / 460.1 MB, free: 13.22 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.112e-05/0.09711, allocations: 12 kB / 460.1 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001067/0.09721, allocations: 19.92 kB / 460.1 MB, free: 13.19 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.686e-05/0.09727, allocations: 15.97 kB / 460.1 MB, free: 13.17 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.525e-05/0.0973, allocations: 8 kB / 460.1 MB, free: 13.16 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001255/0.09742, allocations: 148.3 kB / 460.3 MB, free: 13.02 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.09742, allocations: 0 / 460.3 MB, free: 13.02 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002766/0.0977, allocations: 83.86 kB / 460.4 MB, free: 12.94 MB / 334.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.001088/0.09879, allocations: 1.053 MB / 461.4 MB, free: 11.84 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004921/0.09928, allocations: 343.1 kB / 461.8 MB, free: 11.48 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.09928, allocations: 3.938 kB / 461.8 MB, free: 11.48 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002685/0.09955, allocations: 226.8 kB / 462 MB, free: 11.23 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002112/0.09976, allocations: 19.98 kB / 462 MB, free: 11.21 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002991/0.1028, allocations: 2.498 MB / 464.5 MB, free: 8.621 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003685/0.1031, allocations: 0.7278 MB / 465.2 MB, free: 7.867 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.272e-05/0.1032, allocations: 12.48 kB / 465.2 MB, free: 7.855 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.939e-05/0.1032, allocations: 43.42 kB / 465.3 MB, free: 7.812 MB / 334.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1032, allocations: 0 / 465.3 MB, free: 7.812 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02832/0.1316, allocations: 4.799 MB / 470.1 MB, free: 2.965 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.73/10.86, allocations: 7.891 kB / 470.1 MB, free: 2.957 MB / 334.1 MB " [Timeout remaining time 649] (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: 13.49570156599657] Failed to read output from testmodel.py, exit status != 0: 10.964294481000252 10.989314342 10.893898224 Calling exit ...