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.001422/0.001422, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001664/0.001664, allocations: 199.2 kB / 16.14 MB, free: 6.688 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.384/1.384, allocations: 205.1 MB / 222 MB, free: 5.012 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.00877/0.008769, allocations: 1.939 MB / 271.3 MB, free: 3.785 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.001314/0.001314, allocations: 68.38 kB / 329.3 MB, free: 33.19 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07376/0.07509, allocations: 47.14 MB / 376.4 MB, free: 2.012 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Controls.PatientController): time 0.00213/0.07724, allocations: 1.342 MB / 377.7 MB, free: 0.6523 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001211/0.07738, allocations: 39.83 kB / 377.8 MB, free: 0.6133 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.822e-05/0.07741, allocations: 0 / 377.8 MB, free: 0.6133 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 2.483e-05/0.07745, allocations: 0 / 377.8 MB, free: 0.6133 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 1.947e-05/0.07747, allocations: 0 / 377.8 MB, free: 0.6133 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001001/0.07758, allocations: 11.98 kB / 377.8 MB, free: 0.6016 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 5.175e-05/0.07764, allocations: 23.97 kB / 377.8 MB, free: 0.5781 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.622e-05/0.07768, allocations: 4 kB / 377.8 MB, free: 0.5742 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.662e-05/0.07771, allocations: 15.92 kB / 377.8 MB, free: 0.5586 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.476e-05/0.07776, allocations: 19.91 kB / 377.9 MB, free: 0.5391 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 1.607e-05/0.07778, allocations: 8 kB / 377.9 MB, free: 0.5312 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.638e-06/0.0778, allocations: 0 / 377.9 MB, free: 0.5312 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 1.874e-05/0.07782, allocations: 7.984 kB / 377.9 MB, free: 0.5234 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 3.414e-05/0.07786, allocations: 11.94 kB / 377.9 MB, free: 0.5117 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 4.913e-05/0.07791, allocations: 19.91 kB / 377.9 MB, free: 0.4922 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.945e-06/0.07792, allocations: 0 / 377.9 MB, free: 0.4922 MB / 270.1 MB Notification: Performance of FrontEnd: time 4.91e-07/0.07793, allocations: 0 / 377.9 MB, free: 0.4922 MB / 270.1 MB Notification: Performance of Transformations before backend: time 2.405e-06/0.07793, allocations: 0 / 377.9 MB, free: 0.4922 MB / 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.0004496/0.07839, allocations: 359.6 kB / 378.2 MB, free: 92 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.065e-05/0.07843, allocations: 12.03 kB / 378.3 MB, free: 80 kB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.531e-05/0.07848, allocations: 38.73 kB / 378.3 MB, free: 32 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.521e-05/0.07851, allocations: 4.938 kB / 378.3 MB, free: 28 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.109e-05/0.0786, allocations: 160.4 kB / 378.5 MB, free: 15.83 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.877e-05/0.07866, allocations: 30.27 kB / 378.5 MB, free: 15.8 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.389e-05/0.07868, allocations: 8.359 kB / 378.5 MB, free: 15.79 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001224/0.0788, allocations: 49.98 kB / 378.5 MB, free: 15.73 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.941e-06/0.07882, allocations: 0 / 378.5 MB, free: 15.73 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.114e-05/0.07884, allocations: 12 kB / 378.6 MB, free: 15.72 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.146e-06/0.07884, allocations: 0 / 378.6 MB, free: 15.72 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.593e-05/0.07892, allocations: 23.92 kB / 378.6 MB, free: 15.7 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003013/0.07923, allocations: 256.8 kB / 378.8 MB, free: 15.4 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.631e-05/0.07934, allocations: 34.62 kB / 378.9 MB, free: 15.36 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.374e-05/0.07939, allocations: 24.94 kB / 378.9 MB, free: 15.33 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.665e-06/0.07941, allocations: 4 kB / 378.9 MB, free: 15.32 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001594/0.07957, allocations: 79.2 kB / 379 MB, free: 15.23 MB / 286.1 MB Notification: Performance of pre-optimization done (n=7): time 1.342e-06/0.07958, allocations: 0 / 379 MB, free: 15.23 MB / 286.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002362/0.07982, allocations: 93.66 kB / 379.1 MB, free: 15.14 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.973e-05/0.07986, allocations: 59.41 kB / 379.1 MB, free: 15.07 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.113e-05/0.07992, allocations: 97.84 kB / 379.2 MB, free: 14.96 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.802e-05/0.07995, allocations: 29.7 kB / 379.2 MB, free: 14.93 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.057e-05/0.07999, allocations: 91.98 kB / 379.3 MB, free: 14.83 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.329e-05/0.08001, allocations: 15.8 kB / 379.4 MB, free: 14.82 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.825e-05/0.08005, allocations: 25.7 kB / 379.4 MB, free: 14.79 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 8.088e-05/0.08014, allocations: 322.8 kB / 379.7 MB, free: 14.46 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.717e-05/0.0802, allocations: 28.05 kB / 379.7 MB, free: 14.43 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.439e-05/0.08027, allocations: 46.44 kB / 379.8 MB, free: 14.38 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.603e-05/0.08037, allocations: 50.56 kB / 379.8 MB, free: 14.32 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.08038, allocations: 0 / 379.8 MB, free: 14.32 MB / 286.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001542/0.08054, allocations: 93.55 kB / 379.9 MB, free: 14.22 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.968e-06/0.08056, allocations: 4 kB / 379.9 MB, free: 14.22 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.08057, allocations: 0 / 379.9 MB, free: 14.22 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.573e-06/0.08058, allocations: 7.938 kB / 379.9 MB, free: 14.21 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.189e-05/0.08065, allocations: 7.984 kB / 379.9 MB, free: 14.2 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.837e-06/0.08066, allocations: 4 kB / 379.9 MB, free: 14.2 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.61e-05/0.08073, allocations: 11.98 kB / 379.9 MB, free: 14.19 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.015e-06/0.08074, allocations: 4 kB / 379.9 MB, free: 14.18 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 6.198e-05/0.08081, allocations: 121.8 kB / 380.1 MB, free: 14.05 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.868e-06/0.08083, allocations: 0 / 380.1 MB, free: 14.05 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.405e-05/0.08084, allocations: 3.969 kB / 380.1 MB, free: 14.05 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-06/0.08085, allocations: 0 / 380.1 MB, free: 14.05 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.838e-06/0.08086, allocations: 4 kB / 380.1 MB, free: 14.05 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.753e-06/0.08086, allocations: 0 / 380.1 MB, free: 14.05 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001027/0.08097, allocations: 169.6 kB / 380.2 MB, free: 13.84 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.08098, allocations: 0 / 380.2 MB, free: 13.84 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.733e-05/0.08101, allocations: 7.938 kB / 380.2 MB, free: 13.83 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.08102, allocations: 3.984 kB / 380.2 MB, free: 13.82 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.975e-06/0.08104, allocations: 11.98 kB / 380.3 MB, free: 13.81 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.123e-06/0.08104, allocations: 0 / 380.3 MB, free: 13.81 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.08105, allocations: 0 / 380.3 MB, free: 13.81 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001607/0.08121, allocations: 109.3 kB / 380.4 MB, free: 13.69 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.789e-05/0.08125, allocations: 81.05 kB / 380.4 MB, free: 13.59 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.26e-05/0.08127, allocations: 0 / 380.4 MB, free: 13.59 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.165e-05/0.08132, allocations: 11.98 kB / 380.5 MB, free: 13.58 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.874e-05/0.08136, allocations: 15.98 kB / 380.5 MB, free: 13.56 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.183e-06/0.08137, allocations: 4 kB / 380.5 MB, free: 13.56 MB / 286.1 MB Notification: Performance of sorting global known variables: time 3.297e-05/0.08141, allocations: 75.28 kB / 380.5 MB, free: 13.48 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.08141, allocations: 0 / 380.5 MB, free: 13.48 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0001818/0.0816, allocations: 15.98 kB / 380.6 MB, free: 13.47 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.0004437/0.08205, allocations: 0.6712 MB / 381.2 MB, free: 12.77 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001335/0.0822, allocations: 55.91 kB / 381.3 MB, free: 12.71 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.193e-06/0.08221, allocations: 7.875 kB / 381.3 MB, free: 12.71 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 6.127e-05/0.08227, allocations: 23.98 kB / 381.3 MB, free: 12.68 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001345/0.08241, allocations: 4 kB / 381.3 MB, free: 12.68 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001058/0.08348, allocations: 1.232 MB / 382.6 MB, free: 11.35 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002194/0.08371, allocations: 0.6809 MB / 383.2 MB, free: 10.64 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.307e-05/0.08375, allocations: 7.984 kB / 383.2 MB, free: 10.64 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.68e-05/0.08379, allocations: 15.44 kB / 383.3 MB, free: 10.62 MB / 286.1 MB Notification: Performance of SimCode: time 2.5e-07/0.0838, allocations: 0 / 383.3 MB, free: 10.62 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09211/0.1759, allocations: 1.307 MB / 384.6 MB, free: 9.289 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001659/0.1761, allocations: 159.3 kB / 384.7 MB, free: 9.035 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.6/1.776, allocations: 4 kB / 384.7 MB, free: 9.031 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)