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.001173/0.001173, allocations: 112.6 kB / 16.37 MB, free: 6 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.001201/0.001201, allocations: 196 kB / 17.31 MB, free: 5.613 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.447/1.447, allocations: 205.1 MB / 223.2 MB, free: 12.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.01056/0.01056, allocations: 1.931 MB / 272.5 MB, free: 10.1 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.001594/0.001594, allocations: 67.89 kB / 331.3 MB, free: 15.21 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2745/0.2761, allocations: 47.12 MB / 378.4 MB, free: 53.09 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Controls.PatientController): time 0.002499/0.2787, allocations: 1.277 MB / 379.7 MB, free: 52.9 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001748/0.2789, allocations: 31.75 kB / 379.7 MB, free: 52.89 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.929e-05/0.2789, allocations: 0 / 379.7 MB, free: 52.89 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.63e-05/0.279, allocations: 2.906 kB / 379.7 MB, free: 52.89 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 2.607e-05/0.279, allocations: 0 / 379.7 MB, free: 52.89 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000135/0.2791, allocations: 13 kB / 379.7 MB, free: 52.89 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 7.543e-05/0.2792, allocations: 27.33 kB / 379.8 MB, free: 52.89 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.397e-05/0.2793, allocations: 0.5625 kB / 379.8 MB, free: 52.89 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.516e-05/0.2793, allocations: 17.27 kB / 379.8 MB, free: 52.89 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.313e-05/0.2794, allocations: 18.84 kB / 379.8 MB, free: 52.89 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.523e-05/0.2794, allocations: 2.281 kB / 379.8 MB, free: 52.89 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.148e-05/0.2794, allocations: 2.594 kB / 379.8 MB, free: 52.89 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.416e-05/0.2795, allocations: 11.64 kB / 379.8 MB, free: 52.89 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.251e-05/0.2795, allocations: 16.66 kB / 379.8 MB, free: 52.89 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 6.383e-05/0.2796, allocations: 12.11 kB / 379.8 MB, free: 52.89 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.2796, allocations: 0.6562 kB / 379.8 MB, free: 52.89 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.2796, allocations: 0.5625 kB / 379.8 MB, free: 52.89 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.839e-06/0.2796, allocations: 0.5312 kB / 379.8 MB, free: 52.89 MB / 318.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.0005014/0.2801, allocations: 354.4 kB / 380.2 MB, free: 52.54 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.097e-05/0.2802, allocations: 12.67 kB / 380.2 MB, free: 52.54 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.812e-05/0.2802, allocations: 7.734 kB / 380.2 MB, free: 52.54 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.965e-05/0.2803, allocations: 165.3 kB / 380.4 MB, free: 52.34 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.619e-05/0.2803, allocations: 34.55 kB / 380.4 MB, free: 52.31 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.497e-05/0.2804, allocations: 6.375 kB / 380.4 MB, free: 52.31 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001268/0.2805, allocations: 52.17 kB / 380.5 MB, free: 52.28 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.897e-06/0.2805, allocations: 3.938 kB / 380.5 MB, free: 52.28 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.237e-05/0.2805, allocations: 1.25 kB / 380.5 MB, free: 52.28 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.54e-06/0.2805, allocations: 0 / 380.5 MB, free: 52.28 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.302e-05/0.2806, allocations: 15.52 kB / 380.5 MB, free: 52.28 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001282/0.2807, allocations: 165.5 kB / 380.6 MB, free: 52.09 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001049/0.2809, allocations: 39.48 kB / 380.7 MB, free: 52.07 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.405e-05/0.2809, allocations: 22.19 kB / 380.7 MB, free: 52.06 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.023e-05/0.2809, allocations: 2.875 kB / 380.7 MB, free: 52.06 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001656/0.2811, allocations: 81.42 kB / 380.8 MB, free: 52 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.473e-06/0.2811, allocations: 3.562 kB / 380.8 MB, free: 52 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.000251/0.2814, allocations: 99.31 kB / 380.9 MB, free: 51.97 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.812e-05/0.2814, allocations: 58.06 kB / 380.9 MB, free: 51.91 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.108e-05/0.2815, allocations: 95.95 kB / 381 MB, free: 51.81 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.138e-05/0.2815, allocations: 31.98 kB / 381.1 MB, free: 51.78 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.613e-05/0.2815, allocations: 81.2 kB / 381.1 MB, free: 51.7 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.62e-05/0.2815, allocations: 23.39 kB / 381.2 MB, free: 51.68 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.6e-05/0.2816, allocations: 21.81 kB / 381.2 MB, free: 51.67 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.99e-05/0.2816, allocations: 322 kB / 381.5 MB, free: 51.36 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.635e-05/0.2817, allocations: 15.66 kB / 381.5 MB, free: 51.36 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.299e-05/0.2818, allocations: 44.02 kB / 381.6 MB, free: 51.33 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001016/0.2819, allocations: 56.48 kB / 381.6 MB, free: 51.31 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.2819, allocations: 0.5625 kB / 381.6 MB, free: 51.31 MB / 318.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001538/0.282, allocations: 95.78 kB / 381.7 MB, free: 51.27 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.667e-05/0.2821, allocations: 9.844 kB / 381.7 MB, free: 51.27 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.2821, allocations: 1.062 kB / 381.7 MB, free: 51.27 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.25e-05/0.2821, allocations: 1.438 kB / 381.7 MB, free: 51.27 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.56e-05/0.2822, allocations: 12.83 kB / 381.7 MB, free: 51.26 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.161e-06/0.2822, allocations: 3.156 kB / 381.7 MB, free: 51.26 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.264e-05/0.2822, allocations: 10.97 kB / 381.8 MB, free: 51.26 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.145e-06/0.2823, allocations: 2.281 kB / 381.8 MB, free: 51.26 MB / 318.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 5.738e-05/0.2823, allocations: 121.7 kB / 381.9 MB, free: 51.14 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.194e-05/0.2823, allocations: 10.31 kB / 381.9 MB, free: 51.14 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.299e-05/0.2824, allocations: 5.406 kB / 381.9 MB, free: 51.14 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.534e-06/0.2824, allocations: 5.281 kB / 381.9 MB, free: 51.13 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.932e-06/0.2824, allocations: 1.25 kB / 381.9 MB, free: 51.13 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.2824, allocations: 1.859 kB / 381.9 MB, free: 51.13 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.294e-05/0.2825, allocations: 164.9 kB / 382.1 MB, free: 50.94 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.2825, allocations: 0 / 382.1 MB, free: 50.94 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.717e-05/0.2825, allocations: 7.453 kB / 382.1 MB, free: 50.94 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.417e-06/0.2825, allocations: 5.125 kB / 382.1 MB, free: 50.94 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.626e-06/0.2825, allocations: 0 / 382.1 MB, free: 50.94 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.2826, allocations: 1.062 kB / 382.1 MB, free: 50.94 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.2826, allocations: 0 / 382.1 MB, free: 50.94 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001527/0.2827, allocations: 109.9 kB / 382.2 MB, free: 50.87 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.921e-05/0.2827, allocations: 82.27 kB / 382.3 MB, free: 50.77 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.611e-05/0.2828, allocations: 2.938 kB / 382.3 MB, free: 50.77 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.852e-05/0.2828, allocations: 7.688 kB / 382.3 MB, free: 50.77 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.52e-05/0.2829, allocations: 9.562 kB / 382.3 MB, free: 50.77 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.127e-06/0.2829, allocations: 7.016 kB / 382.3 MB, free: 50.77 MB / 318.1 MB Notification: Performance of sorting global known variables: time 2.074e-05/0.2829, allocations: 80.92 kB / 382.4 MB, free: 50.7 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.412e-06/0.2829, allocations: 1.125 kB / 382.4 MB, free: 50.7 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0001873/0.2831, allocations: 12.39 kB / 382.4 MB, free: 50.7 MB / 318.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.957e-05/0.2832, allocations: 94.53 kB / 382.5 MB, free: 50.61 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001753/0.2834, allocations: 50.61 kB / 382.5 MB, free: 50.61 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.2834, allocations: 0 / 382.5 MB, free: 50.61 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 7.307e-05/0.2835, allocations: 31.11 kB / 382.6 MB, free: 50.61 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001375/0.2836, allocations: 11.41 kB / 382.6 MB, free: 50.6 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002846/0.2839, allocations: 124.8 kB / 382.7 MB, free: 50.5 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001092/0.284, allocations: 0.6825 MB / 383.4 MB, free: 49.8 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 2.786e-05/0.2841, allocations: 7.625 kB / 383.4 MB, free: 49.8 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.842e-05/0.2841, allocations: 11 kB / 383.4 MB, free: 49.79 MB / 318.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2841, allocations: 0 / 383.4 MB, free: 49.79 MB / 318.1 MB Notification: Performance of Templates: time 0.00288/0.287, allocations: 0.6202 MB / 384 MB, free: 49.75 MB / 318.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 -s cvode -lv LOG_STATS > MEV_MEV.Controls.PatientController.pipe 2>&1)