Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr MEV_MEV.Test.TestPatientController1.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.TestPatientController1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="MEV_MEV.Test.TestPatientController1") translateModel(MEV.Test.TestPatientController1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="MEV_MEV.Test.TestPatientController1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001188/0.001188, allocations: 106 kB / 16.27 MB, free: 6.41 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.001119/0.001119, allocations: 190.3 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.153/1.153, allocations: 205.1 MB / 223.1 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.007241/0.007241, allocations: 1.935 MB / 272.4 MB, free: 10.15 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.001355/0.001355, allocations: 67.89 kB / 330.5 MB, free: 15.93 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06735/0.06871, allocations: 47.12 MB / 377.6 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController1): time 0.1132/0.1819, allocations: 1.518 MB / 379.1 MB, free: 52.45 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009279/0.1829, allocations: 0.7368 MB / 379.9 MB, free: 52.19 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.411e-05/0.183, allocations: 2.125 kB / 379.9 MB, free: 52.19 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001111/0.1831, allocations: 58.53 kB / 379.9 MB, free: 52.19 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.584e-05/0.1832, allocations: 62.7 kB / 380 MB, free: 52.18 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004897/0.1837, allocations: 167.4 kB / 380.2 MB, free: 52.16 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001754/0.1839, allocations: 168.6 kB / 380.3 MB, free: 52.16 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.973e-05/0.184, allocations: 16.39 kB / 380.3 MB, free: 52.16 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.669e-05/0.1841, allocations: 79.12 kB / 380.4 MB, free: 52.14 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001395/0.1842, allocations: 103.4 kB / 380.5 MB, free: 52.13 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.639e-05/0.1843, allocations: 10.59 kB / 380.5 MB, free: 52.13 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001896/0.1845, allocations: 149 kB / 380.7 MB, free: 52.13 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.934e-05/0.1845, allocations: 30.22 kB / 380.7 MB, free: 52.12 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.57e-05/0.1846, allocations: 65.91 kB / 380.8 MB, free: 52.11 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002788/0.1849, allocations: 229.3 kB / 381 MB, free: 52.07 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.1849, allocations: 1.094 kB / 381 MB, free: 52.07 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1849, allocations: 4.531 kB / 381 MB, free: 52.06 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.94e-06/0.1849, allocations: 0 / 381 MB, free: 52.06 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.0006414/0.1856, allocations: 0.5195 MB / 381.5 MB, free: 51.59 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.966e-05/0.1856, allocations: 14.2 kB / 381.5 MB, free: 51.59 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.565e-05/0.1857, allocations: 21.38 kB / 381.6 MB, free: 51.58 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001643/0.1859, allocations: 218.2 kB / 381.8 MB, free: 51.37 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.378e-05/0.1859, allocations: 35.84 kB / 381.8 MB, free: 51.34 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.133e-05/0.1859, allocations: 7.594 kB / 381.8 MB, free: 51.34 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002304/0.1862, allocations: 135.7 kB / 381.9 MB, free: 51.3 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.155e-06/0.1862, allocations: 0 / 381.9 MB, free: 51.3 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.625e-05/0.1862, allocations: 3.031 kB / 382 MB, free: 51.3 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.877e-06/0.1862, allocations: 4.562 kB / 382 MB, free: 51.3 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001806/0.1864, allocations: 91.06 kB / 382 MB, free: 51.3 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004068/0.1868, allocations: 373.2 kB / 382.4 MB, free: 51.02 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002232/0.1871, allocations: 138.8 kB / 382.5 MB, free: 51 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001325/0.1872, allocations: 101.1 kB / 382.6 MB, free: 50.99 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.546e-06/0.1872, allocations: 2.438 kB / 382.6 MB, free: 50.99 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003214/0.1875, allocations: 234.6 kB / 382.9 MB, free: 50.88 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.613e-06/0.1875, allocations: 0.9688 kB / 382.9 MB, free: 50.88 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0006427/0.1882, allocations: 457.9 kB / 383.3 MB, free: 50.77 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.509e-05/0.1882, allocations: 116.6 kB / 383.4 MB, free: 50.64 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001233/0.1884, allocations: 187.1 kB / 383.6 MB, free: 50.54 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.036e-05/0.1884, allocations: 32.77 kB / 383.7 MB, free: 50.51 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.917e-05/0.1884, allocations: 109.3 kB / 383.8 MB, free: 50.43 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.135e-05/0.1885, allocations: 52.47 kB / 383.8 MB, free: 50.39 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.318e-05/0.1886, allocations: 43.75 kB / 383.9 MB, free: 50.38 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.592e-05/0.1886, allocations: 334.4 kB / 384.2 MB, free: 50.06 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001396/0.1888, allocations: 85.97 kB / 384.3 MB, free: 50.06 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001327/0.1889, allocations: 90.95 kB / 384.4 MB, free: 50.06 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002684/0.1892, allocations: 287.2 kB / 384.6 MB, free: 49.93 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.1892, allocations: 0 / 384.6 MB, free: 49.93 MB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004289/0.1896, allocations: 386.4 kB / 385 MB, free: 49.82 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.6e-05/0.1897, allocations: 68.08 kB / 385.1 MB, free: 49.76 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.1897, allocations: 0.6094 kB / 385.1 MB, free: 49.76 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.443e-05/0.1897, allocations: 1.375 kB / 385.1 MB, free: 49.76 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001011/0.1898, allocations: 15.83 kB / 385.1 MB, free: 49.76 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.589e-06/0.1898, allocations: 8.75 kB / 385.1 MB, free: 49.75 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001183/0.1899, allocations: 24.78 kB / 385.1 MB, free: 49.75 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.62e-05/0.19, allocations: 7.562 kB / 385.1 MB, free: 49.75 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.0001199/0.1901, allocations: 227.9 kB / 385.4 MB, free: 49.54 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.253e-05/0.1901, allocations: 19.53 kB / 385.4 MB, free: 49.54 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.869e-05/0.1902, allocations: 20.73 kB / 385.4 MB, free: 49.53 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.1902, allocations: 1.75 kB / 385.4 MB, free: 49.53 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.1902, allocations: 1.812 kB / 385.4 MB, free: 49.53 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.1902, allocations: 1.219 kB / 385.4 MB, free: 49.53 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000153/0.1903, allocations: 248.9 kB / 385.6 MB, free: 49.31 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.1903, allocations: 0.75 kB / 385.6 MB, free: 49.31 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.377e-05/0.1904, allocations: 10.09 kB / 385.7 MB, free: 49.31 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.1904, allocations: 2.375 kB / 385.7 MB, free: 49.31 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.088e-05/0.1904, allocations: 15.88 kB / 385.7 MB, free: 49.3 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.1904, allocations: 0 / 385.7 MB, free: 49.3 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.1905, allocations: 0 / 385.7 MB, free: 49.3 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005068/0.191, allocations: 465.6 kB / 386.1 MB, free: 49.07 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.468e-05/0.191, allocations: 94.03 kB / 386.2 MB, free: 48.96 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.104e-05/0.191, allocations: 11.36 kB / 386.2 MB, free: 48.96 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001025/0.1912, allocations: 11.19 kB / 386.2 MB, free: 48.96 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.83e-05/0.1912, allocations: 17.33 kB / 386.3 MB, free: 48.95 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.618e-05/0.1913, allocations: 14.3 kB / 386.3 MB, free: 48.95 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.654e-05/0.1913, allocations: 133.4 kB / 386.4 MB, free: 48.86 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1913, allocations: 1.125 kB / 386.4 MB, free: 48.86 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002912/0.1916, allocations: 76.73 kB / 386.5 MB, free: 48.86 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.0001805/0.1918, allocations: 174.2 kB / 386.6 MB, free: 48.73 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004496/0.1923, allocations: 398.3 kB / 387 MB, free: 48.51 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.1923, allocations: 0 / 387 MB, free: 48.51 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002216/0.1925, allocations: 283.4 kB / 387.3 MB, free: 48.32 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001983/0.1927, allocations: 17.06 kB / 387.3 MB, free: 48.32 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004835/0.1932, allocations: 369.9 kB / 387.7 MB, free: 48.09 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001194/0.1934, allocations: 0.7306 MB / 388.4 MB, free: 47.39 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.951e-05/0.1934, allocations: 13.72 kB / 388.4 MB, free: 47.38 MB / 318.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1934, allocations: 0 / 388.4 MB, free: 47.38 MB / 318.1 MB Notification: Performance of Templates: time 0.004255/0.1977, allocations: 2.444 MB / 390.9 MB, free: 47.22 MB / 318.1 MB make -j1 -f MEV_MEV.Test.TestPatientController1.makefile (rm -f MEV_MEV.Test.TestPatientController1.pipe ; mkfifo MEV_MEV.Test.TestPatientController1.pipe ; head -c 1048576 < MEV_MEV.Test.TestPatientController1.pipe >> ../files/MEV_MEV.Test.TestPatientController1.sim & ./MEV_MEV.Test.TestPatientController1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > MEV_MEV.Test.TestPatientController1.pipe 2>&1)