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.00224/0.002241, 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.002732/0.002732, allocations: 192.7 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 2.554/2.554, allocations: 205.1 MB / 222.4 MB, free: 4.598 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.01967/0.01967, allocations: 1.928 MB / 271.7 MB, free: 3.328 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.001948/0.001948, allocations: 75.81 kB / 329.9 MB, free: 32.72 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1899/0.1918, allocations: 47.13 MB / 377.1 MB, free: 1.539 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Controls.PatientController): time 0.005665/0.1976, allocations: 1.277 MB / 378.4 MB, free: 252 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003087/0.198, allocations: 35.83 kB / 378.4 MB, free: 216 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.613e-05/0.1981, allocations: 0 / 378.4 MB, free: 216 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 4.967e-05/0.1981, allocations: 0 / 378.4 MB, free: 216 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 5.127e-05/0.1982, allocations: 0 / 378.4 MB, free: 216 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000273/0.1985, allocations: 11.98 kB / 378.4 MB, free: 204 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001474/0.1986, allocations: 27.91 kB / 378.4 MB, free: 176 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001003/0.1988, allocations: 11.98 kB / 378.4 MB, free: 164 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.554e-05/0.1989, allocations: 15.98 kB / 378.5 MB, free: 148 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001128/0.199, allocations: 15.92 kB / 378.5 MB, free: 132 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.545e-05/0.199, allocations: 0 / 378.5 MB, free: 132 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.743e-05/0.1991, allocations: 7.938 kB / 378.5 MB, free: 124 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 4.195e-05/0.1991, allocations: 7.984 kB / 378.5 MB, free: 116 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 7.415e-05/0.1992, allocations: 11.94 kB / 378.5 MB, free: 104 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000119/0.1993, allocations: 15.95 kB / 378.5 MB, free: 88 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.1993, allocations: 0 / 378.5 MB, free: 88 kB / 270.1 MB Notification: Performance of FrontEnd: time 5.501e-06/0.1993, allocations: 0 / 378.5 MB, free: 88 kB / 270.1 MB Notification: Performance of Transformations before backend: time 8.506e-06/0.1994, allocations: 3.938 kB / 378.5 MB, free: 84 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.001065/0.2004, allocations: 363.7 kB / 378.9 MB, free: 15.68 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.999e-05/0.2005, allocations: 11.89 kB / 378.9 MB, free: 15.66 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001155/0.2007, allocations: 38.73 kB / 378.9 MB, free: 15.62 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.793e-05/0.2007, allocations: 4.938 kB / 378.9 MB, free: 15.61 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003347/0.2011, allocations: 160.4 kB / 379.1 MB, free: 15.42 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002896/0.2014, allocations: 30.27 kB / 379.1 MB, free: 15.38 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.124e-05/0.2015, allocations: 16.36 kB / 379.1 MB, free: 15.37 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002411/0.2017, allocations: 57.92 kB / 379.2 MB, free: 15.3 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.419e-05/0.2018, allocations: 0 / 379.2 MB, free: 15.3 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.484e-05/0.2018, allocations: 0 / 379.2 MB, free: 15.3 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.809e-06/0.2018, allocations: 0 / 379.2 MB, free: 15.3 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001038/0.2019, allocations: 19.98 kB / 379.2 MB, free: 15.29 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005826/0.2025, allocations: 252.9 kB / 379.5 MB, free: 14.99 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001849/0.2027, allocations: 50.5 kB / 379.5 MB, free: 14.93 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.393e-05/0.2028, allocations: 16.94 kB / 379.5 MB, free: 14.91 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.865e-05/0.2028, allocations: 0 / 379.5 MB, free: 14.91 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003719/0.2032, allocations: 79.27 kB / 379.6 MB, free: 14.82 MB / 286.1 MB Notification: Performance of pre-optimization done (n=7): time 1.292e-06/0.2032, allocations: 4 kB / 379.6 MB, free: 14.82 MB / 286.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004096/0.2036, allocations: 97.88 kB / 379.7 MB, free: 14.71 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.362e-05/0.2037, allocations: 59.34 kB / 379.8 MB, free: 14.64 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001381/0.2039, allocations: 97.84 kB / 379.8 MB, free: 14.54 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.116e-05/0.2039, allocations: 29.7 kB / 379.9 MB, free: 14.5 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.029e-05/0.204, allocations: 87.98 kB / 380 MB, free: 14.41 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.627e-05/0.204, allocations: 15.81 kB / 380 MB, free: 14.4 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.354e-05/0.2041, allocations: 29.83 kB / 380 MB, free: 14.36 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002315/0.2044, allocations: 318.8 kB / 380.3 MB, free: 14.04 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.96e-05/0.2044, allocations: 19.98 kB / 380.3 MB, free: 14.02 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8e-05/0.2045, allocations: 34.56 kB / 380.4 MB, free: 13.98 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001596/0.2047, allocations: 66.56 kB / 380.4 MB, free: 13.91 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.2047, allocations: 192 / 380.4 MB, free: 13.91 MB / 286.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002214/0.2049, allocations: 93.5 kB / 380.5 MB, free: 13.81 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.411e-05/0.205, allocations: 7.938 kB / 380.5 MB, free: 13.8 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.776e-06/0.205, allocations: 4 kB / 380.5 MB, free: 13.8 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.632e-05/0.205, allocations: 0 / 380.5 MB, free: 13.8 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001025/0.2051, allocations: 11.98 kB / 380.6 MB, free: 13.79 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.337e-06/0.2051, allocations: 3.938 kB / 380.6 MB, free: 13.78 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.27e-05/0.2052, allocations: 12.05 kB / 380.6 MB, free: 13.77 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.404e-05/0.2053, allocations: 4 kB / 380.6 MB, free: 13.77 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 0.0001516/0.2054, allocations: 121.7 kB / 380.7 MB, free: 13.64 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.538e-06/0.2054, allocations: 0 / 380.7 MB, free: 13.64 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.508e-05/0.2055, allocations: 7.969 kB / 380.7 MB, free: 13.63 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.98e-06/0.2055, allocations: 4 kB / 380.7 MB, free: 13.63 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.284e-06/0.2055, allocations: 0 / 380.7 MB, free: 13.63 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.718e-06/0.2055, allocations: 0 / 380.7 MB, free: 13.63 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001876/0.2057, allocations: 161.6 kB / 380.9 MB, free: 13.42 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.2057, allocations: 8 kB / 380.9 MB, free: 13.41 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.932e-05/0.2057, allocations: 4 kB / 380.9 MB, free: 13.41 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.408e-06/0.2057, allocations: 4 kB / 380.9 MB, free: 13.41 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.138e-05/0.2058, allocations: 0 / 380.9 MB, free: 13.41 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.689e-06/0.2058, allocations: 3.984 kB / 380.9 MB, free: 13.4 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.2058, allocations: 0 / 380.9 MB, free: 13.4 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002116/0.206, allocations: 112.9 kB / 381 MB, free: 13.27 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.803e-05/0.2061, allocations: 85.05 kB / 381.1 MB, free: 13.17 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.427e-05/0.2061, allocations: 4 kB / 381.1 MB, free: 13.17 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.564e-05/0.2062, allocations: 11.98 kB / 381.1 MB, free: 13.16 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.614e-05/0.2063, allocations: 7.984 kB / 381.1 MB, free: 13.15 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.373e-06/0.2063, allocations: 0 / 381.1 MB, free: 13.15 MB / 286.1 MB Notification: Performance of sorting global known variables: time 6.487e-05/0.2064, allocations: 79.28 kB / 381.2 MB, free: 13.07 MB / 286.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2064, allocations: 0 / 381.2 MB, free: 13.07 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000199/0.2066, allocations: 12 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.0009062/0.2075, allocations: 0.6709 MB / 381.9 MB, free: 12.36 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002167/0.2077, allocations: 47.97 kB / 381.9 MB, free: 12.31 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 5.971e-06/0.2077, allocations: 7.938 kB / 381.9 MB, free: 12.3 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 9.642e-05/0.2078, allocations: 24.17 kB / 381.9 MB, free: 12.28 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000174/0.208, allocations: 11.94 kB / 381.9 MB, free: 12.27 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001704/0.2097, allocations: 1.227 MB / 383.2 MB, free: 10.95 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004897/0.2103, allocations: 0.6844 MB / 383.9 MB, free: 10.24 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 4.296e-05/0.2103, allocations: 4 kB / 383.9 MB, free: 10.23 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.869e-05/0.2104, allocations: 19.42 kB / 383.9 MB, free: 10.21 MB / 286.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2104, allocations: 0 / 383.9 MB, free: 10.21 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03754/0.248, allocations: 1.484 MB / 385.4 MB, free: 8.68 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.77/16.02, allocations: 12.02 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_MEV_MEV_Controls_PatientController_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 MEV_MEV_Controls_PatientController.fmu > MEV_MEV.Controls.PatientController.pipe 2>&1)