Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr MEV_MEV.Controls.PatientController.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.001323/0.001323, allocations: 110.1 kB / 16.45 MB, free: 6.496 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.002005/0.002005, allocations: 216.2 kB / 19.43 MB, free: 3.66 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.424/1.424, allocations: 207.6 MB / 229.8 MB, free: 11.4 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.008926/0.008926, allocations: 1.966 MB / 283.6 MB, free: 5.047 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.Controls.PatientController,fileNamePrefix="MEV_MEV_Controls_PatientController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(MEV.Controls.PatientController,fileNamePrefix="MEV_MEV_Controls_PatientController",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.002145/0.002145, allocations: 77.19 kB / 396.6 MB, free: 51.18 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06931/0.07145, allocations: 49.67 MB / 446.2 MB, free: 7.781 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Controls.PatientController): time 0.0021/0.07355, allocations: 1.28 MB / 447.5 MB, free: 6.492 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001565/0.07371, allocations: 31.89 kB / 447.5 MB, free: 6.461 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.876e-05/0.07374, allocations: 0 / 447.5 MB, free: 6.461 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.924e-05/0.07377, allocations: 7.922 kB / 447.5 MB, free: 6.453 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 2.715e-05/0.0738, allocations: 0 / 447.5 MB, free: 6.453 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001369/0.07393, allocations: 11.98 kB / 447.6 MB, free: 6.441 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 6.808e-05/0.074, allocations: 23.92 kB / 447.6 MB, free: 6.418 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.762e-05/0.07405, allocations: 3.984 kB / 447.6 MB, free: 6.414 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.134e-05/0.07408, allocations: 15.98 kB / 447.6 MB, free: 6.398 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.322e-05/0.07413, allocations: 19.92 kB / 447.6 MB, free: 6.379 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.68e-05/0.07415, allocations: 4 kB / 447.6 MB, free: 6.375 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.528e-06/0.07416, allocations: 0 / 447.6 MB, free: 6.375 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.114e-05/0.07418, allocations: 11.98 kB / 447.6 MB, free: 6.363 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.776e-05/0.07422, allocations: 11.86 kB / 447.6 MB, free: 6.352 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 6.781e-05/0.07429, allocations: 23.91 kB / 447.7 MB, free: 6.328 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.07429, allocations: 0 / 447.7 MB, free: 6.328 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.07429, allocations: 0 / 447.7 MB, free: 6.328 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.939e-06/0.0743, allocations: 0 / 447.7 MB, free: 6.328 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0004588/0.07475, allocations: 351.5 kB / 448 MB, free: 5.934 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.52e-05/0.07479, allocations: 11.89 kB / 448 MB, free: 5.922 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.65e-05/0.07484, allocations: 42.69 kB / 448.1 MB, free: 5.871 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.947e-05/0.07487, allocations: 0.9375 kB / 448.1 MB, free: 5.871 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.424e-05/0.07492, allocations: 164.4 kB / 448.2 MB, free: 5.672 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.868e-05/0.07497, allocations: 26.27 kB / 448.2 MB, free: 5.641 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.123e-05/0.07498, allocations: 12.36 kB / 448.3 MB, free: 5.629 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001229/0.0751, allocations: 61.98 kB / 448.3 MB, free: 5.562 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.642e-06/0.07511, allocations: 0 / 448.3 MB, free: 5.562 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.967e-06/0.07512, allocations: 0 / 448.3 MB, free: 5.562 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.847e-06/0.07512, allocations: 0 / 448.3 MB, free: 5.562 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.132e-05/0.07519, allocations: 19.92 kB / 448.3 MB, free: 5.543 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002844/0.07548, allocations: 260.8 kB / 448.6 MB, free: 5.238 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001033/0.07558, allocations: 46.55 kB / 448.6 MB, free: 5.184 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.256e-05/0.07562, allocations: 25.28 kB / 448.7 MB, free: 5.156 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.798e-06/0.07563, allocations: 0 / 448.7 MB, free: 5.156 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001827/0.07582, allocations: 79.25 kB / 448.7 MB, free: 5.066 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.262e-06/0.07582, allocations: 0 / 448.7 MB, free: 5.066 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002346/0.07605, allocations: 93.66 kB / 448.8 MB, free: 4.969 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.409e-05/0.07609, allocations: 63.41 kB / 448.9 MB, free: 4.895 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.296e-05/0.07613, allocations: 97.84 kB / 449 MB, free: 4.789 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.013e-05/0.07614, allocations: 29.7 kB / 449 MB, free: 4.754 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.982e-05/0.07616, allocations: 88.03 kB / 449.1 MB, free: 4.664 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.16e-05/0.07617, allocations: 15.91 kB / 449.1 MB, free: 4.648 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.473e-05/0.07621, allocations: 25.7 kB / 449.1 MB, free: 4.617 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.399e-05/0.07625, allocations: 318.8 kB / 449.5 MB, free: 4.297 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.298e-05/0.0763, allocations: 28.05 kB / 449.5 MB, free: 4.27 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.279e-05/0.07635, allocations: 34.56 kB / 449.5 MB, free: 4.227 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.036e-05/0.07645, allocations: 62.48 kB / 449.6 MB, free: 4.156 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.07645, allocations: 0 / 449.6 MB, free: 4.156 MB / 318.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001356/0.07658, allocations: 93.56 kB / 449.7 MB, free: 4.059 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.222e-05/0.0766, allocations: 4 kB / 449.7 MB, free: 4.055 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.0766, allocations: 4 kB / 449.7 MB, free: 4.051 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.2e-05/0.07661, allocations: 0 / 449.7 MB, free: 4.051 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.041e-05/0.07668, allocations: 11.98 kB / 449.7 MB, free: 4.039 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.699e-06/0.07669, allocations: 0 / 449.7 MB, free: 4.039 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.379e-05/0.07675, allocations: 11.98 kB / 449.7 MB, free: 4.027 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.176e-06/0.07676, allocations: 4 kB / 449.7 MB, free: 4.023 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$whenCondition2,active,$PRE.active,t_off,$PRE.t_off,t_on,$PRE.t_on,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * 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 7.195e-05/0.07683, allocations: 125.8 kB / 449.8 MB, free: 3.891 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.034e-05/0.07684, allocations: 3.953 kB / 449.8 MB, free: 3.887 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.14e-05/0.07686, allocations: 11.91 kB / 449.8 MB, free: 3.871 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.07686, allocations: 4 kB / 449.8 MB, free: 3.867 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.07687, allocations: 0 / 449.8 MB, free: 3.867 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.07687, allocations: 0 / 449.8 MB, free: 3.867 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.636e-05/0.07694, allocations: 165.5 kB / 450 MB, free: 3.656 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.07694, allocations: 4 kB / 450 MB, free: 3.652 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.618e-05/0.07697, allocations: 0 / 450 MB, free: 3.652 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.07697, allocations: 8 kB / 450 MB, free: 3.645 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.725e-06/0.07698, allocations: 3.984 kB / 450 MB, free: 3.641 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.07698, allocations: 3.938 kB / 450 MB, free: 3.637 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.07698, allocations: 192 / 450 MB, free: 3.637 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001375/0.07711, allocations: 109.4 kB / 450.1 MB, free: 3.512 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.454e-05/0.07713, allocations: 85 kB / 450.2 MB, free: 3.41 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.531e-05/0.07714, allocations: 8 kB / 450.2 MB, free: 3.402 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.97e-05/0.07719, allocations: 11.98 kB / 450.2 MB, free: 3.391 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.254e-05/0.07724, allocations: 11.98 kB / 450.3 MB, free: 3.379 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.38e-06/0.07724, allocations: 3.938 kB / 450.3 MB, free: 3.375 MB / 318.1 MB Notification: Performance of sorting global known variables: time 1.544e-05/0.07726, allocations: 79.28 kB / 450.3 MB, free: 3.297 MB / 318.1 MB Notification: Performance of sort global known variables: time 6e-08/0.07726, allocations: 0 / 450.3 MB, free: 3.297 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0001801/0.07744, allocations: 12 kB / 450.3 MB, free: 3.285 MB / 318.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: 6 ($whenCondition3,$whenCondition1,$whenCondition2,t_on,t_off,active) * Number of discrete states: 2 (active,t_on) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * 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.000334/0.07777, allocations: 0.6634 MB / 451 MB, free: 2.594 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001477/0.07792, allocations: 55.89 kB / 451.1 MB, free: 2.539 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.07792, allocations: 0 / 451.1 MB, free: 2.539 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 5.882e-05/0.07798, allocations: 23.92 kB / 451.1 MB, free: 2.516 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001295/0.07811, allocations: 4 kB / 451.1 MB, free: 2.512 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008193/0.07893, allocations: 1.231 MB / 452.3 MB, free: 1.188 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.33e-05/0.07901, allocations: 0.6845 MB / 453 MB, free: 488 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 2.64e-05/0.07904, allocations: 11.92 kB / 453 MB, free: 476 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.685e-05/0.07908, allocations: 15.44 kB / 453 MB, free: 460 kB / 318.1 MB Notification: Performance of SimCode: time 2.8e-07/0.07908, allocations: 0 / 453 MB, free: 460 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02307/0.1021, allocations: 1.523 MB / 454.6 MB, free: 14.88 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.906/8.008, allocations: 8.422 kB / 454.6 MB, free: 14.87 MB / 334.1 MB " [Timeout remaining time 652] (rm -f MEV_MEV.Controls.PatientController.pipe ; mkfifo MEV_MEV.Controls.PatientController.pipe ; head -c 1048576 < MEV_MEV.Controls.PatientController.pipe >> ../files/MEV_MEV.Controls.PatientController.sim & python3 -m fmpy simulate --output-file MEV_MEV.Controls.PatientController_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 MEV_MEV_Controls_PatientController.fmu > MEV_MEV.Controls.PatientController.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.529338692998863] Failed to read output from testmodel.py, exit status != 0: 8.07603740999184 8.103893352 8.024804538 Calling exit ...