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: translateModel(MEV.Controls.PatientController,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="MEV_MEV.Controls.PatientController") translateModel(MEV.Controls.PatientController,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="MEV_MEV.Controls.PatientController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009861/0.0009861, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001041/0.001041, allocations: 195.1 kB / 16.25 MB, free: 6.621 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.205/1.205, allocations: 205.1 MB / 222.1 MB, free: 4.691 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.007139/0.007139, allocations: 1.932 MB / 271.4 MB, free: 3.516 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.001207/0.001207, allocations: 63.91 kB / 329.3 MB, free: 33.16 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0625/0.06372, allocations: 47.14 MB / 376.5 MB, free: 1.988 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Controls.PatientController): time 0.002065/0.06582, allocations: 1.357 MB / 377.8 MB, free: 0.6133 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001195/0.06596, allocations: 31.88 kB / 377.9 MB, free: 0.582 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.012e-05/0.06599, allocations: 0 / 377.9 MB, free: 0.582 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 2.661e-05/0.06603, allocations: 0 / 377.9 MB, free: 0.582 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 2.211e-05/0.06606, allocations: 0 / 377.9 MB, free: 0.582 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000111/0.06617, allocations: 11.98 kB / 377.9 MB, free: 0.5703 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 5.527e-05/0.06623, allocations: 19.98 kB / 377.9 MB, free: 0.5508 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.36e-05/0.06628, allocations: 4 kB / 377.9 MB, free: 0.5469 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.49e-05/0.06632, allocations: 15.92 kB / 377.9 MB, free: 0.5312 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.906e-05/0.06638, allocations: 27.89 kB / 377.9 MB, free: 0.5039 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 1.268e-05/0.0664, allocations: 4 kB / 377.9 MB, free: 0.5 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.056e-05/0.06641, allocations: 4 kB / 377.9 MB, free: 0.4961 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 1.858e-05/0.06643, allocations: 4 kB / 377.9 MB, free: 0.4922 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 3.677e-05/0.06648, allocations: 15.92 kB / 378 MB, free: 488 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 5.079e-05/0.06653, allocations: 15.97 kB / 378 MB, free: 472 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.745e-06/0.06654, allocations: 0 / 378 MB, free: 472 kB / 270.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.06654, allocations: 0 / 378 MB, free: 472 kB / 270.1 MB Notification: Performance of Transformations before backend: time 5.721e-06/0.06655, allocations: 0 / 378 MB, free: 472 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.0004839/0.06704, allocations: 359.7 kB / 378.3 MB, free: 60 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.906e-05/0.06709, allocations: 11.89 kB / 378.3 MB, free: 48 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.448e-05/0.06713, allocations: 8.844 kB / 378.3 MB, free: 40 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.502e-05/0.06722, allocations: 164.4 kB / 378.5 MB, free: 15.84 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.67e-05/0.06728, allocations: 30.27 kB / 378.5 MB, free: 15.8 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.101e-05/0.0673, allocations: 384 / 378.5 MB, free: 15.8 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001107/0.06741, allocations: 50.23 kB / 378.6 MB, free: 15.75 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.552e-06/0.06743, allocations: 7.938 kB / 378.6 MB, free: 15.74 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.965e-06/0.06744, allocations: 0 / 378.6 MB, free: 15.74 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.075e-06/0.06745, allocations: 0 / 378.6 MB, free: 15.74 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.01e-05/0.06752, allocations: 23.92 kB / 378.6 MB, free: 15.72 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001337/0.06766, allocations: 157.7 kB / 378.8 MB, free: 15.52 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.648e-05/0.06776, allocations: 42.59 kB / 378.8 MB, free: 15.46 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.117e-05/0.06781, allocations: 16.86 kB / 378.8 MB, free: 15.45 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.915e-06/0.06783, allocations: 4 kB / 378.8 MB, free: 15.44 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001504/0.06798, allocations: 83.31 kB / 378.9 MB, free: 15.35 MB / 286.1 MB Notification: Performance of pre-optimization done (n=7): time 1.353e-06/0.06799, allocations: 3.938 kB / 378.9 MB, free: 15.34 MB / 286.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002264/0.06823, allocations: 97.56 kB / 379 MB, free: 15.24 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.052e-05/0.06826, allocations: 55.41 kB / 379.1 MB, free: 15.18 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.584e-05/0.06835, allocations: 101.9 kB / 379.2 MB, free: 15.07 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.503e-05/0.06837, allocations: 25.7 kB / 379.2 MB, free: 15.04 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.364e-05/0.06842, allocations: 92.03 kB / 379.3 MB, free: 14.94 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.781e-05/0.06844, allocations: 19.83 kB / 379.3 MB, free: 14.92 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.877e-05/0.06848, allocations: 21.72 kB / 379.3 MB, free: 14.89 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000114/0.0686, allocations: 318.8 kB / 379.6 MB, free: 14.57 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.399e-05/0.06866, allocations: 15.98 kB / 379.6 MB, free: 14.56 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.132e-05/0.06873, allocations: 46.62 kB / 379.7 MB, free: 14.5 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.865e-05/0.06884, allocations: 54.56 kB / 379.7 MB, free: 14.44 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.06885, allocations: 0 / 379.7 MB, free: 14.44 MB / 286.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001494/0.069, allocations: 89.52 kB / 379.8 MB, free: 14.35 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.168e-05/0.06902, allocations: 12 kB / 379.8 MB, free: 14.34 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.089e-06/0.06903, allocations: 8 kB / 379.9 MB, free: 14.33 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.088e-05/0.06905, allocations: 0 / 379.9 MB, free: 14.33 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.737e-05/0.06912, allocations: 11.94 kB / 379.9 MB, free: 14.32 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.659e-06/0.06913, allocations: 0 / 379.9 MB, free: 14.32 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.629e-05/0.0692, allocations: 11.98 kB / 379.9 MB, free: 14.3 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.755e-06/0.06921, allocations: 7.938 kB / 379.9 MB, free: 14.3 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 ($whenCondition2,$whenCondition3,active,$PRE.active,t_off,$PRE.t_off,t_on,$PRE.t_on,$whenCondition1) * 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.955e-05/0.06929, allocations: 113.8 kB / 380 MB, free: 14.18 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.197e-05/0.06931, allocations: 15.83 kB / 380 MB, free: 14.16 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.595e-05/0.06933, allocations: 3.969 kB / 380 MB, free: 14.16 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.06933, allocations: 4 kB / 380 MB, free: 14.16 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.996e-06/0.06934, allocations: 0 / 380 MB, free: 14.16 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.06935, allocations: 0 / 380 MB, free: 14.16 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.21e-05/0.06944, allocations: 161.7 kB / 380.2 MB, free: 13.95 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.51e-07/0.06945, allocations: 0 / 380.2 MB, free: 13.95 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.376e-05/0.06949, allocations: 11.92 kB / 380.2 MB, free: 13.94 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.947e-06/0.0695, allocations: 7.922 kB / 380.2 MB, free: 13.93 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.386e-06/0.06951, allocations: 4 kB / 380.2 MB, free: 13.93 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.06952, allocations: 4 kB / 380.2 MB, free: 13.92 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.06952, allocations: 0 / 380.2 MB, free: 13.92 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001472/0.06967, allocations: 105.1 kB / 380.3 MB, free: 13.8 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.427e-05/0.06972, allocations: 84.95 kB / 380.4 MB, free: 13.7 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.44e-05/0.06974, allocations: 4.188 kB / 380.4 MB, free: 13.7 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.829e-05/0.06979, allocations: 3.984 kB / 380.4 MB, free: 13.69 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.439e-05/0.06983, allocations: 11.94 kB / 380.4 MB, free: 13.68 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.654e-06/0.06985, allocations: 11.98 kB / 380.4 MB, free: 13.67 MB / 286.1 MB Notification: Performance of sorting global known variables: time 2.609e-05/0.06988, allocations: 75.28 kB / 380.5 MB, free: 13.59 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.06988, allocations: 4 kB / 380.5 MB, free: 13.59 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0001749/0.07006, allocations: 8 kB / 380.5 MB, free: 13.58 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 ($whenCondition2,$whenCondition3,$whenCondition1,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 6.763e-05/0.07014, allocations: 95.19 kB / 380.6 MB, free: 13.48 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001575/0.0703, allocations: 56.38 kB / 380.7 MB, free: 13.43 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.07031, allocations: 4.219 kB / 380.7 MB, free: 13.42 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 6.012e-05/0.07037, allocations: 23.98 kB / 380.7 MB, free: 13.4 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001208/0.0705, allocations: 4 kB / 380.7 MB, free: 13.39 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002621/0.07077, allocations: 133.8 kB / 380.8 MB, free: 13.24 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001948/0.07098, allocations: 0.6805 MB / 381.5 MB, free: 12.53 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.079e-05/0.07101, allocations: 11.94 kB / 381.5 MB, free: 12.52 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.244e-05/0.07105, allocations: 15.44 kB / 381.5 MB, free: 12.5 MB / 286.1 MB Notification: Performance of SimCode: time 3.51e-07/0.07105, allocations: 0 / 381.5 MB, free: 12.5 MB / 286.1 MB Notification: Performance of Templates: time 0.001987/0.07305, allocations: 0.568 MB / 382.1 MB, free: 11.94 MB / 286.1 MB make -j1 -f MEV_MEV.Controls.PatientController.makefile (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 & ./MEV_MEV.Controls.PatientController -abortSlowSimulation -alarm=480 -lv LOG_STATS > MEV_MEV.Controls.PatientController.pipe 2>&1)