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.001461/0.001461, allocations: 113 kB / 18.94 MB, free: 2.934 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.001572/0.001572, allocations: 209.8 kB / 22.25 MB, free: 5.086 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.429/1.429, allocations: 207.6 MB / 233 MB, free: 10 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.009308/0.009308, allocations: 1.966 MB / 287.2 MB, free: 3.965 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.002193/0.002193, allocations: 74.41 kB / 401.8 MB, free: 50.86 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08108/0.08327, allocations: 49.7 MB / 451.5 MB, free: 6.289 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController1): time 0.002138/0.08541, allocations: 1.538 MB / 453 MB, free: 4.738 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009656/0.08638, allocations: 0.7579 MB / 453.8 MB, free: 3.973 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.477e-05/0.08644, allocations: 0 / 453.8 MB, free: 3.973 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001305/0.08657, allocations: 55.8 kB / 453.8 MB, free: 3.918 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.843e-05/0.08666, allocations: 59.78 kB / 453.9 MB, free: 3.859 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004976/0.08716, allocations: 171.6 kB / 454.1 MB, free: 3.691 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001647/0.08732, allocations: 159.6 kB / 454.2 MB, free: 3.535 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.158e-05/0.08741, allocations: 19.91 kB / 454.2 MB, free: 3.516 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.07e-05/0.0875, allocations: 83.75 kB / 454.3 MB, free: 3.434 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001561/0.08766, allocations: 107.7 kB / 454.4 MB, free: 3.328 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.311e-05/0.08768, allocations: 12 kB / 454.4 MB, free: 3.316 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001809/0.08786, allocations: 155.8 kB / 454.6 MB, free: 3.164 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.524e-05/0.08792, allocations: 35.84 kB / 454.6 MB, free: 3.129 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.526e-05/0.08798, allocations: 63.66 kB / 454.7 MB, free: 3.066 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002354/0.08822, allocations: 231.2 kB / 454.9 MB, free: 2.84 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.08822, allocations: 0 / 454.9 MB, free: 2.84 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.08823, allocations: 4 kB / 454.9 MB, free: 2.836 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.48e-06/0.08823, allocations: 0 / 454.9 MB, free: 2.836 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.0006288/0.08886, allocations: 456.8 kB / 455.4 MB, free: 2.348 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.558e-05/0.0889, allocations: 15.98 kB / 455.4 MB, free: 2.332 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.021e-05/0.08893, allocations: 38.75 kB / 455.4 MB, free: 2.285 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.81e-05/0.08897, allocations: 24.83 kB / 455.4 MB, free: 2.262 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002279/0.0892, allocations: 159.6 kB / 455.6 MB, free: 2.082 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.091e-05/0.08925, allocations: 59.97 kB / 455.6 MB, free: 2.012 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.243e-05/0.08928, allocations: 8.375 kB / 455.7 MB, free: 2.004 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002134/0.08949, allocations: 137.5 kB / 455.8 MB, free: 1.863 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-06/0.0895, allocations: 0 / 455.8 MB, free: 1.863 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.407e-05/0.08951, allocations: 0 / 455.8 MB, free: 1.863 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.589e-06/0.08952, allocations: 8 kB / 455.8 MB, free: 1.855 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001477/0.08966, allocations: 95.88 kB / 455.9 MB, free: 1.762 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003903/0.09005, allocations: 335.6 kB / 456.2 MB, free: 1.391 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002075/0.09026, allocations: 122.5 kB / 456.3 MB, free: 1.262 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001059/0.09037, allocations: 76.83 kB / 456.4 MB, free: 1.184 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.279e-05/0.09038, allocations: 4.094 kB / 456.4 MB, free: 1.18 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000257/0.09064, allocations: 246.5 kB / 456.7 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.373e-06/0.09064, allocations: 0 / 456.7 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0005658/0.0912, allocations: 452.9 kB / 457.1 MB, free: 464 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.173e-05/0.09125, allocations: 118.8 kB / 457.2 MB, free: 320 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001026/0.09135, allocations: 188.1 kB / 457.4 MB, free: 124 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.718e-05/0.09137, allocations: 33.7 kB / 457.4 MB, free: 84 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.115e-05/0.09144, allocations: 112.5 kB / 457.5 MB, free: 15.97 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.252e-05/0.0915, allocations: 59.52 kB / 457.6 MB, free: 15.91 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.033e-05/0.09159, allocations: 45.7 kB / 457.6 MB, free: 15.86 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001449/0.09174, allocations: 330.8 kB / 458 MB, free: 15.53 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001537/0.09189, allocations: 88.19 kB / 458.1 MB, free: 15.44 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001471/0.09204, allocations: 88.42 kB / 458.1 MB, free: 15.35 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003377/0.09237, allocations: 285.7 kB / 458.4 MB, free: 15.05 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.047e-06/0.09238, allocations: 4 kB / 458.4 MB, free: 15.04 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005091/0.09289, allocations: 377.1 kB / 458.8 MB, free: 14.66 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.865e-05/0.09295, allocations: 63.39 kB / 458.9 MB, free: 14.58 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-06/0.09295, allocations: 3.938 kB / 458.9 MB, free: 14.58 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.47e-05/0.09297, allocations: 7.938 kB / 458.9 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001125/0.09308, allocations: 19.98 kB / 458.9 MB, free: 14.55 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.51e-06/0.09308, allocations: 4 kB / 458.9 MB, free: 14.55 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001182/0.0932, allocations: 19.94 kB / 458.9 MB, free: 14.53 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.724e-05/0.09322, allocations: 8 kB / 458.9 MB, free: 14.52 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.0001898/0.09341, allocations: 218.8 kB / 459.1 MB, free: 14.29 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.656e-05/0.09344, allocations: 19.91 kB / 459.1 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.356e-05/0.09349, allocations: 25.95 kB / 459.2 MB, free: 14.23 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.09349, allocations: 0 / 459.2 MB, free: 14.23 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.0935, allocations: 4 kB / 459.2 MB, free: 14.23 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.0935, allocations: 4 kB / 459.2 MB, free: 14.22 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002187/0.09372, allocations: 224.4 kB / 459.4 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.337e-06/0.09372, allocations: 3.984 kB / 459.4 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.956e-05/0.09377, allocations: 8 kB / 459.4 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.023e-06/0.09377, allocations: 0 / 459.4 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.573e-05/0.0938, allocations: 15.98 kB / 459.4 MB, free: 13.93 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.0938, allocations: 0 / 459.4 MB, free: 13.93 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.0938, allocations: 0 / 459.4 MB, free: 13.93 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006246/0.09442, allocations: 456 kB / 459.9 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.774e-05/0.09445, allocations: 23.77 kB / 459.9 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.715e-05/0.0945, allocations: 15.94 kB / 459.9 MB, free: 13.42 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000103/0.0946, allocations: 15.98 kB / 459.9 MB, free: 13.4 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.121e-05/0.09467, allocations: 11.98 kB / 459.9 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.977e-05/0.0947, allocations: 11.98 kB / 460 MB, free: 13.38 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001255/0.09483, allocations: 139.2 kB / 460.1 MB, free: 13.24 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09483, allocations: 7.938 kB / 460.1 MB, free: 13.23 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003076/0.09514, allocations: 79.83 kB / 460.2 MB, free: 13.16 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.001127/0.09626, allocations: 1.037 MB / 461.2 MB, free: 12.08 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005069/0.09677, allocations: 342.7 kB / 461.5 MB, free: 11.72 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.09677, allocations: 0 / 461.5 MB, free: 11.72 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000325/0.0971, allocations: 222.7 kB / 461.8 MB, free: 11.48 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002278/0.09733, allocations: 20.61 kB / 461.8 MB, free: 11.46 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002926/0.1003, allocations: 2.404 MB / 464.2 MB, free: 8.961 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003647/0.1006, allocations: 0.716 MB / 464.9 MB, free: 8.219 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.317e-05/0.1007, allocations: 12.48 kB / 464.9 MB, free: 8.207 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.007e-05/0.1007, allocations: 43.42 kB / 465 MB, free: 8.164 MB / 334.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1007, allocations: 0 / 465 MB, free: 8.164 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02882/0.1296, allocations: 4.687 MB / 469.6 MB, free: 3.434 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.66/10.79, allocations: 4.062 kB / 469.6 MB, free: 3.43 MB / 334.1 MB " [Timeout remaining time 649] (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: 13.394120448003378] Failed to read output from testmodel.py, exit status != 0: 10.894860766999045 10.924577816 10.831129919 Calling exit ...