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.001153/0.001153, allocations: 113.9 kB / 18.94 MB, free: 2.93 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.001407/0.001407, allocations: 186.8 kB / 22.22 MB, free: 5.105 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.416/1.416, allocations: 207.6 MB / 233 MB, free: 10.91 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.009271/0.009271, allocations: 1.966 MB / 287.2 MB, free: 4 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.00211/0.00211, allocations: 68.8 kB / 401.7 MB, free: 51.25 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07496/0.07707, allocations: 49.7 MB / 451.4 MB, free: 6.312 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController2): time 0.002112/0.07918, allocations: 1.534 MB / 453 MB, free: 4.766 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009508/0.08013, allocations: 0.7579 MB / 453.7 MB, free: 4 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.123e-05/0.08019, allocations: 3.938 kB / 453.7 MB, free: 3.996 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001223/0.08031, allocations: 63.84 kB / 453.8 MB, free: 3.934 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.547e-05/0.08041, allocations: 75.7 kB / 453.9 MB, free: 3.859 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005023/0.08091, allocations: 159.6 kB / 454 MB, free: 3.703 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001646/0.08107, allocations: 163.6 kB / 454.2 MB, free: 3.543 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.499e-05/0.08116, allocations: 19.86 kB / 454.2 MB, free: 3.523 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.26e-05/0.08125, allocations: 87.73 kB / 454.3 MB, free: 3.438 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001702/0.08142, allocations: 127.7 kB / 454.4 MB, free: 3.312 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.416e-05/0.08145, allocations: 12 kB / 454.4 MB, free: 3.301 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001683/0.08161, allocations: 155.8 kB / 454.6 MB, free: 3.148 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.833e-05/0.08167, allocations: 35.91 kB / 454.6 MB, free: 3.113 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.31e-05/0.08174, allocations: 63.59 kB / 454.7 MB, free: 3.051 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002501/0.08199, allocations: 235.2 kB / 454.9 MB, free: 2.82 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.08199, allocations: 0 / 454.9 MB, free: 2.82 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.08199, allocations: 0 / 454.9 MB, free: 2.82 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.573e-06/0.082, allocations: 0 / 454.9 MB, free: 2.82 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.0007009/0.0827, allocations: 0.5486 MB / 455.5 MB, free: 2.211 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.819e-05/0.08274, allocations: 11.98 kB / 455.5 MB, free: 2.199 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.116e-05/0.08277, allocations: 38.75 kB / 455.5 MB, free: 2.152 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.811e-05/0.08282, allocations: 20.83 kB / 455.5 MB, free: 2.133 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002432/0.08306, allocations: 216.1 kB / 455.7 MB, free: 1.883 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.184e-05/0.08311, allocations: 42.2 kB / 455.8 MB, free: 1.836 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.357e-05/0.08314, allocations: 8.359 kB / 455.8 MB, free: 1.828 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002291/0.08336, allocations: 141.5 kB / 455.9 MB, free: 1.684 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/0.08337, allocations: 0 / 455.9 MB, free: 1.684 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.707e-05/0.08339, allocations: 8 kB / 455.9 MB, free: 1.676 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.53e-06/0.0834, allocations: 0 / 455.9 MB, free: 1.676 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001567/0.08355, allocations: 91.95 kB / 456 MB, free: 1.586 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004263/0.08398, allocations: 372.5 kB / 456.4 MB, free: 1.172 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002182/0.0842, allocations: 122.5 kB / 456.5 MB, free: 1.043 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001127/0.08431, allocations: 84.8 kB / 456.6 MB, free: 0.957 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.231e-05/0.08432, allocations: 4 kB / 456.6 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002637/0.08459, allocations: 246.5 kB / 456.8 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 2.265e-06/0.08459, allocations: 4 kB / 456.8 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0005881/0.08518, allocations: 472.9 kB / 457.3 MB, free: 208 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.717e-05/0.08523, allocations: 114.8 kB / 457.4 MB, free: 68 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00019/0.08542, allocations: 202.7 kB / 457.6 MB, free: 15.85 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.725e-05/0.08545, allocations: 25.7 kB / 457.6 MB, free: 15.82 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001346/0.08559, allocations: 112.6 kB / 457.7 MB, free: 15.71 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.06e-05/0.08565, allocations: 59.52 kB / 457.8 MB, free: 15.65 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.753e-05/0.08572, allocations: 45.7 kB / 457.8 MB, free: 15.6 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.08588, allocations: 338.8 kB / 458.2 MB, free: 15.26 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001627/0.08604, allocations: 88.2 kB / 458.3 MB, free: 15.17 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001525/0.08619, allocations: 94.06 kB / 458.4 MB, free: 15.08 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003586/0.08655, allocations: 304.7 kB / 458.7 MB, free: 14.75 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.08655, allocations: 3.938 kB / 458.7 MB, free: 14.75 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005396/0.08709, allocations: 394.5 kB / 459 MB, free: 14.35 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.374e-05/0.08716, allocations: 71.33 kB / 459.1 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/0.08716, allocations: 7.984 kB / 459.1 MB, free: 14.26 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.338e-05/0.08718, allocations: 0 / 459.1 MB, free: 14.26 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00011/0.08729, allocations: 23.92 kB / 459.1 MB, free: 14.23 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.402e-06/0.08729, allocations: 0 / 459.1 MB, free: 14.23 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001208/0.08741, allocations: 19.94 kB / 459.2 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.054e-05/0.08743, allocations: 8 kB / 459.2 MB, free: 14.21 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.0001946/0.08763, allocations: 214.9 kB / 459.4 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.688e-05/0.08766, allocations: 23.91 kB / 459.4 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.469e-05/0.08771, allocations: 25.95 kB / 459.4 MB, free: 13.92 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-06/0.08771, allocations: 0 / 459.4 MB, free: 13.92 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.08772, allocations: 0 / 459.4 MB, free: 13.92 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.08772, allocations: 0 / 459.4 MB, free: 13.92 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002377/0.08796, allocations: 261.4 kB / 459.7 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.08796, allocations: 0 / 459.7 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.609e-05/0.08801, allocations: 15.92 kB / 459.7 MB, free: 13.6 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.08802, allocations: 0 / 459.7 MB, free: 13.6 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.397e-05/0.08804, allocations: 12 kB / 459.7 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.08804, allocations: 0 / 459.7 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.08804, allocations: 4 kB / 459.7 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006472/0.08869, allocations: 464 kB / 460.2 MB, free: 13.1 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.794e-05/0.08876, allocations: 100.9 kB / 460.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.14e-05/0.0888, allocations: 8 kB / 460.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001029/0.0889, allocations: 11.98 kB / 460.3 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.509e-05/0.08899, allocations: 23.97 kB / 460.3 MB, free: 12.94 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.706e-05/0.08901, allocations: 12 kB / 460.3 MB, free: 12.93 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000127/0.08914, allocations: 152.2 kB / 460.5 MB, free: 12.78 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.08914, allocations: 0 / 460.5 MB, free: 12.78 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002959/0.08944, allocations: 75.88 kB / 460.5 MB, free: 12.71 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.001111/0.09055, allocations: 1.057 MB / 461.6 MB, free: 11.61 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005171/0.09106, allocations: 346.6 kB / 461.9 MB, free: 11.25 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.09107, allocations: 0 / 461.9 MB, free: 11.25 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000276/0.09134, allocations: 226.7 kB / 462.2 MB, free: 11 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002177/0.09156, allocations: 16 kB / 462.2 MB, free: 10.98 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003107/0.09467, allocations: 2.506 MB / 464.7 MB, free: 8.383 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003742/0.09504, allocations: 0.7278 MB / 465.4 MB, free: 7.629 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.481e-05/0.09509, allocations: 8.484 kB / 465.4 MB, free: 7.621 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.784e-05/0.09516, allocations: 51.41 kB / 465.5 MB, free: 7.57 MB / 334.1 MB Notification: Performance of SimCode: time 5.61e-07/0.09516, allocations: 0 / 465.5 MB, free: 7.57 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02632/0.1215, allocations: 4.678 MB / 470.1 MB, free: 2.844 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.345/8.467, allocations: 11.92 kB / 470.2 MB, free: 2.832 MB / 334.1 MB " [Timeout remaining time 651] (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: 11.008773367851973] Failed to read output from testmodel.py, exit status != 0: 8.535867498023435 8.553314129 8.468140719 Calling exit ...