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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001489/0.001489, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001725/0.001725, allocations: 194.3 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.478/1.478, allocations: 205.1 MB / 222.4 MB, free: 4.605 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.00909/0.00909, allocations: 1.935 MB / 271.7 MB, free: 3.336 MB / 222.1 MB 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.00151/0.00151, allocations: 71.28 kB / 329.9 MB, free: 32.73 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07788/0.07941, allocations: 47.13 MB / 377.1 MB, free: 1.551 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Controls.PatientController): time 0.002803/0.08226, allocations: 1.289 MB / 378.4 MB, free: 252 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001828/0.08246, allocations: 31.91 kB / 378.4 MB, free: 220 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.627e-05/0.0825, allocations: 0 / 378.4 MB, free: 220 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 2.706e-05/0.08254, allocations: 3.938 kB / 378.4 MB, free: 216 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 3.252e-05/0.08259, allocations: 0 / 378.4 MB, free: 216 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001348/0.08273, allocations: 15.97 kB / 378.4 MB, free: 200 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 6.387e-05/0.08281, allocations: 19.98 kB / 378.4 MB, free: 180 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.212e-05/0.08287, allocations: 8 kB / 378.4 MB, free: 172 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.547e-05/0.08291, allocations: 15.97 kB / 378.5 MB, free: 156 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.864e-05/0.08297, allocations: 19.91 kB / 378.5 MB, free: 136 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 1.906e-05/0.083, allocations: 4 kB / 378.5 MB, free: 132 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.064e-05/0.08301, allocations: 0 / 378.5 MB, free: 132 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 2.274e-05/0.08304, allocations: 4 kB / 378.5 MB, free: 128 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 4.535e-05/0.08309, allocations: 19.86 kB / 378.5 MB, free: 108 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 9.887e-05/0.08319, allocations: 15.97 kB / 378.5 MB, free: 92 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.08321, allocations: 0 / 378.5 MB, free: 92 kB / 270.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.08321, allocations: 3.938 kB / 378.5 MB, free: 88 kB / 270.1 MB Notification: Performance of Transformations before backend: time 4.428e-06/0.08322, allocations: 0 / 378.5 MB, free: 88 kB / 270.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.0005393/0.08377, allocations: 359.6 kB / 378.9 MB, free: 15.68 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.76e-05/0.08382, allocations: 15.89 kB / 378.9 MB, free: 15.67 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.556e-05/0.08389, allocations: 34.75 kB / 378.9 MB, free: 15.62 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.879e-05/0.08394, allocations: 8.922 kB / 378.9 MB, free: 15.62 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001027/0.08404, allocations: 160.4 kB / 379.1 MB, free: 15.42 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.708e-05/0.08412, allocations: 30.27 kB / 379.1 MB, free: 15.39 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.059e-05/0.08414, allocations: 4.375 kB / 379.1 MB, free: 15.38 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001527/0.08429, allocations: 57.98 kB / 379.2 MB, free: 15.32 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.08431, allocations: 0 / 379.2 MB, free: 15.32 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.608e-06/0.08433, allocations: 0 / 379.2 MB, free: 15.32 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.272e-06/0.08434, allocations: 7.984 kB / 379.2 MB, free: 15.31 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.194e-05/0.08443, allocations: 15.92 kB / 379.2 MB, free: 15.3 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004242/0.08486, allocations: 264.8 kB / 379.5 MB, free: 14.99 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001156/0.08499, allocations: 38.61 kB / 379.5 MB, free: 14.94 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.068e-05/0.08505, allocations: 16.86 kB / 379.5 MB, free: 14.92 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.604e-06/0.08506, allocations: 0 / 379.5 MB, free: 14.92 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002358/0.0853, allocations: 83.3 kB / 379.6 MB, free: 14.83 MB / 286.1 MB Notification: Performance of pre-optimization done (n=7): time 1.412e-06/0.08532, allocations: 4 kB / 379.6 MB, free: 14.82 MB / 286.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002922/0.08561, allocations: 93.66 kB / 379.7 MB, free: 14.73 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.794e-05/0.08566, allocations: 55.41 kB / 379.7 MB, free: 14.66 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.202e-05/0.08574, allocations: 93.86 kB / 379.8 MB, free: 14.56 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.653e-05/0.08576, allocations: 29.7 kB / 379.9 MB, free: 14.52 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.199e-05/0.08581, allocations: 95.97 kB / 380 MB, free: 14.43 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.626e-05/0.08583, allocations: 19.8 kB / 380 MB, free: 14.41 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.117e-05/0.08588, allocations: 21.84 kB / 380 MB, free: 14.38 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001132/0.086, allocations: 326.8 kB / 380.3 MB, free: 14.05 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.909e-05/0.08606, allocations: 19.92 kB / 380.3 MB, free: 14.03 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.702e-05/0.08614, allocations: 42.56 kB / 380.4 MB, free: 13.98 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001088/0.08625, allocations: 58.5 kB / 380.4 MB, free: 13.91 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.08626, allocations: 0 / 380.4 MB, free: 13.91 MB / 286.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001697/0.08644, allocations: 89.52 kB / 380.5 MB, free: 13.82 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.308e-05/0.08646, allocations: 4 kB / 380.5 MB, free: 13.82 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.418e-06/0.08647, allocations: 0 / 380.5 MB, free: 13.82 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.74e-05/0.08649, allocations: 4 kB / 380.5 MB, free: 13.81 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.853e-05/0.08657, allocations: 7.938 kB / 380.5 MB, free: 13.8 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.516e-06/0.08658, allocations: 7.984 kB / 380.5 MB, free: 13.8 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.768e-05/0.08665, allocations: 12.25 kB / 380.6 MB, free: 13.79 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.408e-06/0.08667, allocations: 4 kB / 380.6 MB, free: 13.78 MB / 286.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.516e-05/0.08675, allocations: 121.7 kB / 380.7 MB, free: 13.65 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.326e-05/0.08677, allocations: 4 kB / 380.7 MB, free: 13.65 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.767e-05/0.0868, allocations: 7.906 kB / 380.7 MB, free: 13.64 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.835e-06/0.08681, allocations: 3.984 kB / 380.7 MB, free: 13.64 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.08682, allocations: 0 / 380.7 MB, free: 13.64 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.08683, allocations: 0 / 380.7 MB, free: 13.64 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001196/0.08695, allocations: 173.6 kB / 380.9 MB, free: 13.42 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.08696, allocations: 4 kB / 380.9 MB, free: 13.42 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.948e-05/0.087, allocations: 4 kB / 380.9 MB, free: 13.41 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.08701, allocations: 0 / 380.9 MB, free: 13.41 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.166e-06/0.08702, allocations: 0 / 380.9 MB, free: 13.41 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.098e-06/0.08703, allocations: 4 kB / 380.9 MB, free: 13.41 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.08703, allocations: 0 / 380.9 MB, free: 13.41 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002057/0.08724, allocations: 113.3 kB / 381 MB, free: 13.28 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.239e-05/0.08729, allocations: 85.05 kB / 381.1 MB, free: 13.18 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.538e-05/0.08731, allocations: 0 / 381.1 MB, free: 13.18 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.665e-05/0.08737, allocations: 7.984 kB / 381.1 MB, free: 13.17 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.042e-05/0.08743, allocations: 11.98 kB / 381.1 MB, free: 13.16 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.985e-06/0.08744, allocations: 7.938 kB / 381.1 MB, free: 13.15 MB / 286.1 MB Notification: Performance of sorting global known variables: time 3.356e-05/0.08748, allocations: 75.28 kB / 381.2 MB, free: 13.08 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.08749, allocations: 0 / 381.2 MB, free: 13.08 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0001944/0.08768, allocations: 16 kB / 381.2 MB, free: 13.06 MB / 286.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.0004961/0.08819, allocations: 0.6711 MB / 381.9 MB, free: 12.36 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001638/0.08836, allocations: 51.91 kB / 381.9 MB, free: 12.31 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.08837, allocations: 0 / 381.9 MB, free: 12.31 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 6.894e-05/0.08845, allocations: 28.11 kB / 381.9 MB, free: 12.29 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001315/0.08859, allocations: 8 kB / 381.9 MB, free: 12.28 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001125/0.08972, allocations: 1.226 MB / 383.2 MB, free: 10.96 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002207/0.08996, allocations: 0.6883 MB / 383.9 MB, free: 10.24 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 2.894e-05/0.08999, allocations: 4 kB / 383.9 MB, free: 10.24 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.744e-05/0.09004, allocations: 7.438 kB / 383.9 MB, free: 10.23 MB / 286.1 MB Notification: Performance of SimCode: time 2.505e-06/0.09004, allocations: 0 / 383.9 MB, free: 10.23 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01725/0.1073, allocations: 1.5 MB / 385.4 MB, free: 8.68 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.127/8.234, allocations: 11.95 kB / 385.4 MB, free: 8.668 MB / 286.1 MB (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)