Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr MEV_MEV.Test.TestPatientController1.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.001669/0.001669, allocations: 103.6 kB / 18.95 MB, free: 2.652 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.001553/0.001553, allocations: 217.6 kB / 22.25 MB, free: 5.266 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.413/1.413, allocations: 207.7 MB / 233.1 MB, free: 9.773 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.008854/0.008854, allocations: 1.966 MB / 287.3 MB, free: 3.656 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.TestPatientController1,fileNamePrefix="MEV_MEV_Test_TestPatientController1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(MEV.Test.TestPatientController1,fileNamePrefix="MEV_MEV_Test_TestPatientController1",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.002244/0.002244, allocations: 80.33 kB / 401.8 MB, free: 50.78 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06903/0.07128, allocations: 49.69 MB / 451.5 MB, free: 6.078 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController1): time 0.002099/0.07338, allocations: 1.503 MB / 453 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009746/0.07435, allocations: 0.6957 MB / 453.7 MB, free: 3.859 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.219e-05/0.07441, allocations: 0 / 453.7 MB, free: 3.859 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001287/0.07454, allocations: 59.78 kB / 453.7 MB, free: 3.801 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.805e-05/0.07463, allocations: 59.8 kB / 453.8 MB, free: 3.742 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004941/0.07512, allocations: 175.6 kB / 454 MB, free: 3.57 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001554/0.07528, allocations: 155.6 kB / 454.1 MB, free: 3.418 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.283e-05/0.07536, allocations: 15.92 kB / 454.1 MB, free: 3.402 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.429e-05/0.07546, allocations: 79.75 kB / 454.2 MB, free: 3.324 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001474/0.0756, allocations: 111.7 kB / 454.3 MB, free: 3.215 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.639e-05/0.07563, allocations: 8 kB / 454.3 MB, free: 3.207 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001703/0.0758, allocations: 155.9 kB / 454.5 MB, free: 3.055 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.891e-05/0.07586, allocations: 39.78 kB / 454.5 MB, free: 3.016 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.471e-05/0.07592, allocations: 51.72 kB / 454.6 MB, free: 2.965 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002277/0.07615, allocations: 223.3 kB / 454.8 MB, free: 2.746 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.07616, allocations: 0 / 454.8 MB, free: 2.746 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.07616, allocations: 0 / 454.8 MB, free: 2.746 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.57e-06/0.07616, allocations: 4 kB / 454.8 MB, free: 2.742 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.0006043/0.07677, allocations: 468.8 kB / 455.2 MB, free: 2.242 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.33e-05/0.0768, allocations: 11.98 kB / 455.2 MB, free: 2.23 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.246e-05/0.07683, allocations: 34.75 kB / 455.3 MB, free: 2.188 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.349e-05/0.07688, allocations: 24.84 kB / 455.3 MB, free: 2.164 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002252/0.0771, allocations: 160.6 kB / 455.5 MB, free: 1.984 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.247e-05/0.07716, allocations: 67.91 kB / 455.5 MB, free: 1.906 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.01e-05/0.07718, allocations: 4.375 kB / 455.5 MB, free: 1.902 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002291/0.07741, allocations: 197 kB / 455.7 MB, free: 1.691 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.415e-06/0.07742, allocations: 0 / 455.7 MB, free: 1.691 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.421e-05/0.07744, allocations: 7.984 kB / 455.7 MB, free: 1.684 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-06/0.07744, allocations: 8 kB / 455.7 MB, free: 1.676 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001949/0.07764, allocations: 151.3 kB / 455.9 MB, free: 1.516 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003876/0.07802, allocations: 319.7 kB / 456.2 MB, free: 1.16 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002272/0.07825, allocations: 174 kB / 456.4 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001256/0.07838, allocations: 148.2 kB / 456.5 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.286e-05/0.07839, allocations: 0 / 456.5 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000268/0.07866, allocations: 314 kB / 456.8 MB, free: 476 kB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.593e-06/0.07866, allocations: 0 / 456.8 MB, free: 476 kB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0006813/0.07934, allocations: 0.57 MB / 457.4 MB, free: 15.85 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.627e-05/0.07943, allocations: 118.8 kB / 457.5 MB, free: 15.71 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001749/0.0796, allocations: 183.3 kB / 457.7 MB, free: 15.52 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.88e-05/0.07963, allocations: 37.64 kB / 457.7 MB, free: 15.48 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.679e-05/0.07971, allocations: 104.5 kB / 457.8 MB, free: 15.37 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.891e-05/0.07977, allocations: 59.52 kB / 457.9 MB, free: 15.31 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.572e-05/0.07984, allocations: 49.69 kB / 457.9 MB, free: 15.26 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001653/0.08001, allocations: 338.7 kB / 458.3 MB, free: 14.92 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001958/0.0802, allocations: 151.6 kB / 458.4 MB, free: 14.76 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001941/0.0804, allocations: 151.8 kB / 458.6 MB, free: 14.6 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003639/0.08076, allocations: 293.7 kB / 458.8 MB, free: 14.29 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.08076, allocations: 0 / 458.8 MB, free: 14.29 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005949/0.08136, allocations: 460.5 kB / 459.3 MB, free: 13.8 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.85e-05/0.08146, allocations: 71.38 kB / 459.4 MB, free: 13.72 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.08146, allocations: 0 / 459.4 MB, free: 13.72 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.75e-05/0.08148, allocations: 4 kB / 459.4 MB, free: 13.72 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001089/0.08159, allocations: 23.94 kB / 459.4 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/0.08159, allocations: 0 / 459.4 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001241/0.08172, allocations: 19.94 kB / 459.4 MB, free: 13.68 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.724e-05/0.08174, allocations: 4 kB / 459.4 MB, free: 13.67 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.00022/0.08196, allocations: 226.9 kB / 459.6 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.575e-05/0.08199, allocations: 19.91 kB / 459.7 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.758e-05/0.08204, allocations: 17.97 kB / 459.7 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.643e-06/0.08205, allocations: 7.984 kB / 459.7 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.08205, allocations: 4 kB / 459.7 MB, free: 13.37 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.828e-06/0.08205, allocations: 0 / 459.7 MB, free: 13.37 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002225/0.08228, allocations: 204.5 kB / 459.9 MB, free: 13.13 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.08228, allocations: 0 / 459.9 MB, free: 13.13 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.438e-05/0.08233, allocations: 11.98 kB / 459.9 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.08233, allocations: 0 / 459.9 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.41e-05/0.08236, allocations: 12 kB / 459.9 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.08236, allocations: 3.938 kB / 459.9 MB, free: 13.1 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.08236, allocations: 0 / 459.9 MB, free: 13.1 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007103/0.08307, allocations: 0.5111 MB / 460.4 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.021e-05/0.0831, allocations: 23.84 kB / 460.4 MB, free: 12.52 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.983e-05/0.08314, allocations: 4 kB / 460.5 MB, free: 12.52 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001071/0.08325, allocations: 15.98 kB / 460.5 MB, free: 12.5 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.964e-05/0.08332, allocations: 23.91 kB / 460.5 MB, free: 12.48 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.177e-05/0.08335, allocations: 19.92 kB / 460.5 MB, free: 12.46 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001197/0.08347, allocations: 131.2 kB / 460.6 MB, free: 12.33 MB / 334.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.08347, allocations: 4 kB / 460.6 MB, free: 12.33 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003207/0.08379, allocations: 79.83 kB / 460.7 MB, free: 12.25 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.00129/0.08508, allocations: 1.103 MB / 461.8 MB, free: 11.09 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006557/0.08574, allocations: 473.4 kB / 462.3 MB, free: 10.58 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.08574, allocations: 0 / 462.3 MB, free: 10.58 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003419/0.08608, allocations: 294.1 kB / 462.6 MB, free: 10.26 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002518/0.08633, allocations: 23.92 kB / 462.6 MB, free: 10.23 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00321/0.08954, allocations: 2.737 MB / 465.3 MB, free: 7.344 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001254/0.08967, allocations: 122.3 kB / 465.5 MB, free: 7.203 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.792e-05/0.08971, allocations: 8.5 kB / 465.5 MB, free: 7.195 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.988e-05/0.08979, allocations: 39.42 kB / 465.5 MB, free: 7.156 MB / 334.1 MB Notification: Performance of SimCode: time 4.8e-07/0.0898, allocations: 0 / 465.5 MB, free: 7.156 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03197/0.1218, allocations: 5.176 MB / 470.7 MB, free: 1.914 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.6/11.72, allocations: 7.844 kB / 470.7 MB, free: 1.906 MB / 334.1 MB " [Timeout remaining time 648] (rm -f MEV_MEV.Test.TestPatientController1.pipe ; mkfifo MEV_MEV.Test.TestPatientController1.pipe ; head -c 1048576 < MEV_MEV.Test.TestPatientController1.pipe >> ../files/MEV_MEV.Test.TestPatientController1.sim & python3 -m fmpy simulate --output-file MEV_MEV.Test.TestPatientController1_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_TestPatientController1.fmu > MEV_MEV.Test.TestPatientController1.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.254317797953263] Failed to read output from testmodel.py, exit status != 0: 11.828099632053636 11.844662956 11.765498754 Calling exit ...