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.001021/0.001021, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.005659/0.005659, allocations: 168.6 kB / 16.26 MB, free: 6.652 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.264/1.264, allocations: 205.4 MB / 222.4 MB, free: 5.559 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.007511/0.00751, allocations: 1.923 MB / 272.7 MB, free: 3.289 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.0004808/0.0004805, allocations: 12.22 kB / 331.6 MB, free: 32.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0604/0.06089, allocations: 48.1 MB / 379.7 MB, free: 0.7422 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Controls.PatientController): time 0.00111/0.06204, allocations: 1.019 MB / 380.7 MB, free: 15.71 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.000117/0.06217, allocations: 27.89 kB / 380.7 MB, free: 15.68 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.519e-05/0.06219, allocations: 4 kB / 380.7 MB, free: 15.68 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.028e-05/0.06221, allocations: 0 / 380.7 MB, free: 15.68 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 2.57e-05/0.06224, allocations: 0 / 380.7 MB, free: 15.68 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001063/0.06235, allocations: 7.984 kB / 380.8 MB, free: 15.67 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 6.453e-05/0.06243, allocations: 31.97 kB / 380.8 MB, free: 15.64 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.415e-05/0.06247, allocations: 4 kB / 380.8 MB, free: 15.64 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.917e-05/0.06251, allocations: 11.98 kB / 380.8 MB, free: 15.62 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.056e-05/0.06256, allocations: 15.92 kB / 380.8 MB, free: 15.61 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.37e-05/0.06258, allocations: 3.938 kB / 380.8 MB, free: 15.61 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.05e-05/0.0626, allocations: 4 kB / 380.8 MB, free: 15.6 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.938e-05/0.06262, allocations: 7.984 kB / 380.8 MB, free: 15.59 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.088e-05/0.06268, allocations: 45.61 kB / 380.9 MB, free: 15.54 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 4.748e-05/0.06273, allocations: 11.97 kB / 380.9 MB, free: 15.53 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.394e-06/0.06274, allocations: 0 / 380.9 MB, free: 15.53 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.06275, allocations: 8 kB / 380.9 MB, free: 15.52 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.286e-06/0.06275, allocations: 0 / 380.9 MB, free: 15.52 MB / 286.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.0004369/0.0632, allocations: 347.7 kB / 381.2 MB, free: 15.13 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.086e-05/0.06323, allocations: 11.97 kB / 381.2 MB, free: 15.12 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.117e-05/0.06329, allocations: 38.73 kB / 381.3 MB, free: 15.07 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.475e-05/0.06332, allocations: 4.938 kB / 381.3 MB, free: 15.07 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8e-05/0.06341, allocations: 172.3 kB / 381.5 MB, free: 14.86 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.655e-05/0.06346, allocations: 30.27 kB / 381.5 MB, free: 14.83 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.327e-05/0.06348, allocations: 4.375 kB / 381.5 MB, free: 14.82 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000117/0.0636, allocations: 57.97 kB / 381.5 MB, free: 14.76 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.193e-06/0.06362, allocations: 0 / 381.5 MB, free: 14.76 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.009e-05/0.06363, allocations: 7.938 kB / 381.6 MB, free: 14.75 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.607e-06/0.06364, allocations: 0 / 381.6 MB, free: 14.75 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.697e-05/0.06372, allocations: 23.98 kB / 381.6 MB, free: 14.73 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003163/0.06405, allocations: 260.9 kB / 381.8 MB, free: 14.43 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001039/0.06416, allocations: 42.56 kB / 381.9 MB, free: 14.38 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.96e-05/0.06422, allocations: 24.94 kB / 381.9 MB, free: 14.35 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.995e-06/0.06424, allocations: 0 / 381.9 MB, free: 14.35 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001586/0.0644, allocations: 79.22 kB / 382 MB, free: 14.26 MB / 286.1 MB Notification: Performance of pre-optimization done (n=7): time 1.303e-06/0.06441, allocations: 0 / 382 MB, free: 14.26 MB / 286.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002431/0.06466, allocations: 109.6 kB / 382.1 MB, free: 14.14 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.196e-05/0.0647, allocations: 51.41 kB / 382.1 MB, free: 14.08 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.889e-05/0.06476, allocations: 101.8 kB / 382.2 MB, free: 13.97 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.259e-05/0.06478, allocations: 25.7 kB / 382.3 MB, free: 13.94 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.237e-05/0.06482, allocations: 95.98 kB / 382.3 MB, free: 13.84 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.231e-05/0.06484, allocations: 7.812 kB / 382.4 MB, free: 13.84 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.66e-05/0.06487, allocations: 25.64 kB / 382.4 MB, free: 13.8 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.534e-05/0.06497, allocations: 322.9 kB / 382.7 MB, free: 13.48 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.571e-05/0.06503, allocations: 23.98 kB / 382.7 MB, free: 13.46 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.323e-05/0.0651, allocations: 38.56 kB / 382.8 MB, free: 13.41 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001056/0.06521, allocations: 62.5 kB / 382.8 MB, free: 13.34 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.06522, allocations: 4 kB / 382.8 MB, free: 13.34 MB / 286.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001608/0.06539, allocations: 89.81 kB / 382.9 MB, free: 13.24 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.091e-05/0.06541, allocations: 8 kB / 382.9 MB, free: 13.23 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.336e-06/0.06542, allocations: 0 / 382.9 MB, free: 13.23 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.275e-06/0.06543, allocations: 0 / 382.9 MB, free: 13.23 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.382e-05/0.0655, allocations: 20.05 kB / 382.9 MB, free: 13.21 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.312e-06/0.06551, allocations: 8.062 kB / 382.9 MB, free: 13.21 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.561e-05/0.06558, allocations: 4 kB / 383 MB, free: 13.2 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.945e-06/0.0656, allocations: 7.938 kB / 383 MB, free: 13.2 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.232e-05/0.06568, allocations: 125.7 kB / 383.1 MB, free: 13.06 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.626e-06/0.06569, allocations: 0 / 383.1 MB, free: 13.06 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.619e-05/0.06571, allocations: 8.156 kB / 383.1 MB, free: 13.06 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.06572, allocations: 4 kB / 383.1 MB, free: 13.05 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.06573, allocations: 11.94 kB / 383.1 MB, free: 13.04 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.295e-06/0.06574, allocations: 0 / 383.1 MB, free: 13.04 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.363e-05/0.06583, allocations: 161.6 kB / 383.3 MB, free: 12.84 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.06584, allocations: 0 / 383.3 MB, free: 12.84 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.702e-05/0.06587, allocations: 4 kB / 383.3 MB, free: 12.83 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.06588, allocations: 4 kB / 383.3 MB, free: 12.83 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.262e-06/0.06589, allocations: 0 / 383.3 MB, free: 12.83 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.093e-06/0.0659, allocations: 0 / 383.3 MB, free: 12.83 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.0659, allocations: 0 / 383.3 MB, free: 12.83 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001707/0.06608, allocations: 128.9 kB / 383.4 MB, free: 12.68 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.452e-05/0.06612, allocations: 81.05 kB / 383.5 MB, free: 12.59 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.28e-05/0.06614, allocations: 4 kB / 383.5 MB, free: 12.58 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.02e-05/0.0662, allocations: 7.984 kB / 383.5 MB, free: 12.57 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.688e-05/0.06624, allocations: 15.92 kB / 383.5 MB, free: 12.56 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.572e-06/0.06625, allocations: 4 kB / 383.5 MB, free: 12.55 MB / 286.1 MB Notification: Performance of sorting global known variables: time 2.575e-05/0.06628, allocations: 79.28 kB / 383.6 MB, free: 12.48 MB / 286.1 MB Notification: Performance of sort global known variables: time 1e-07/0.06629, allocations: 0 / 383.6 MB, free: 12.48 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0001752/0.06647, allocations: 12 kB / 383.6 MB, free: 12.46 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.0004369/0.06691, allocations: 0.671 MB / 384.3 MB, free: 11.77 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001419/0.06706, allocations: 55.91 kB / 384.3 MB, free: 11.71 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.06707, allocations: 0 / 384.3 MB, free: 11.71 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 6.759e-05/0.06714, allocations: 35.91 kB / 384.4 MB, free: 11.68 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001161/0.06727, allocations: 192 / 384.4 MB, free: 11.68 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009908/0.06827, allocations: 1.261 MB / 385.6 MB, free: 10.32 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001894/0.06847, allocations: 0.677 MB / 386.3 MB, free: 9.613 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 2.544e-05/0.0685, allocations: 4 kB / 386.3 MB, free: 9.609 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.116e-05/0.06854, allocations: 15.44 kB / 386.3 MB, free: 9.594 MB / 286.1 MB Notification: Performance of SimCode: time 2.91e-07/0.06854, allocations: 0 / 386.3 MB, free: 9.594 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.311/0.3795, allocations: 1.257 MB / 387.6 MB, free: 8.344 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000233/0.3798, allocations: 158.5 kB / 387.7 MB, free: 8.09 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.807/2.186, allocations: 0 / 387.7 MB, free: 8.09 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)