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.001114/0.001114, allocations: 109.4 kB / 15.99 MB, free: 6.359 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.001079/0.001079, allocations: 189.2 kB / 16.91 MB, free: 6.195 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.316/1.316, allocations: 205.1 MB / 222.8 MB, free: 4.707 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.00833/0.00833, allocations: 1.932 MB / 272 MB, free: 3.5 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.001352/0.001352, allocations: 63.91 kB / 330 MB, free: 33.15 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07417/0.07554, allocations: 47.15 MB / 377.1 MB, free: 1.961 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Controls.PatientController): time 0.002374/0.07796, allocations: 1.338 MB / 378.5 MB, free: 0.6055 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001489/0.07812, allocations: 31.89 kB / 378.5 MB, free: 0.5742 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.43e-05/0.07815, allocations: 0 / 378.5 MB, free: 0.5742 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 3.265e-05/0.07819, allocations: 0 / 378.5 MB, free: 0.5742 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 3.008e-05/0.07824, allocations: 4 kB / 378.5 MB, free: 0.5703 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001462/0.07839, allocations: 11.98 kB / 378.5 MB, free: 0.5586 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 6.497e-05/0.07846, allocations: 23.92 kB / 378.5 MB, free: 0.5352 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.994e-05/0.07851, allocations: 11.98 kB / 378.6 MB, free: 0.5234 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.01e-05/0.07855, allocations: 4 kB / 378.6 MB, free: 0.5195 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.671e-05/0.07861, allocations: 27.83 kB / 378.6 MB, free: 0.4922 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 1.914e-05/0.07864, allocations: 4 kB / 378.6 MB, free: 500 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.748e-06/0.07865, allocations: 0 / 378.6 MB, free: 500 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 2.474e-05/0.07868, allocations: 11.98 kB / 378.6 MB, free: 488 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 4.446e-05/0.07873, allocations: 11.94 kB / 378.6 MB, free: 476 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 4.983e-05/0.07878, allocations: 19.97 kB / 378.6 MB, free: 456 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.07879, allocations: 0 / 378.6 MB, free: 456 kB / 270.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.0788, allocations: 0 / 378.6 MB, free: 456 kB / 270.1 MB Notification: Performance of Transformations before backend: time 5.461e-06/0.07881, allocations: 0 / 378.6 MB, free: 456 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.0005529/0.07937, allocations: 343.8 kB / 379 MB, free: 60 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.517e-05/0.07941, allocations: 11.89 kB / 379 MB, free: 48 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.771e-05/0.07945, allocations: 8.844 kB / 379 MB, free: 40 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001057/0.07956, allocations: 164.4 kB / 379.1 MB, free: 15.84 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.942e-05/0.07963, allocations: 34.27 kB / 379.2 MB, free: 15.8 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.53e-05/0.07965, allocations: 4.375 kB / 379.2 MB, free: 15.8 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001329/0.07979, allocations: 50.22 kB / 379.2 MB, free: 15.74 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.031e-05/0.07981, allocations: 7.875 kB / 379.2 MB, free: 15.73 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.232e-05/0.07982, allocations: 8 kB / 379.2 MB, free: 15.73 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.07983, allocations: 0 / 379.2 MB, free: 15.73 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.297e-05/0.07991, allocations: 15.97 kB / 379.3 MB, free: 15.71 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001586/0.08008, allocations: 169.7 kB / 379.4 MB, free: 15.5 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001068/0.08019, allocations: 34.61 kB / 379.5 MB, free: 15.45 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.542e-05/0.08025, allocations: 16.94 kB / 379.5 MB, free: 15.43 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.696e-06/0.08026, allocations: 0 / 379.5 MB, free: 15.43 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00019/0.08046, allocations: 91.23 kB / 379.6 MB, free: 15.33 MB / 286.1 MB Notification: Performance of pre-optimization done (n=7): time 1.312e-06/0.08047, allocations: 0 / 379.6 MB, free: 15.33 MB / 286.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002584/0.08073, allocations: 97.56 kB / 379.7 MB, free: 15.23 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.547e-05/0.08077, allocations: 55.34 kB / 379.7 MB, free: 15.16 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.94e-05/0.08088, allocations: 101.8 kB / 379.8 MB, free: 15.05 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.591e-05/0.0809, allocations: 25.7 kB / 379.8 MB, free: 15.02 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.927e-05/0.08095, allocations: 88.05 kB / 379.9 MB, free: 14.93 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.644e-05/0.08098, allocations: 15.95 kB / 379.9 MB, free: 14.92 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.048e-05/0.08102, allocations: 33.72 kB / 380 MB, free: 14.88 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001005/0.08113, allocations: 310.8 kB / 380.3 MB, free: 14.57 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.702e-05/0.08119, allocations: 23.92 kB / 380.3 MB, free: 14.54 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.312e-05/0.08126, allocations: 38.56 kB / 380.3 MB, free: 14.5 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001168/0.08139, allocations: 62.73 kB / 380.4 MB, free: 14.43 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.0814, allocations: 0 / 380.4 MB, free: 14.43 MB / 286.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001512/0.08155, allocations: 97.39 kB / 380.5 MB, free: 14.32 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.415e-05/0.08157, allocations: 7.938 kB / 380.5 MB, free: 14.32 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.08158, allocations: 0 / 380.5 MB, free: 14.32 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.172e-05/0.0816, allocations: 0 / 380.5 MB, free: 14.32 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.8e-05/0.08168, allocations: 11.98 kB / 380.5 MB, free: 14.3 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.0817, allocations: 0 / 380.5 MB, free: 14.3 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.585e-05/0.08177, allocations: 16.05 kB / 380.5 MB, free: 14.29 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.454e-06/0.08178, allocations: 0 / 380.5 MB, free: 14.29 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 7.969e-05/0.08187, allocations: 113.8 kB / 380.6 MB, free: 14.17 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.323e-05/0.08188, allocations: 11.84 kB / 380.7 MB, free: 14.16 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.962e-05/0.08191, allocations: 7.969 kB / 380.7 MB, free: 14.15 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-06/0.08191, allocations: 0 / 380.7 MB, free: 14.15 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.08192, allocations: 0 / 380.7 MB, free: 14.15 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-06/0.08193, allocations: 3.938 kB / 380.7 MB, free: 14.15 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001078/0.08204, allocations: 165.7 kB / 380.8 MB, free: 13.94 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.08205, allocations: 0 / 380.8 MB, free: 13.94 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.708e-05/0.08208, allocations: 4 kB / 380.8 MB, free: 13.93 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.619e-06/0.08209, allocations: 3.938 kB / 380.8 MB, free: 13.93 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.919e-06/0.08211, allocations: 3.984 kB / 380.8 MB, free: 13.93 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.08211, allocations: 0 / 380.8 MB, free: 13.93 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.08212, allocations: 0 / 380.8 MB, free: 13.93 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000161/0.08228, allocations: 105.1 kB / 380.9 MB, free: 13.8 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.345e-05/0.08234, allocations: 92.95 kB / 381 MB, free: 13.7 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.799e-05/0.08236, allocations: 7.984 kB / 381 MB, free: 13.69 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.15e-05/0.08242, allocations: 8 kB / 381.1 MB, free: 13.68 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.549e-05/0.08247, allocations: 11.92 kB / 381.1 MB, free: 13.67 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.881e-06/0.08248, allocations: 0 / 381.1 MB, free: 13.67 MB / 286.1 MB Notification: Performance of sorting global known variables: time 3.313e-05/0.08252, allocations: 83.28 kB / 381.1 MB, free: 13.59 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.08253, allocations: 3.938 kB / 381.1 MB, free: 13.58 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0001841/0.08271, allocations: 8 kB / 381.2 MB, free: 13.57 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 8.057e-05/0.0828, allocations: 99.33 kB / 381.3 MB, free: 13.47 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001594/0.08297, allocations: 56.38 kB / 381.3 MB, free: 13.41 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.08298, allocations: 0 / 381.3 MB, free: 13.41 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 6.377e-05/0.08304, allocations: 24.14 kB / 381.3 MB, free: 13.39 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001335/0.08319, allocations: 4 kB / 381.3 MB, free: 13.39 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003045/0.0835, allocations: 167.5 kB / 381.5 MB, free: 13.19 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002335/0.08374, allocations: 0.6844 MB / 382.2 MB, free: 12.48 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.958e-05/0.08378, allocations: 11.44 kB / 382.2 MB, free: 12.47 MB / 286.1 MB Notification: Performance of SimCode: time 2.31e-07/0.08378, allocations: 0 / 382.2 MB, free: 12.47 MB / 286.1 MB Notification: Performance of Templates: time 0.0018/0.08559, allocations: 0.697 MB / 382.9 MB, free: 11.77 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)