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.001167/0.001167, allocations: 105.6 kB / 16.27 MB, free: 6.414 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.001103/0.001103, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.134/1.134, allocations: 205.1 MB / 223.1 MB, free: 12.31 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.007045/0.007045, allocations: 1.935 MB / 272.4 MB, free: 10.14 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.0014/0.0014, allocations: 71.89 kB / 330.5 MB, free: 15.91 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06599/0.0674, allocations: 47.13 MB / 377.6 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Controls.PatientController): time 0.1141/0.1815, allocations: 1.269 MB / 378.9 MB, free: 52.55 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001387/0.1817, allocations: 33.8 kB / 378.9 MB, free: 52.55 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.346e-05/0.1817, allocations: 0 / 378.9 MB, free: 52.55 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.561e-05/0.1818, allocations: 0.6562 kB / 378.9 MB, free: 52.55 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 2.277e-05/0.1818, allocations: 1.875 kB / 378.9 MB, free: 52.55 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001085/0.1819, allocations: 7.969 kB / 379 MB, free: 52.55 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 5.407e-05/0.182, allocations: 33.12 kB / 379 MB, free: 52.55 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.313e-05/0.182, allocations: 2.812 kB / 379 MB, free: 52.55 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.727e-05/0.1821, allocations: 15.09 kB / 379 MB, free: 52.55 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.608e-05/0.1821, allocations: 16.42 kB / 379 MB, free: 52.55 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.427e-05/0.1821, allocations: 6.625 kB / 379 MB, free: 52.55 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.065e-06/0.1822, allocations: 0 / 379 MB, free: 52.55 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.716e-05/0.1822, allocations: 5.391 kB / 379 MB, free: 52.55 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.451e-05/0.1822, allocations: 15.34 kB / 379 MB, free: 52.55 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 5.165e-05/0.1823, allocations: 18.48 kB / 379.1 MB, free: 52.55 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.1823, allocations: 3.188 kB / 379.1 MB, free: 52.55 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1823, allocations: 3.375 kB / 379.1 MB, free: 52.55 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.428e-06/0.1823, allocations: 0 / 379.1 MB, free: 52.55 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.0003968/0.1827, allocations: 346.4 kB / 379.4 MB, free: 52.2 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.656e-05/0.1827, allocations: 11.77 kB / 379.4 MB, free: 52.2 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.26e-05/0.1828, allocations: 3.438 kB / 379.4 MB, free: 52.2 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.959e-05/0.1828, allocations: 166.6 kB / 379.6 MB, free: 52 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.397e-05/0.1829, allocations: 33.33 kB / 379.6 MB, free: 51.97 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.799e-06/0.1829, allocations: 6.031 kB / 379.6 MB, free: 51.97 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001043/0.183, allocations: 57.64 kB / 379.7 MB, free: 51.94 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.883e-06/0.183, allocations: 3.938 kB / 379.7 MB, free: 51.93 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.546e-06/0.183, allocations: 1.266 kB / 379.7 MB, free: 51.93 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.617e-06/0.183, allocations: 0 / 379.7 MB, free: 51.93 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.571e-05/0.1831, allocations: 17.53 kB / 379.7 MB, free: 51.93 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.416e-05/0.1832, allocations: 167.5 kB / 379.9 MB, free: 51.74 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.921e-05/0.1833, allocations: 42.98 kB / 379.9 MB, free: 51.72 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.854e-05/0.1833, allocations: 19.41 kB / 379.9 MB, free: 51.71 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.047e-06/0.1834, allocations: 1.172 kB / 379.9 MB, free: 51.71 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001594/0.1835, allocations: 81.72 kB / 380 MB, free: 51.66 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.273e-06/0.1835, allocations: 1.094 kB / 380 MB, free: 51.66 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002145/0.1838, allocations: 100.3 kB / 380.1 MB, free: 51.63 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.296e-05/0.1838, allocations: 55.38 kB / 380.2 MB, free: 51.57 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.149e-05/0.1838, allocations: 104.2 kB / 380.3 MB, free: 51.46 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.137e-06/0.1838, allocations: 26.77 kB / 380.3 MB, free: 51.43 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.179e-05/0.1839, allocations: 81.98 kB / 380.4 MB, free: 51.35 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.234e-05/0.1839, allocations: 19.86 kB / 380.4 MB, free: 51.34 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.345e-05/0.1839, allocations: 25.38 kB / 380.4 MB, free: 51.33 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.474e-05/0.184, allocations: 313 kB / 380.7 MB, free: 51.02 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.287e-05/0.184, allocations: 22.81 kB / 380.7 MB, free: 51.02 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.316e-05/0.1841, allocations: 43.69 kB / 380.8 MB, free: 50.99 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.082e-05/0.1842, allocations: 54.78 kB / 380.8 MB, free: 50.97 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.1842, allocations: 1.562 kB / 380.8 MB, free: 50.97 MB / 318.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000138/0.1843, allocations: 94.27 kB / 380.9 MB, free: 50.93 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.095e-05/0.1844, allocations: 9.188 kB / 380.9 MB, free: 50.93 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.837e-06/0.1844, allocations: 2.844 kB / 380.9 MB, free: 50.93 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.125e-05/0.1844, allocations: 2.594 kB / 380.9 MB, free: 50.93 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.665e-05/0.1845, allocations: 9.047 kB / 381 MB, free: 50.93 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.39e-06/0.1845, allocations: 5.781 kB / 381 MB, free: 50.93 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.306e-05/0.1845, allocations: 10.2 kB / 381 MB, free: 50.93 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.394e-06/0.1845, allocations: 4.125 kB / 381 MB, free: 50.93 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.372e-05/0.1846, allocations: 121.4 kB / 381.1 MB, free: 50.81 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.056e-05/0.1846, allocations: 9.344 kB / 381.1 MB, free: 50.8 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.768e-05/0.1846, allocations: 9.047 kB / 381.1 MB, free: 50.8 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.744e-06/0.1846, allocations: 2.859 kB / 381.1 MB, free: 50.8 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.1846, allocations: 1.75 kB / 381.1 MB, free: 50.8 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.1847, allocations: 3.938 kB / 381.1 MB, free: 50.8 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.33e-05/0.1847, allocations: 157.7 kB / 381.3 MB, free: 50.61 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.1847, allocations: 2.5 kB / 381.3 MB, free: 50.61 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.578e-05/0.1847, allocations: 6.328 kB / 381.3 MB, free: 50.61 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.1848, allocations: 3.938 kB / 381.3 MB, free: 50.61 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.655e-06/0.1848, allocations: 5.5 kB / 381.3 MB, free: 50.61 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.1848, allocations: 0 / 381.3 MB, free: 50.61 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.153e-06/0.1848, allocations: 3.094 kB / 381.3 MB, free: 50.61 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001349/0.1849, allocations: 108.8 kB / 381.4 MB, free: 50.55 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.234e-05/0.1849, allocations: 85.53 kB / 381.5 MB, free: 50.45 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.447e-05/0.185, allocations: 3.828 kB / 381.5 MB, free: 50.45 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.788e-05/0.185, allocations: 9.594 kB / 381.5 MB, free: 50.45 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.356e-05/0.1851, allocations: 7.812 kB / 381.5 MB, free: 50.45 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.861e-06/0.1851, allocations: 2.281 kB / 381.5 MB, free: 50.45 MB / 318.1 MB Notification: Performance of sorting global known variables: time 1.518e-05/0.1851, allocations: 79.73 kB / 381.6 MB, free: 50.38 MB / 318.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1851, allocations: 0 / 381.6 MB, free: 50.38 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0001794/0.1853, allocations: 15.28 kB / 381.6 MB, free: 50.38 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 4.845e-05/0.1853, allocations: 89.88 kB / 381.7 MB, free: 50.29 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001458/0.1855, allocations: 62.98 kB / 381.7 MB, free: 50.29 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.343e-06/0.1855, allocations: 0 / 381.7 MB, free: 50.29 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 5.813e-05/0.1855, allocations: 24.52 kB / 381.8 MB, free: 50.29 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001212/0.1857, allocations: 4.188 kB / 381.8 MB, free: 50.29 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002274/0.1859, allocations: 157 kB / 381.9 MB, free: 50.15 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.941e-05/0.186, allocations: 0.684 MB / 382.6 MB, free: 49.45 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.323e-05/0.186, allocations: 10.66 kB / 382.6 MB, free: 49.45 MB / 318.1 MB Notification: Performance of SimCode: time 3.3e-07/0.186, allocations: 0 / 382.6 MB, free: 49.45 MB / 318.1 MB Notification: Performance of Templates: time 0.001593/0.1876, allocations: 0.6936 MB / 383.3 MB, free: 49.42 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 -lv LOG_STATS > MEV_MEV.Controls.PatientController.pipe 2>&1)