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.0008116/0.0008116, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0008281/0.0008281, allocations: 165.9 kB / 22.45 MB, free: 2.109 MB / 18.57 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 0.8471/0.8471, allocations: 158.6 MB / 184.2 MB, free: 3.051 MB / 170.7 MB " [Timeout remaining time 179] 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.006961/0.006961, allocations: 1.428 MB / 237.9 MB, free: 13.94 MB / 234.7 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: Performance of FrontEnd - loaded program: time 3.737e-06/3.737e-06, allocations: 0 / 352.4 MB, free: 15.94 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.38e-05/2.754e-05, allocations: 6.219 kB / 352.4 MB, free: 15.93 MB / 282.7 MB Notification: Performance of NFInst.instantiate(MEV.Controls.PatientController): time 0.001667/0.001695, allocations: 1.283 MB / 353.7 MB, free: 14.64 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001797/0.001874, allocations: 32.3 kB / 353.7 MB, free: 14.61 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.138e-05/0.001906, allocations: 3.938 kB / 353.8 MB, free: 14.6 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.748e-05/0.001943, allocations: 0 / 353.8 MB, free: 14.6 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 3.11e-05/0.001974, allocations: 0 / 353.8 MB, free: 14.6 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001785/0.002153, allocations: 7.984 kB / 353.8 MB, free: 14.59 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 9.686e-05/0.00225, allocations: 31.91 kB / 353.8 MB, free: 14.56 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.761e-05/0.002307, allocations: 8 kB / 353.8 MB, free: 14.55 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.855e-05/0.002376, allocations: 19.97 kB / 353.8 MB, free: 14.54 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.143e-05/0.002457, allocations: 11.97 kB / 353.8 MB, free: 14.52 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.864e-05/0.002486, allocations: 0 / 353.8 MB, free: 14.52 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.156e-05/0.002498, allocations: 4 kB / 353.8 MB, free: 14.52 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.609e-05/0.002524, allocations: 4 kB / 353.8 MB, free: 14.52 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.157e-05/0.002575, allocations: 15.91 kB / 353.9 MB, free: 14.5 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 9.008e-05/0.002665, allocations: 19.91 kB / 353.9 MB, free: 14.48 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.002669, allocations: 8 kB / 353.9 MB, free: 14.47 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.21e-07/0.00267, allocations: 0 / 353.9 MB, free: 14.47 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.18e-06/0.002675, allocations: 0 / 353.9 MB, free: 14.47 MB / 282.7 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.0004878/0.003163, allocations: 278.3 kB / 354.2 MB, free: 14.17 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.179e-05/0.003215, allocations: 15.98 kB / 354.2 MB, free: 14.15 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.471e-05/0.00328, allocations: 38.69 kB / 354.2 MB, free: 14.11 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.493e-05/0.003315, allocations: 0.9375 kB / 354.2 MB, free: 14.11 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.105e-05/0.003366, allocations: 109.8 kB / 354.3 MB, free: 13.97 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.044e-05/0.003436, allocations: 55.97 kB / 354.4 MB, free: 13.91 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.196e-05/0.003448, allocations: 4.375 kB / 354.4 MB, free: 13.9 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001292/0.003577, allocations: 54.22 kB / 354.4 MB, free: 13.84 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.875e-06/0.003585, allocations: 4.188 kB / 354.4 MB, free: 13.84 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.097e-06/0.003594, allocations: 384 / 354.4 MB, free: 13.84 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.003601, allocations: 3.938 kB / 354.4 MB, free: 13.84 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.022e-05/0.003651, allocations: 23.97 kB / 354.5 MB, free: 13.81 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000307/0.003958, allocations: 224 kB / 354.7 MB, free: 13.55 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.078e-05/0.004039, allocations: 38.56 kB / 354.7 MB, free: 13.5 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.736e-05/0.004066, allocations: 12.94 kB / 354.7 MB, free: 13.49 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.928e-06/0.004076, allocations: 3.938 kB / 354.7 MB, free: 13.48 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001999/0.004276, allocations: 95.23 kB / 354.8 MB, free: 13.38 MB / 282.7 MB Notification: Performance of pre-optimization done (n=7): time 1.092e-06/0.004277, allocations: 0 / 354.8 MB, free: 13.38 MB / 282.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002064/0.004483, allocations: 93.66 kB / 354.9 MB, free: 13.28 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.006e-05/0.004513, allocations: 55.41 kB / 355 MB, free: 13.21 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.708e-05/0.00456, allocations: 101.8 kB / 355.1 MB, free: 13.11 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.685e-06/0.004568, allocations: 25.7 kB / 355.1 MB, free: 13.07 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.605e-05/0.004584, allocations: 88.03 kB / 355.2 MB, free: 12.98 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.098e-06/0.004593, allocations: 23.97 kB / 355.2 MB, free: 12.96 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.415e-05/0.004627, allocations: 29.7 kB / 355.2 MB, free: 12.93 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 3.009e-05/0.004657, allocations: 314.8 kB / 355.5 MB, free: 12.61 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.814e-05/0.004696, allocations: 23.98 kB / 355.6 MB, free: 12.59 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.096e-05/0.004737, allocations: 50.48 kB / 355.6 MB, free: 12.53 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.506e-05/0.004802, allocations: 50.56 kB / 355.7 MB, free: 12.47 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.004804, allocations: 0 / 355.7 MB, free: 12.47 MB / 282.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 9.125e-05/0.004895, allocations: 97.5 kB / 355.8 MB, free: 12.37 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.452e-05/0.00491, allocations: 4 kB / 355.8 MB, free: 12.36 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.733e-06/0.004917, allocations: 0 / 355.8 MB, free: 12.36 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.354e-05/0.00493, allocations: 4 kB / 355.8 MB, free: 12.36 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.264e-05/0.004993, allocations: 11.92 kB / 355.8 MB, free: 12.35 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.582e-06/0.004999, allocations: 4 kB / 355.8 MB, free: 12.34 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.534e-05/0.005035, allocations: 7.984 kB / 355.8 MB, free: 12.34 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.233e-06/0.005042, allocations: 8 kB / 355.8 MB, free: 12.33 MB / 282.7 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 4.873e-05/0.005091, allocations: 109.9 kB / 355.9 MB, free: 12.21 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.155e-06/0.005099, allocations: 11.89 kB / 355.9 MB, free: 12.2 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.978e-05/0.005119, allocations: 8.125 kB / 355.9 MB, free: 12.2 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.005122, allocations: 0 / 355.9 MB, free: 12.2 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.005127, allocations: 0 / 355.9 MB, free: 12.2 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.177e-06/0.005131, allocations: 4 kB / 355.9 MB, free: 12.19 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.847e-05/0.00519, allocations: 132.7 kB / 356.1 MB, free: 12.02 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.005191, allocations: 3.938 kB / 356.1 MB, free: 12.02 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.194e-05/0.005203, allocations: 11.92 kB / 356.1 MB, free: 12 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.005205, allocations: 0 / 356.1 MB, free: 12 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.378e-06/0.005214, allocations: 8 kB / 356.1 MB, free: 12 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.92e-07/0.005215, allocations: 4 kB / 356.1 MB, free: 11.99 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.005216, allocations: 0 / 356.1 MB, free: 11.99 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001015/0.005317, allocations: 97.11 kB / 356.2 MB, free: 11.88 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.682e-06/0.005324, allocations: 19.88 kB / 356.2 MB, free: 11.86 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.139e-05/0.005335, allocations: 0 / 356.2 MB, free: 11.86 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.349e-05/0.005359, allocations: 4 kB / 356.2 MB, free: 11.86 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.444e-05/0.005403, allocations: 11.97 kB / 356.2 MB, free: 11.84 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.5e-06/0.005409, allocations: 4 kB / 356.2 MB, free: 11.84 MB / 282.7 MB Notification: Performance of sorting global known variables: time 1.418e-05/0.005423, allocations: 79.28 kB / 356.3 MB, free: 11.76 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005423, allocations: 4.094 kB / 356.3 MB, free: 11.76 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001275/0.00555, allocations: 8.188 kB / 356.3 MB, free: 11.75 MB / 282.7 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.0002494/0.0058, allocations: 0.6674 MB / 357 MB, free: 11.05 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001142/0.005914, allocations: 55.91 kB / 357 MB, free: 11 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.005916, allocations: 4 kB / 357 MB, free: 11 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 3.748e-05/0.005953, allocations: 24.12 kB / 357.1 MB, free: 10.97 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001096/0.006063, allocations: 4.188 kB / 357.1 MB, free: 10.97 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007098/0.006772, allocations: 1.25 MB / 358.3 MB, free: 9.621 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.323e-05/0.006806, allocations: 63.34 kB / 358.4 MB, free: 9.539 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 3.026e-05/0.006836, allocations: 3.984 kB / 358.4 MB, free: 9.535 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.702e-05/0.006883, allocations: 16.5 kB / 358.4 MB, free: 9.52 MB / 282.7 MB Notification: Performance of SimCode: time 8.72e-07/0.006884, allocations: 4 kB / 358.4 MB, free: 9.516 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01691/0.0238, allocations: 2.2 MB / 360.6 MB, free: 7.281 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.397/7.421, allocations: 15.86 kB / 360.6 MB, free: 7.266 MB / 282.7 MB " [Timeout remaining time 653] (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: 9.207358473911881] Failed to read output from testmodel.py, exit status != 0: 7.501119296066463 7.516727296 7.510786066 Calling exit ...