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.001455/0.001455, allocations: 101.4 kB / 16.45 MB, free: 6.449 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.001344/0.001344, allocations: 206.4 kB / 19.42 MB, free: 3.641 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.397/1.397, allocations: 207.6 MB / 229.8 MB, free: 11.42 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.008812/0.008812, allocations: 1.966 MB / 283.6 MB, free: 5.055 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.002164/0.002164, allocations: 65.16 kB / 396.6 MB, free: 51.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07238/0.07454, allocations: 49.67 MB / 446.2 MB, free: 7.766 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController2): time 0.002082/0.07662, allocations: 1.53 MB / 447.8 MB, free: 6.223 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008845/0.07751, allocations: 0.7524 MB / 448.5 MB, free: 5.461 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.851e-05/0.07756, allocations: 0 / 448.5 MB, free: 5.461 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001104/0.07768, allocations: 63.8 kB / 448.6 MB, free: 5.398 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.837e-05/0.07776, allocations: 75.75 kB / 448.7 MB, free: 5.324 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004708/0.07823, allocations: 163.6 kB / 448.8 MB, free: 5.164 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001611/0.0784, allocations: 171.6 kB / 449 MB, free: 4.996 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.321e-05/0.07848, allocations: 11.94 kB / 449 MB, free: 4.984 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.617e-05/0.07857, allocations: 83.73 kB / 449.1 MB, free: 4.902 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001451/0.07871, allocations: 123.7 kB / 449.2 MB, free: 4.781 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.158e-05/0.07873, allocations: 15.94 kB / 449.2 MB, free: 4.766 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001602/0.07889, allocations: 159.8 kB / 449.4 MB, free: 4.609 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.425e-05/0.07895, allocations: 31.91 kB / 449.4 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.358e-05/0.07901, allocations: 67.59 kB / 449.5 MB, free: 4.512 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002204/0.07923, allocations: 223.3 kB / 449.7 MB, free: 4.293 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.07923, allocations: 7.938 kB / 449.7 MB, free: 4.285 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.07924, allocations: 4 kB / 449.7 MB, free: 4.281 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.049e-06/0.07924, allocations: 0 / 449.7 MB, free: 4.281 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.0006103/0.07985, allocations: 0.533 MB / 450.2 MB, free: 3.688 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.26e-05/0.07988, allocations: 19.83 kB / 450.3 MB, free: 3.668 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.471e-05/0.07992, allocations: 42.73 kB / 450.3 MB, free: 3.617 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.494e-05/0.07996, allocations: 16.84 kB / 450.3 MB, free: 3.602 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002171/0.08018, allocations: 232 kB / 450.5 MB, free: 3.336 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.366e-05/0.08022, allocations: 34.27 kB / 450.6 MB, free: 3.297 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.995e-05/0.08024, allocations: 8.375 kB / 450.6 MB, free: 3.289 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002154/0.08046, allocations: 138.6 kB / 450.7 MB, free: 3.148 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.394e-06/0.08047, allocations: 0 / 450.7 MB, free: 3.148 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.613e-05/0.08048, allocations: 4 kB / 450.7 MB, free: 3.145 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.908e-06/0.08049, allocations: 0 / 450.7 MB, free: 3.145 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001564/0.08064, allocations: 99.88 kB / 450.8 MB, free: 3.047 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003733/0.08102, allocations: 376.6 kB / 451.2 MB, free: 2.629 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002058/0.08122, allocations: 122.6 kB / 451.3 MB, free: 2.5 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001112/0.08133, allocations: 80.81 kB / 451.4 MB, free: 2.418 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.2e-05/0.08135, allocations: 4.094 kB / 451.4 MB, free: 2.414 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002467/0.08159, allocations: 250.5 kB / 451.6 MB, free: 2.145 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.423e-06/0.08159, allocations: 0 / 451.6 MB, free: 2.145 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0005811/0.08217, allocations: 472.9 kB / 452.1 MB, free: 1.664 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.358e-05/0.08222, allocations: 114.8 kB / 452.2 MB, free: 1.527 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001136/0.08233, allocations: 202.6 kB / 452.4 MB, free: 1.316 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.765e-05/0.08235, allocations: 33.7 kB / 452.4 MB, free: 1.277 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.776e-05/0.08239, allocations: 108.6 kB / 452.5 MB, free: 1.168 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.802e-05/0.08243, allocations: 63.5 kB / 452.6 MB, free: 1.105 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.786e-05/0.08248, allocations: 45.7 kB / 452.7 MB, free: 1.055 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.617e-05/0.08253, allocations: 330.8 kB / 453 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001239/0.08265, allocations: 92.19 kB / 453.1 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001117/0.08276, allocations: 88.42 kB / 453.2 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002379/0.083, allocations: 300.8 kB / 453.4 MB, free: 232 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.083, allocations: 0 / 453.4 MB, free: 232 kB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004672/0.08347, allocations: 390.5 kB / 453.8 MB, free: 15.83 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.804e-05/0.08354, allocations: 71.7 kB / 453.9 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.98e-06/0.08354, allocations: 0 / 453.9 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.427e-05/0.08356, allocations: 11.86 kB / 453.9 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001075/0.08367, allocations: 20 kB / 453.9 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.11e-06/0.08367, allocations: 0 / 453.9 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001218/0.08379, allocations: 19.94 kB / 453.9 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.126e-05/0.08381, allocations: 12 kB / 454 MB, free: 15.68 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.0002097/0.08402, allocations: 222.8 kB / 454.2 MB, free: 15.44 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.849e-05/0.08406, allocations: 19.91 kB / 454.2 MB, free: 15.42 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.81e-05/0.0841, allocations: 17.88 kB / 454.2 MB, free: 15.4 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.0841, allocations: 7.938 kB / 454.2 MB, free: 15.39 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.932e-06/0.08411, allocations: 3.984 kB / 454.2 MB, free: 15.39 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.08411, allocations: 0 / 454.2 MB, free: 15.39 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002428/0.08435, allocations: 261.4 kB / 454.5 MB, free: 15.08 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.08436, allocations: 4 kB / 454.5 MB, free: 15.08 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.142e-05/0.08441, allocations: 8 kB / 454.5 MB, free: 15.07 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.704e-06/0.08441, allocations: 0 / 454.5 MB, free: 15.07 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.65e-05/0.08444, allocations: 11.98 kB / 454.5 MB, free: 15.06 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.08444, allocations: 4 kB / 454.5 MB, free: 15.05 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.08444, allocations: 0 / 454.5 MB, free: 15.05 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006438/0.08508, allocations: 460 kB / 455 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.11e-05/0.08515, allocations: 108.8 kB / 455.1 MB, free: 14.45 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.187e-05/0.08519, allocations: 12 kB / 455.1 MB, free: 14.44 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001065/0.0853, allocations: 11.98 kB / 455.1 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.319e-05/0.08536, allocations: 19.98 kB / 455.1 MB, free: 14.41 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.738e-05/0.08539, allocations: 7.984 kB / 455.1 MB, free: 14.4 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001263/0.08552, allocations: 152.3 kB / 455.3 MB, free: 14.25 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.08552, allocations: 0 / 455.3 MB, free: 14.25 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002928/0.08581, allocations: 79.81 kB / 455.3 MB, free: 14.17 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.001124/0.08693, allocations: 1.053 MB / 456.4 MB, free: 13.08 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005846/0.08752, allocations: 346.6 kB / 456.7 MB, free: 12.71 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.08752, allocations: 0 / 456.7 MB, free: 12.71 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002909/0.08781, allocations: 234.7 kB / 457 MB, free: 12.46 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002259/0.08804, allocations: 23.91 kB / 457 MB, free: 12.44 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003082/0.09112, allocations: 2.499 MB / 459.5 MB, free: 9.836 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003645/0.09148, allocations: 0.7316 MB / 460.2 MB, free: 9.078 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.304e-05/0.09153, allocations: 12.55 kB / 460.2 MB, free: 9.066 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.61e-05/0.0916, allocations: 47.42 kB / 460.3 MB, free: 9.02 MB / 334.1 MB Notification: Performance of SimCode: time 6.92e-07/0.0916, allocations: 0 / 460.3 MB, free: 9.02 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02562/0.1172, allocations: 4.524 MB / 464.8 MB, free: 4.449 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.058/8.176, allocations: 7.797 kB / 464.8 MB, free: 4.441 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.697832709993236] Failed to read output from testmodel.py, exit status != 0: 8.244820178006194 8.264946392 8.182021274 Calling exit ...