Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr MEV_MEV.Test.TestPatientController2.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.Test.TestPatientController2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="MEV_MEV.Test.TestPatientController2") translateModel(MEV.Test.TestPatientController2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="MEV_MEV.Test.TestPatientController2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001187/0.001187, allocations: 104 kB / 16.27 MB, free: 5.984 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.001146/0.001146, allocations: 191.2 kB / 17.2 MB, free: 5.609 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.153/1.153, allocations: 205.1 MB / 223.1 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.007154/0.007154, allocations: 1.94 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.001371/0.001371, allocations: 71.92 kB / 330.5 MB, free: 15.93 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06741/0.06879, allocations: 47.12 MB / 377.6 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController2): time 0.112/0.1808, allocations: 1.522 MB / 379.2 MB, free: 52.42 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008404/0.1817, allocations: 0.7312 MB / 379.9 MB, free: 52.16 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.634e-05/0.1818, allocations: 1.062 kB / 379.9 MB, free: 52.16 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001065/0.1819, allocations: 67.98 kB / 380 MB, free: 52.15 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.239e-05/0.182, allocations: 68.7 kB / 380 MB, free: 52.15 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000442/0.1824, allocations: 173.2 kB / 380.2 MB, free: 52.13 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001565/0.1826, allocations: 166.4 kB / 380.4 MB, free: 52.13 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.054e-05/0.1827, allocations: 11.91 kB / 380.4 MB, free: 52.13 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.547e-05/0.1828, allocations: 81.33 kB / 380.4 MB, free: 52.12 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000133/0.1829, allocations: 121.1 kB / 380.6 MB, free: 52.1 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.695e-05/0.183, allocations: 8.875 kB / 380.6 MB, free: 52.1 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001796/0.1831, allocations: 147.1 kB / 380.7 MB, free: 52.1 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.691e-05/0.1832, allocations: 35.39 kB / 380.8 MB, free: 52.09 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.512e-05/0.1833, allocations: 69.86 kB / 380.8 MB, free: 52.07 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002483/0.1835, allocations: 228.9 kB / 381 MB, free: 52.03 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.1835, allocations: 0.8438 kB / 381 MB, free: 52.03 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1836, allocations: 3.938 kB / 381 MB, free: 52.03 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.735e-06/0.1836, allocations: 4.969 kB / 381.1 MB, free: 52.03 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0005728/0.1841, allocations: 0.5341 MB / 381.6 MB, free: 51.55 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.757e-05/0.1842, allocations: 13.42 kB / 381.6 MB, free: 51.55 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.96e-05/0.1842, allocations: 18.95 kB / 381.6 MB, free: 51.54 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001638/0.1844, allocations: 217.7 kB / 381.8 MB, free: 51.32 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.204e-05/0.1845, allocations: 34.06 kB / 381.9 MB, free: 51.29 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.312e-05/0.1845, allocations: 9.719 kB / 381.9 MB, free: 51.29 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002249/0.1847, allocations: 138.4 kB / 382 MB, free: 51.26 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.193e-06/0.1847, allocations: 0.5312 kB / 382 MB, free: 51.26 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.767e-05/0.1847, allocations: 5.078 kB / 382 MB, free: 51.26 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.827e-06/0.1848, allocations: 3.562 kB / 382 MB, free: 51.26 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001728/0.1849, allocations: 100.3 kB / 382.1 MB, free: 51.26 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003801/0.1853, allocations: 375 kB / 382.5 MB, free: 50.98 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002293/0.1856, allocations: 141.7 kB / 382.6 MB, free: 50.96 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000131/0.1857, allocations: 103.4 kB / 382.7 MB, free: 50.95 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.064e-05/0.1857, allocations: 2.156 kB / 382.7 MB, free: 50.95 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003016/0.186, allocations: 241.5 kB / 383 MB, free: 50.83 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.442e-06/0.186, allocations: 0.6562 kB / 383 MB, free: 50.83 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0006183/0.1867, allocations: 481.3 kB / 383.4 MB, free: 50.72 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.507e-05/0.1867, allocations: 116.9 kB / 383.5 MB, free: 50.59 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001274/0.1868, allocations: 196.6 kB / 383.7 MB, free: 50.49 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.882e-05/0.1869, allocations: 33.02 kB / 383.8 MB, free: 50.46 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.991e-05/0.1869, allocations: 110 kB / 383.9 MB, free: 50.38 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.928e-05/0.187, allocations: 52.91 kB / 383.9 MB, free: 50.35 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.205e-05/0.187, allocations: 47.16 kB / 384 MB, free: 50.33 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.513e-05/0.1871, allocations: 336.3 kB / 384.3 MB, free: 50.02 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001386/0.1872, allocations: 87.42 kB / 384.4 MB, free: 50.02 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001277/0.1874, allocations: 92.75 kB / 384.5 MB, free: 50.02 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002649/0.1876, allocations: 302.7 kB / 384.8 MB, free: 49.88 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.1876, allocations: 0 / 384.8 MB, free: 49.88 MB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004157/0.1881, allocations: 396 kB / 385.2 MB, free: 49.76 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.426e-05/0.1881, allocations: 66.19 kB / 385.2 MB, free: 49.7 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.707e-06/0.1881, allocations: 4 kB / 385.2 MB, free: 49.7 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.055e-05/0.1881, allocations: 0 / 385.2 MB, free: 49.7 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.542e-05/0.1882, allocations: 21.73 kB / 385.3 MB, free: 49.69 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.1882, allocations: 7.125 kB / 385.3 MB, free: 49.69 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001183/0.1884, allocations: 19.34 kB / 385.3 MB, free: 49.68 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.675e-05/0.1884, allocations: 10.88 kB / 385.3 MB, free: 49.68 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 23 (dutyCycle.nextEventScaled,dutyCycle.nextEvent,$PRE.dutyCycle.nextEvent,dutyCycle.last,dutyCycle.b,dutyCycle.a,RR.nextEventScaled,RR.nextEvent,$PRE.RR.nextEvent,RR.last,RR.b,RR.a,patientController.active,$PRE.patientController.active,patientController.t_off,$PRE.patientController.t_off,patientController.t_on,$PRE.patientController.t_on,$whenCondition5,$whenCondition4,$whenCondition2,$whenCondition1,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 2 * 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 0.0001189/0.1885, allocations: 222.4 kB / 385.5 MB, free: 49.48 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.223e-05/0.1886, allocations: 20.77 kB / 385.5 MB, free: 49.47 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.012e-05/0.1886, allocations: 22.25 kB / 385.5 MB, free: 49.46 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.1886, allocations: 8.641 kB / 385.6 MB, free: 49.46 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.427e-06/0.1886, allocations: 0 / 385.6 MB, free: 49.46 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.1886, allocations: 3.797 kB / 385.6 MB, free: 49.46 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001449/0.1888, allocations: 260 kB / 385.8 MB, free: 49.23 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.1888, allocations: 0.8438 kB / 385.8 MB, free: 49.23 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.979e-05/0.1888, allocations: 13.53 kB / 385.8 MB, free: 49.23 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.1888, allocations: 0 / 385.8 MB, free: 49.23 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.946e-05/0.1889, allocations: 8.734 kB / 385.8 MB, free: 49.23 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.1889, allocations: 1.281 kB / 385.8 MB, free: 49.23 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.1889, allocations: 0 / 385.8 MB, free: 49.23 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004963/0.1894, allocations: 473.8 kB / 386.3 MB, free: 49 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.457e-05/0.1894, allocations: 95.64 kB / 386.4 MB, free: 48.89 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.053e-05/0.1894, allocations: 10.8 kB / 386.4 MB, free: 48.89 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.866e-05/0.1896, allocations: 11.03 kB / 386.4 MB, free: 48.89 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.8e-05/0.1896, allocations: 17.03 kB / 386.4 MB, free: 48.88 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.462e-05/0.1896, allocations: 12.48 kB / 386.4 MB, free: 48.88 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.312e-05/0.1897, allocations: 153.9 kB / 386.6 MB, free: 48.78 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1897, allocations: 0 / 386.6 MB, free: 48.78 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002667/0.19, allocations: 81.61 kB / 386.7 MB, free: 48.77 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: 18 ($whenCondition3,$whenCondition1,$whenCondition2,$whenCondition4,$whenCondition5,patientController.t_on,patientController.t_off,patientController.active,RR.a,RR.b,RR.last,RR.nextEvent,RR.nextEventScaled,dutyCycle.a,dutyCycle.b,dutyCycle.last,dutyCycle.nextEvent,dutyCycle.nextEventScaled) * Number of discrete states: 14 (dutyCycle.nextEvent,dutyCycle.last,dutyCycle.nextEventScaled,dutyCycle.b,dutyCycle.a,$whenCondition4,RR.nextEvent,RR.last,RR.nextEventScaled,RR.b,RR.a,$whenCondition5,patientController.active,patientController.t_on) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 2 * 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 0.0001683/0.1902, allocations: 156.9 kB / 386.8 MB, free: 48.66 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004411/0.1906, allocations: 412 kB / 387.2 MB, free: 48.43 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.1906, allocations: 1.188 kB / 387.2 MB, free: 48.43 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002192/0.1909, allocations: 286.8 kB / 387.5 MB, free: 48.24 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002007/0.1911, allocations: 29.67 kB / 387.5 MB, free: 48.23 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004895/0.1916, allocations: 393.6 kB / 387.9 MB, free: 48 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001199/0.1917, allocations: 0.7259 MB / 388.6 MB, free: 47.3 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.786e-05/0.1917, allocations: 16.94 kB / 388.7 MB, free: 47.29 MB / 318.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1917, allocations: 0 / 388.7 MB, free: 47.29 MB / 318.1 MB Notification: Performance of Templates: time 0.003919/0.1957, allocations: 2.497 MB / 391.2 MB, free: 47.12 MB / 318.1 MB make -j1 -f MEV_MEV.Test.TestPatientController2.makefile (rm -f MEV_MEV.Test.TestPatientController2.pipe ; mkfifo MEV_MEV.Test.TestPatientController2.pipe ; head -c 1048576 < MEV_MEV.Test.TestPatientController2.pipe >> ../files/MEV_MEV.Test.TestPatientController2.sim & ./MEV_MEV.Test.TestPatientController2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > MEV_MEV.Test.TestPatientController2.pipe 2>&1)