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.005468/0.005468, allocations: 100.9 kB / 15.73 MB, free: 6.062 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00129/0.00129, allocations: 195.3 kB / 16.67 MB, free: 5.973 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.421/1.421, allocations: 205.1 MB / 222.6 MB, free: 4.508 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.009615/0.009615, allocations: 1.928 MB / 271.8 MB, free: 3.238 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.002086/0.002086, allocations: 71.89 kB / 377.7 MB, free: 0.9336 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09134/0.09344, allocations: 47.13 MB / 424.9 MB, free: 1.699 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Controls.PatientController): time 0.002401/0.09588, allocations: 1.283 MB / 426.1 MB, free: 416 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001709/0.09607, allocations: 23.91 kB / 426.2 MB, free: 392 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.637e-05/0.09611, allocations: 4 kB / 426.2 MB, free: 388 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.14e-05/0.09615, allocations: 3.938 kB / 426.2 MB, free: 384 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 2.999e-05/0.09619, allocations: 0 / 426.2 MB, free: 384 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001455/0.09635, allocations: 11.98 kB / 426.2 MB, free: 372 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 8e-05/0.09643, allocations: 23.97 kB / 426.2 MB, free: 348 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.102e-05/0.09649, allocations: 7.984 kB / 426.2 MB, free: 340 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.489e-05/0.09653, allocations: 11.98 kB / 426.2 MB, free: 328 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.606e-05/0.0966, allocations: 19.92 kB / 426.2 MB, free: 308 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.196e-05/0.09664, allocations: 0 / 426.2 MB, free: 308 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.268e-05/0.09666, allocations: 7.938 kB / 426.3 MB, free: 300 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.807e-05/0.09669, allocations: 11.98 kB / 426.3 MB, free: 288 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.785e-05/0.09675, allocations: 15.92 kB / 426.3 MB, free: 272 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 6.896e-05/0.09682, allocations: 11.97 kB / 426.3 MB, free: 260 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.09683, allocations: 0 / 426.3 MB, free: 260 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.09684, allocations: 0 / 426.3 MB, free: 260 kB / 318.1 MB Notification: Performance of Transformations before backend: time 8.345e-06/0.09685, allocations: 0 / 426.3 MB, free: 260 kB / 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.1675/0.2644, allocations: 344.6 kB / 426.6 MB, free: 11.68 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.744e-05/0.2645, allocations: 15.53 kB / 426.6 MB, free: 11.68 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.861e-05/0.2645, allocations: 36.95 kB / 426.7 MB, free: 11.63 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.597e-05/0.2646, allocations: 5.562 kB / 426.7 MB, free: 11.63 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.029e-05/0.2646, allocations: 169.2 kB / 426.9 MB, free: 11.44 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.541e-05/0.2647, allocations: 37.59 kB / 426.9 MB, free: 11.41 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.709e-05/0.2647, allocations: 3.188 kB / 426.9 MB, free: 11.41 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000164/0.2649, allocations: 58.39 kB / 427 MB, free: 11.37 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-06/0.2649, allocations: 0 / 427 MB, free: 11.37 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.068e-05/0.2649, allocations: 0 / 427 MB, free: 11.37 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.265e-06/0.265, allocations: 2.312 kB / 427 MB, free: 11.37 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.173e-05/0.265, allocations: 25.09 kB / 427 MB, free: 11.37 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003212/0.2654, allocations: 261.3 kB / 427.2 MB, free: 11.11 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001094/0.2655, allocations: 37.47 kB / 427.3 MB, free: 11.08 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.507e-05/0.2656, allocations: 15.48 kB / 427.3 MB, free: 11.07 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.378e-05/0.2656, allocations: 3.938 kB / 427.3 MB, free: 11.07 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002321/0.2658, allocations: 85.66 kB / 427.4 MB, free: 11.02 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.413e-06/0.2658, allocations: 0 / 427.4 MB, free: 11.02 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002637/0.2661, allocations: 96.72 kB / 427.5 MB, free: 10.99 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.778e-05/0.2661, allocations: 58.06 kB / 427.5 MB, free: 10.93 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.427e-05/0.2662, allocations: 99.64 kB / 427.6 MB, free: 10.83 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.048e-05/0.2662, allocations: 27.73 kB / 427.6 MB, free: 10.8 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.113e-05/0.2662, allocations: 92.92 kB / 427.7 MB, free: 10.71 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.236e-05/0.2662, allocations: 17.3 kB / 427.8 MB, free: 10.71 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.81e-05/0.2663, allocations: 22.23 kB / 427.8 MB, free: 10.69 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.527e-05/0.2663, allocations: 321.3 kB / 428.1 MB, free: 10.38 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.907e-05/0.2664, allocations: 19.48 kB / 428.1 MB, free: 10.38 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.208e-05/0.2665, allocations: 48.97 kB / 428.2 MB, free: 10.35 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.414e-05/0.2666, allocations: 58.5 kB / 428.2 MB, free: 10.33 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.2666, allocations: 0 / 428.2 MB, free: 10.33 MB / 318.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001458/0.2667, allocations: 86.52 kB / 428.3 MB, free: 10.29 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.36e-05/0.2667, allocations: 6.938 kB / 428.3 MB, free: 10.29 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.2668, allocations: 5 kB / 428.3 MB, free: 10.29 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.272e-05/0.2668, allocations: 1.438 kB / 428.3 MB, free: 10.29 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.097e-05/0.2668, allocations: 15.98 kB / 428.3 MB, free: 10.29 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.771e-06/0.2669, allocations: 1.312 kB / 428.3 MB, free: 10.29 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.393e-05/0.2669, allocations: 7.328 kB / 428.3 MB, free: 10.29 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.027e-06/0.2669, allocations: 6.219 kB / 428.3 MB, free: 10.29 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 4.767e-05/0.267, allocations: 116.3 kB / 428.5 MB, free: 10.17 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.069e-05/0.267, allocations: 10.67 kB / 428.5 MB, free: 10.17 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.96e-05/0.267, allocations: 7.469 kB / 428.5 MB, free: 10.16 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.267, allocations: 1.469 kB / 428.5 MB, free: 10.16 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.2671, allocations: 0 / 428.5 MB, free: 10.16 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.2671, allocations: 0.7969 kB / 428.5 MB, free: 10.16 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.816e-05/0.2671, allocations: 166.4 kB / 428.6 MB, free: 9.969 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.2671, allocations: 0.6875 kB / 428.6 MB, free: 9.969 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.714e-05/0.2672, allocations: 7.672 kB / 428.6 MB, free: 9.969 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.2672, allocations: 5.75 kB / 428.7 MB, free: 9.965 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.985e-06/0.2672, allocations: 0.75 kB / 428.7 MB, free: 9.965 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.2672, allocations: 0.7031 kB / 428.7 MB, free: 9.965 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.2672, allocations: 5.031 kB / 428.7 MB, free: 9.965 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001489/0.2674, allocations: 108.9 kB / 428.8 MB, free: 9.895 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.668e-05/0.2674, allocations: 88.64 kB / 428.9 MB, free: 9.797 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.621e-05/0.2674, allocations: 5.578 kB / 428.9 MB, free: 9.797 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.884e-05/0.2675, allocations: 8.906 kB / 428.9 MB, free: 9.793 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.542e-05/0.2675, allocations: 12.67 kB / 428.9 MB, free: 9.789 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.364e-06/0.2675, allocations: 5.719 kB / 428.9 MB, free: 9.789 MB / 318.1 MB Notification: Performance of sorting global known variables: time 1.646e-05/0.2675, allocations: 79.03 kB / 429 MB, free: 9.715 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2676, allocations: 0 / 429 MB, free: 9.715 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0001839/0.2677, allocations: 8.281 kB / 429 MB, free: 9.715 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.0003507/0.2681, allocations: 0.6705 MB / 429.6 MB, free: 9.117 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001538/0.2683, allocations: 52.52 kB / 429.7 MB, free: 9.113 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.2683, allocations: 0 / 429.7 MB, free: 9.113 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 7.465e-05/0.2684, allocations: 24.3 kB / 429.7 MB, free: 9.113 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001318/0.2685, allocations: 7.734 kB / 429.7 MB, free: 9.113 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000895/0.2694, allocations: 1.235 MB / 431 MB, free: 7.996 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.435e-05/0.2695, allocations: 0.6805 MB / 431.6 MB, free: 7.301 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 2.844e-05/0.2695, allocations: 7.406 kB / 431.6 MB, free: 7.297 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.797e-05/0.2696, allocations: 14.52 kB / 431.7 MB, free: 7.289 MB / 318.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2696, allocations: 0 / 431.7 MB, free: 7.289 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02158/0.2912, allocations: 1.52 MB / 433.2 MB, free: 6.828 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.822/8.113, allocations: 5.891 kB / 433.2 MB, free: 6.824 MB / 318.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)