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.001012/0.001012, allocations: 115.3 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.001008/0.001008, allocations: 193.3 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.185/1.185, allocations: 205.1 MB / 223.2 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.008289/0.008289, allocations: 1.928 MB / 272.5 MB, free: 10.09 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.001399/0.001399, allocations: 63.91 kB / 331.3 MB, free: 15.21 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1728/0.1742, allocations: 47.12 MB / 378.4 MB, free: 53.06 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Controls.PatientController): time 0.001832/0.1761, allocations: 1.278 MB / 379.7 MB, free: 52.86 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001224/0.1762, allocations: 28.86 kB / 379.7 MB, free: 52.85 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.467e-05/0.1763, allocations: 0 / 379.7 MB, free: 52.85 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.69e-05/0.1763, allocations: 5.359 kB / 379.7 MB, free: 52.85 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 2.45e-05/0.1763, allocations: 3.188 kB / 379.7 MB, free: 52.85 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001076/0.1764, allocations: 12.47 kB / 379.7 MB, free: 52.85 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 5.558e-05/0.1765, allocations: 22.19 kB / 379.8 MB, free: 52.85 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.105e-05/0.1766, allocations: 4.562 kB / 379.8 MB, free: 52.85 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.995e-05/0.1766, allocations: 18.45 kB / 379.8 MB, free: 52.85 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.755e-05/0.1766, allocations: 18.64 kB / 379.8 MB, free: 52.84 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.355e-05/0.1767, allocations: 3.656 kB / 379.8 MB, free: 52.84 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.566e-06/0.1767, allocations: 0.5938 kB / 379.8 MB, free: 52.84 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.925e-05/0.1767, allocations: 9.594 kB / 379.8 MB, free: 52.84 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.677e-05/0.1767, allocations: 16.19 kB / 379.8 MB, free: 52.84 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 5.362e-05/0.1768, allocations: 22.33 kB / 379.8 MB, free: 52.84 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.1768, allocations: 0.6562 kB / 379.9 MB, free: 52.84 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.1768, allocations: 0 / 379.9 MB, free: 52.84 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.296e-06/0.1768, allocations: 0 / 379.9 MB, free: 52.84 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.0004025/0.1772, allocations: 355.2 kB / 380.2 MB, free: 52.49 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.8e-05/0.1773, allocations: 13.55 kB / 380.2 MB, free: 52.49 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.924e-05/0.1773, allocations: 2.469 kB / 380.2 MB, free: 52.49 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.608e-05/0.1773, allocations: 162.3 kB / 380.4 MB, free: 52.29 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.536e-05/0.1774, allocations: 33.22 kB / 380.4 MB, free: 52.26 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.359e-05/0.1774, allocations: 3.625 kB / 380.4 MB, free: 52.26 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001069/0.1775, allocations: 52.25 kB / 380.5 MB, free: 52.23 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.264e-06/0.1775, allocations: 7.953 kB / 380.5 MB, free: 52.23 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.357e-06/0.1776, allocations: 3.453 kB / 380.5 MB, free: 52.23 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.987e-06/0.1776, allocations: 0 / 380.5 MB, free: 52.23 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.766e-05/0.1776, allocations: 21.06 kB / 380.5 MB, free: 52.23 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.64e-05/0.1777, allocations: 160.9 kB / 380.6 MB, free: 52.04 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.087e-05/0.1778, allocations: 36.73 kB / 380.7 MB, free: 52.02 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.109e-05/0.1779, allocations: 22.27 kB / 380.7 MB, free: 52.01 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.508e-06/0.1779, allocations: 1.062 kB / 380.7 MB, free: 52.01 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001444/0.1781, allocations: 87.25 kB / 380.8 MB, free: 51.95 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.903e-06/0.1781, allocations: 1.25 kB / 380.8 MB, free: 51.95 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.000222/0.1783, allocations: 99.22 kB / 380.9 MB, free: 51.92 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.149e-05/0.1783, allocations: 56.88 kB / 380.9 MB, free: 51.86 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.317e-05/0.1784, allocations: 98.98 kB / 381 MB, free: 51.76 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.218e-06/0.1784, allocations: 30.77 kB / 381.1 MB, free: 51.73 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.902e-05/0.1784, allocations: 87.83 kB / 381.2 MB, free: 51.64 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.21e-05/0.1784, allocations: 19.59 kB / 381.2 MB, free: 51.63 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.282e-05/0.1785, allocations: 22.84 kB / 381.2 MB, free: 51.62 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.24e-05/0.1785, allocations: 316 kB / 381.5 MB, free: 51.3 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.246e-05/0.1786, allocations: 20.06 kB / 381.5 MB, free: 51.3 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.383e-05/0.1786, allocations: 41.34 kB / 381.6 MB, free: 51.28 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.24e-05/0.1787, allocations: 53.09 kB / 381.6 MB, free: 51.26 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.1787, allocations: 1.188 kB / 381.6 MB, free: 51.26 MB / 318.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001429/0.1789, allocations: 92.86 kB / 381.7 MB, free: 51.22 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.24e-05/0.1789, allocations: 15.25 kB / 381.7 MB, free: 51.21 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.1789, allocations: 1.094 kB / 381.7 MB, free: 51.21 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.134e-05/0.1789, allocations: 1.906 kB / 381.7 MB, free: 51.21 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.85e-05/0.179, allocations: 11.5 kB / 381.7 MB, free: 51.21 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.152e-06/0.179, allocations: 5.141 kB / 381.7 MB, free: 51.21 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.361e-05/0.1791, allocations: 9.25 kB / 381.8 MB, free: 51.21 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.165e-06/0.1791, allocations: 2.875 kB / 381.8 MB, free: 51.21 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 4.516e-05/0.1791, allocations: 124 kB / 381.9 MB, free: 51.09 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.104e-05/0.1792, allocations: 9.938 kB / 381.9 MB, free: 51.09 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.813e-05/0.1792, allocations: 7.531 kB / 381.9 MB, free: 51.09 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-06/0.1792, allocations: 1.188 kB / 381.9 MB, free: 51.09 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.955e-06/0.1792, allocations: 1.156 kB / 381.9 MB, free: 51.09 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.394e-06/0.1792, allocations: 0 / 381.9 MB, free: 51.09 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.599e-05/0.1793, allocations: 160.5 kB / 382.1 MB, free: 50.89 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.1793, allocations: 3.125 kB / 382.1 MB, free: 50.89 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.686e-05/0.1793, allocations: 8.547 kB / 382.1 MB, free: 50.89 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.1793, allocations: 6.812 kB / 382.1 MB, free: 50.89 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.556e-06/0.1793, allocations: 5.906 kB / 382.1 MB, free: 50.89 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.1793, allocations: 0 / 382.1 MB, free: 50.89 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.1793, allocations: 0 / 382.1 MB, free: 50.89 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001489/0.1795, allocations: 105.5 kB / 382.2 MB, free: 50.82 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.36e-05/0.1795, allocations: 85.86 kB / 382.3 MB, free: 50.73 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.46e-05/0.1795, allocations: 2.969 kB / 382.3 MB, free: 50.73 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.001e-05/0.1796, allocations: 9.797 kB / 382.3 MB, free: 50.72 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.944e-05/0.1796, allocations: 10.09 kB / 382.3 MB, free: 50.72 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.324e-06/0.1796, allocations: 3.125 kB / 382.3 MB, free: 50.72 MB / 318.1 MB Notification: Performance of sorting global known variables: time 1.6e-05/0.1797, allocations: 79.58 kB / 382.4 MB, free: 50.65 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1797, allocations: 1.188 kB / 382.4 MB, free: 50.65 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0001919/0.1799, allocations: 8.5 kB / 382.4 MB, free: 50.65 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 5.098e-05/0.1799, allocations: 92.48 kB / 382.5 MB, free: 50.56 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001509/0.1801, allocations: 56.02 kB / 382.5 MB, free: 50.56 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.1801, allocations: 1.5 kB / 382.5 MB, free: 50.56 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 5.979e-05/0.1802, allocations: 27.44 kB / 382.6 MB, free: 50.56 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001284/0.1803, allocations: 4.469 kB / 382.6 MB, free: 50.56 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002205/0.1805, allocations: 126 kB / 382.7 MB, free: 50.45 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.229e-05/0.1806, allocations: 0.678 MB / 383.4 MB, free: 49.76 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 2.447e-05/0.1806, allocations: 16.08 kB / 383.4 MB, free: 49.75 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.416e-05/0.1807, allocations: 14.69 kB / 383.4 MB, free: 49.74 MB / 318.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1807, allocations: 1.156 kB / 383.4 MB, free: 49.74 MB / 318.1 MB Notification: Performance of Templates: time 0.002245/0.1829, allocations: 0.616 MB / 384 MB, free: 49.71 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 gbode -lv LOG_STATS > MEV_MEV.Controls.PatientController.pipe 2>&1)