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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001712/0.001712, allocations: 110 kB / 18.93 MB, free: 2.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001998/0.001998, allocations: 190 kB / 22.23 MB, free: 5.156 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.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.00982/0.00982, allocations: 1.954 MB / 287.2 MB, free: 3.891 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002161/0.002161, allocations: 75.56 kB / 401.7 MB, free: 50.94 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06924/0.0714, allocations: 49.7 MB / 451.4 MB, free: 6.32 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Controls.PatientController): time 0.001945/0.07335, allocations: 1.279 MB / 452.7 MB, free: 5.031 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001736/0.07352, allocations: 39.81 kB / 452.7 MB, free: 4.992 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.996e-05/0.07355, allocations: 0 / 452.7 MB, free: 4.992 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.196e-05/0.07358, allocations: 0 / 452.7 MB, free: 4.992 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 3.273e-05/0.07362, allocations: 7.938 kB / 452.7 MB, free: 4.984 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001594/0.07378, allocations: 7.984 kB / 452.8 MB, free: 4.977 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 7.127e-05/0.07385, allocations: 27.97 kB / 452.8 MB, free: 4.949 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.214e-05/0.0739, allocations: 4.406 kB / 452.8 MB, free: 4.945 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.495e-05/0.07393, allocations: 11.98 kB / 452.8 MB, free: 4.934 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.984e-05/0.07399, allocations: 15.92 kB / 452.8 MB, free: 4.918 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.122e-05/0.07402, allocations: 0 / 452.8 MB, free: 4.918 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.108e-05/0.07403, allocations: 4 kB / 452.8 MB, free: 4.914 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.525e-05/0.07405, allocations: 11.97 kB / 452.8 MB, free: 4.902 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.092e-05/0.07409, allocations: 11.94 kB / 452.8 MB, free: 4.891 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 8.621e-05/0.07418, allocations: 23.91 kB / 452.9 MB, free: 4.867 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.07418, allocations: 4 kB / 452.9 MB, free: 4.863 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.07418, allocations: 0 / 452.9 MB, free: 4.863 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.46e-06/0.07419, allocations: 0 / 452.9 MB, free: 4.863 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.0004962/0.07469, allocations: 343.5 kB / 453.2 MB, free: 4.477 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.07473, allocations: 11.98 kB / 453.2 MB, free: 4.465 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.443e-05/0.07478, allocations: 46.69 kB / 453.3 MB, free: 4.41 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.198e-05/0.07481, allocations: 4.938 kB / 453.3 MB, free: 4.406 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.307e-05/0.07488, allocations: 168.3 kB / 453.4 MB, free: 4.203 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.723e-05/0.07493, allocations: 26.27 kB / 453.5 MB, free: 4.172 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.595e-05/0.07495, allocations: 8.375 kB / 453.5 MB, free: 4.164 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001409/0.07509, allocations: 57.92 kB / 453.5 MB, free: 4.102 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.666e-06/0.0751, allocations: 0 / 453.5 MB, free: 4.102 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.241e-05/0.07511, allocations: 7.984 kB / 453.5 MB, free: 4.094 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.068e-06/0.07511, allocations: 0 / 453.5 MB, free: 4.094 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.966e-05/0.07518, allocations: 15.98 kB / 453.5 MB, free: 4.078 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002944/0.07548, allocations: 264.7 kB / 453.8 MB, free: 3.77 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001013/0.07558, allocations: 42.61 kB / 453.8 MB, free: 3.719 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.991e-05/0.07562, allocations: 12.86 kB / 453.9 MB, free: 3.703 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.087e-05/0.07563, allocations: 8.078 kB / 453.9 MB, free: 3.695 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001853/0.07582, allocations: 79.36 kB / 453.9 MB, free: 3.605 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.242e-06/0.07582, allocations: 0 / 453.9 MB, free: 3.605 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002338/0.07605, allocations: 101.5 kB / 454 MB, free: 3.5 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.41e-05/0.07608, allocations: 55.41 kB / 454.1 MB, free: 3.434 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.532e-05/0.07612, allocations: 97.86 kB / 454.2 MB, free: 3.328 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.003e-05/0.07613, allocations: 29.69 kB / 454.2 MB, free: 3.293 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.025e-05/0.07615, allocations: 96.16 kB / 454.3 MB, free: 3.195 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.097e-05/0.07616, allocations: 15.89 kB / 454.3 MB, free: 3.18 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.366e-05/0.0762, allocations: 29.7 kB / 454.4 MB, free: 3.145 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.058e-05/0.07624, allocations: 314.8 kB / 454.7 MB, free: 2.828 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.087e-05/0.07629, allocations: 19.98 kB / 454.7 MB, free: 2.809 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.244e-05/0.07634, allocations: 46.48 kB / 454.7 MB, free: 2.754 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.761e-05/0.07643, allocations: 58.86 kB / 454.8 MB, free: 2.688 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.07643, allocations: 0 / 454.8 MB, free: 2.688 MB / 318.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001314/0.07656, allocations: 89.56 kB / 454.9 MB, free: 2.594 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.036e-05/0.07657, allocations: 4 kB / 454.9 MB, free: 2.59 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.07658, allocations: 4 kB / 454.9 MB, free: 2.586 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.198e-05/0.07659, allocations: 0 / 454.9 MB, free: 2.586 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.929e-05/0.07666, allocations: 19.98 kB / 454.9 MB, free: 2.566 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.992e-06/0.07666, allocations: 0 / 454.9 MB, free: 2.566 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.979e-05/0.07672, allocations: 4 kB / 454.9 MB, free: 2.562 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.055e-06/0.07673, allocations: 8 kB / 454.9 MB, free: 2.555 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 5.183e-05/0.07678, allocations: 117.8 kB / 455 MB, free: 2.43 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.069e-05/0.07679, allocations: 7.953 kB / 455 MB, free: 2.422 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.994e-05/0.07681, allocations: 4.062 kB / 455 MB, free: 2.41 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.07681, allocations: 4 kB / 455 MB, free: 2.406 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.07682, allocations: 4 kB / 455 MB, free: 2.402 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.455e-06/0.07682, allocations: 3.938 kB / 455 MB, free: 2.398 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.532e-05/0.07689, allocations: 169.5 kB / 455.2 MB, free: 2.184 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.07689, allocations: 0 / 455.2 MB, free: 2.184 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.437e-05/0.07691, allocations: 4 kB / 455.2 MB, free: 2.18 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.262e-06/0.07691, allocations: 0 / 455.2 MB, free: 2.18 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.398e-06/0.07692, allocations: 8.188 kB / 455.2 MB, free: 2.172 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.993e-06/0.07692, allocations: 7.938 kB / 455.2 MB, free: 2.164 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.07692, allocations: 3.938 kB / 455.2 MB, free: 2.16 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001321/0.07706, allocations: 113 kB / 455.3 MB, free: 2.031 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.393e-05/0.07707, allocations: 81.06 kB / 455.4 MB, free: 1.934 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.468e-05/0.07709, allocations: 4 kB / 455.4 MB, free: 1.93 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.517e-05/0.07713, allocations: 3.984 kB / 455.4 MB, free: 1.926 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.246e-05/0.07717, allocations: 11.98 kB / 455.4 MB, free: 1.914 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.652e-06/0.07718, allocations: 4 kB / 455.5 MB, free: 1.91 MB / 318.1 MB Notification: Performance of sorting global known variables: time 1.711e-05/0.0772, allocations: 79.28 kB / 455.5 MB, free: 1.832 MB / 318.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.0772, allocations: 0 / 455.5 MB, free: 1.832 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0001813/0.07738, allocations: 12 kB / 455.5 MB, free: 1.82 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.000345/0.07772, allocations: 0.6592 MB / 456.2 MB, free: 1.133 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001578/0.07788, allocations: 56.05 kB / 456.3 MB, free: 1.078 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.07788, allocations: 4 kB / 456.3 MB, free: 1.074 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 5.649e-05/0.07794, allocations: 19.98 kB / 456.3 MB, free: 1.055 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001358/0.07807, allocations: 8 kB / 456.3 MB, free: 1.047 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009645/0.07904, allocations: 1.239 MB / 457.5 MB, free: 15.71 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003127/0.07935, allocations: 0.6807 MB / 458.2 MB, free: 15 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.995e-05/0.07938, allocations: 7.984 kB / 458.2 MB, free: 15 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.257e-05/0.07942, allocations: 15.44 kB / 458.2 MB, free: 14.98 MB / 334.1 MB Notification: Performance of SimCode: time 5.71e-07/0.07942, allocations: 0 / 458.2 MB, free: 14.98 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02186/0.1013, allocations: 1.581 MB / 459.8 MB, free: 13.36 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.045/8.146, allocations: 4.062 kB / 459.8 MB, free: 13.36 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.633453003130853] Failed to read output from testmodel.py, exit status != 0: 8.211561458883807 8.226779539 8.149504639 Calling exit ...