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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1-master/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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 MEV with version 1.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1-master/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001571/0.001571, allocations: 174.8 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1-master/package.mo): time 0.00761/0.00761, allocations: 1.917 MB / 15.18 MB, free: 128 kB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.345/1.345, allocations: 205.2 MB / 221.4 MB, free: 7.352 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008331/0.000833, allocations: 89.48 kB / 270.1 MB, free: 7.141 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.917e-05/2.92e-05, allocations: 0 / 326.1 MB, free: 14.99 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2552/0.2553, allocations: 48.06 MB / 374.2 MB, free: 44.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08809/0.3434, allocations: 74.58 MB / 448.8 MB, free: 4.285 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001905/0.3437, allocations: 55.97 kB / 448.8 MB, free: 4.23 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.001307/0.345, allocations: 0.5374 MB / 449.3 MB, free: 3.703 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.345, allocations: 0 / 449.3 MB, free: 3.703 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.209e-06/0.345, allocations: 0 / 449.3 MB, free: 3.703 MB / 330.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.0003999/0.3454, allocations: 343.4 kB / 449.7 MB, free: 3.332 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.3455, allocations: 8.031 kB / 449.7 MB, free: 3.324 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.074e-05/0.3455, allocations: 35.34 kB / 449.7 MB, free: 3.281 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.667e-05/0.3456, allocations: 7.906 kB / 449.7 MB, free: 3.273 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001216/0.3457, allocations: 167 kB / 449.9 MB, free: 3.07 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.914e-05/0.3458, allocations: 37.69 kB / 449.9 MB, free: 3.027 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.553e-05/0.3458, allocations: 7.953 kB / 449.9 MB, free: 3.02 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001108/0.3459, allocations: 45.69 kB / 450 MB, free: 2.969 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.925e-06/0.3459, allocations: 0 / 450 MB, free: 2.969 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.769e-06/0.346, allocations: 0 / 450 MB, free: 2.969 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.161e-05/0.346, allocations: 4 kB / 450 MB, free: 2.965 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.816e-05/0.346, allocations: 4 kB / 450 MB, free: 2.961 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003804/0.3464, allocations: 269.8 kB / 450.3 MB, free: 2.648 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.087e-05/0.3465, allocations: 26.64 kB / 450.3 MB, free: 2.613 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.625e-05/0.3465, allocations: 16.86 kB / 450.3 MB, free: 2.594 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.987e-06/0.3465, allocations: 0 / 450.3 MB, free: 2.594 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000142/0.3467, allocations: 71.45 kB / 450.4 MB, free: 2.512 MB / 330.7 MB Notification: Performance of pre-optimization done (n=7): time 1.323e-06/0.3467, allocations: 4 kB / 450.4 MB, free: 2.508 MB / 330.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001793/0.3469, allocations: 78.78 kB / 450.4 MB, free: 2.426 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.31e-05/0.3469, allocations: 56.48 kB / 450.5 MB, free: 2.359 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.439e-05/0.347, allocations: 93 kB / 450.6 MB, free: 2.262 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.155e-05/0.347, allocations: 25.7 kB / 450.6 MB, free: 2.23 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.714e-05/0.3471, allocations: 88.05 kB / 450.7 MB, free: 2.141 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.522e-05/0.3471, allocations: 17.11 kB / 450.7 MB, free: 2.125 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.593e-06/0.3471, allocations: 4 kB / 450.7 MB, free: 2.121 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001031/0.3472, allocations: 322.9 kB / 451 MB, free: 1.797 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.106e-05/0.3473, allocations: 12 kB / 451.1 MB, free: 1.785 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.093e-05/0.3473, allocations: 34.56 kB / 451.1 MB, free: 1.742 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.736e-05/0.3474, allocations: 19.92 kB / 451.1 MB, free: 1.723 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.472e-06/0.3474, allocations: 1.75 kB / 451.1 MB, free: 1.723 MB / 330.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000115/0.3475, allocations: 79.22 kB / 451.2 MB, free: 1.641 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.494e-05/0.3475, allocations: 6.719 kB / 451.2 MB, free: 1.637 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.3475, allocations: 0 / 451.2 MB, free: 1.637 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.311e-05/0.3475, allocations: 4 kB / 451.2 MB, free: 1.633 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.626e-05/0.3476, allocations: 12 kB / 451.2 MB, free: 1.621 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.524e-06/0.3476, allocations: 3.984 kB / 451.2 MB, free: 1.617 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.166e-05/0.3477, allocations: 19.84 kB / 451.2 MB, free: 1.598 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.915e-06/0.3477, allocations: 0 / 451.2 MB, free: 1.598 MB / 330.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,$whenCondition3,$PRE.t_on,t_on,$PRE.t_off,t_off,$PRE.active,active) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.046e-05/0.3478, allocations: 123.6 kB / 451.4 MB, free: 1.473 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.049e-05/0.3478, allocations: 3.984 kB / 451.4 MB, free: 1.469 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.364e-05/0.3479, allocations: 8.094 kB / 451.4 MB, free: 1.465 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.3479, allocations: 3.984 kB / 451.4 MB, free: 1.461 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.3479, allocations: 0 / 451.4 MB, free: 1.461 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.3479, allocations: 0 / 451.4 MB, free: 1.461 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001097/0.348, allocations: 165.6 kB / 451.5 MB, free: 1.25 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.235e-06/0.348, allocations: 7.922 kB / 451.5 MB, free: 1.242 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.841e-05/0.348, allocations: 4 kB / 451.5 MB, free: 1.238 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.3481, allocations: 0 / 451.5 MB, free: 1.238 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.478e-06/0.3481, allocations: 4 kB / 451.5 MB, free: 1.234 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.083e-06/0.3481, allocations: 0 / 451.5 MB, free: 1.234 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.3481, allocations: 0 / 451.5 MB, free: 1.234 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001311/0.3482, allocations: 97.09 kB / 451.6 MB, free: 1.121 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.912e-05/0.3483, allocations: 88.97 kB / 451.7 MB, free: 1.016 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.751e-05/0.3483, allocations: 4 kB / 451.7 MB, free: 1.012 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.775e-05/0.3484, allocations: 7.984 kB / 451.7 MB, free: 1.004 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.419e-05/0.3484, allocations: 15.92 kB / 451.8 MB, free: 0.9883 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.884e-06/0.3484, allocations: 4 kB / 451.8 MB, free: 0.9844 MB / 330.7 MB Notification: Performance of sorting global known variables: time 3.748e-05/0.3485, allocations: 79.28 kB / 451.8 MB, free: 0.9062 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3485, allocations: 0 / 451.8 MB, free: 0.9062 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0001893/0.3487, allocations: 12 kB / 451.8 MB, free: 0.8945 MB / 330.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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004061/0.3491, allocations: 0.6496 MB / 452.5 MB, free: 224 kB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001062/0.3492, allocations: 48.78 kB / 452.5 MB, free: 176 kB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.3492, allocations: 0 / 452.5 MB, free: 176 kB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 4.285e-05/0.3493, allocations: 23.94 kB / 452.6 MB, free: 152 kB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.242e-05/0.3494, allocations: 3.891 kB / 452.6 MB, free: 152 kB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003371/0.3497, allocations: 115.4 kB / 452.7 MB, free: 0 / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002206/0.35, allocations: 0.6811 MB / 453.4 MB, free: 15.29 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 3.257e-05/0.35, allocations: 8.172 kB / 453.4 MB, free: 15.28 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.999e-05/0.35, allocations: 15.44 kB / 453.4 MB, free: 15.27 MB / 346.7 MB Notification: Performance of SimCode: time 4.91e-07/0.35, allocations: 0 / 453.4 MB, free: 15.27 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01228/0.3623, allocations: 1.217 MB / 454.6 MB, free: 14.12 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001758/0.3625, allocations: 133 kB / 454.7 MB, free: 13.91 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.624/1.987, allocations: 0 / 454.7 MB, free: 13.91 MB / 346.7 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/linux/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)