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/Complex 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) 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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 MEV with version 1.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001055/0.001055, allocations: 183.4 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.007959/0.007959, allocations: 1.935 MB / 18.67 MB, free: 3.07 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.175/1.175, allocations: 205.1 MB / 225 MB, free: 4.832 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008761/0.0008761, allocations: 105.8 kB / 272.9 MB, free: 6.062 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00095/0.0009502, allocations: 55.91 kB / 330.8 MB, free: 12.09 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1824/0.1833, allocations: 47.12 MB / 377.9 MB, free: 44.55 MB / 298.7 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController1): time 0.002395/0.1857, allocations: 1.591 MB / 379.5 MB, free: 43.3 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001034/0.1868, allocations: 0.7778 MB / 380.3 MB, free: 42.7 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.574e-05/0.1869, allocations: 1.062 kB / 380.3 MB, free: 42.7 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001141/0.187, allocations: 45.16 kB / 380.3 MB, free: 42.68 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.023e-05/0.1871, allocations: 58.28 kB / 380.4 MB, free: 42.65 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000472/0.1876, allocations: 135.5 kB / 380.5 MB, free: 42.56 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001712/0.1878, allocations: 146.3 kB / 380.7 MB, free: 42.49 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.26e-05/0.1879, allocations: 22.75 kB / 380.7 MB, free: 42.47 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.988e-05/0.188, allocations: 63.89 kB / 380.8 MB, free: 42.45 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001328/0.1881, allocations: 107.3 kB / 380.9 MB, free: 42.39 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.591e-05/0.1882, allocations: 9.75 kB / 380.9 MB, free: 42.38 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001945/0.1884, allocations: 148 kB / 381 MB, free: 42.31 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.752e-05/0.1884, allocations: 31.38 kB / 381 MB, free: 42.29 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.449e-05/0.1885, allocations: 53.86 kB / 381.1 MB, free: 42.25 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002779/0.1888, allocations: 226.3 kB / 381.3 MB, free: 42.11 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.1888, allocations: 0 / 381.3 MB, free: 42.11 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.1888, allocations: 3.938 kB / 381.3 MB, free: 42.11 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.398e-06/0.1888, allocations: 0 / 381.3 MB, free: 42.11 MB / 298.7 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.0006616/0.1895, allocations: 0.5182 MB / 381.8 MB, free: 41.59 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.424e-05/0.1895, allocations: 9.75 kB / 381.9 MB, free: 41.59 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.236e-05/0.1896, allocations: 18.75 kB / 381.9 MB, free: 41.58 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001714/0.1898, allocations: 218.3 kB / 382.1 MB, free: 41.35 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.674e-05/0.1898, allocations: 31.92 kB / 382.1 MB, free: 41.32 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.114e-05/0.1899, allocations: 5.719 kB / 382.1 MB, free: 41.32 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002424/0.1901, allocations: 143.4 kB / 382.3 MB, free: 41.23 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.355e-06/0.1901, allocations: 0 / 382.3 MB, free: 41.23 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.495e-05/0.1901, allocations: 10.5 kB / 382.3 MB, free: 41.22 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.1902, allocations: 5.25 kB / 382.3 MB, free: 41.21 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001745/0.1903, allocations: 95.28 kB / 382.4 MB, free: 41.18 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000443/0.1908, allocations: 363.8 kB / 382.7 MB, free: 40.82 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002575/0.1911, allocations: 144.7 kB / 382.9 MB, free: 40.74 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001476/0.1912, allocations: 99.81 kB / 383 MB, free: 40.69 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.369e-05/0.1912, allocations: 1.219 kB / 383 MB, free: 40.69 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003041/0.1915, allocations: 234.2 kB / 383.2 MB, free: 40.51 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 2.124e-06/0.1916, allocations: 0 / 383.2 MB, free: 40.51 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.0006834/0.1922, allocations: 462.2 kB / 383.6 MB, free: 40.28 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.478e-05/0.1923, allocations: 116.6 kB / 383.8 MB, free: 40.14 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001351/0.1924, allocations: 187.6 kB / 383.9 MB, free: 40 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.256e-05/0.1925, allocations: 32.83 kB / 384 MB, free: 39.97 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.36e-05/0.1925, allocations: 106.2 kB / 384.1 MB, free: 39.87 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.444e-05/0.1926, allocations: 51.8 kB / 384.1 MB, free: 39.82 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.872e-05/0.1927, allocations: 44.45 kB / 384.2 MB, free: 39.79 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.829e-05/0.1927, allocations: 336.5 kB / 384.5 MB, free: 39.46 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001491/0.1929, allocations: 83.56 kB / 384.6 MB, free: 39.43 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001331/0.193, allocations: 88.77 kB / 384.7 MB, free: 39.39 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000292/0.1933, allocations: 288.2 kB / 385 MB, free: 39.19 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.1933, allocations: 0 / 385 MB, free: 39.19 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004031/0.1937, allocations: 385.3 kB / 385.3 MB, free: 38.89 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.507e-05/0.1938, allocations: 69.11 kB / 385.4 MB, free: 38.81 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.137e-06/0.1938, allocations: 0 / 385.4 MB, free: 38.81 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.274e-05/0.1938, allocations: 4 kB / 385.4 MB, free: 38.81 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.359e-05/0.1939, allocations: 19.98 kB / 385.4 MB, free: 38.79 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.1939, allocations: 3.938 kB / 385.4 MB, free: 38.79 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001182/0.1941, allocations: 19.83 kB / 385.4 MB, free: 38.77 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.564e-05/0.1941, allocations: 12 kB / 385.5 MB, free: 38.75 MB / 298.7 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.0001083/0.1942, allocations: 222.8 kB / 385.7 MB, free: 38.52 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.799e-05/0.1942, allocations: 19.81 kB / 385.7 MB, free: 38.5 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.173e-05/0.1943, allocations: 29.86 kB / 385.7 MB, free: 38.47 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.255e-06/0.1943, allocations: 0 / 385.7 MB, free: 38.47 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.1943, allocations: 4 kB / 385.7 MB, free: 38.46 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.1943, allocations: 0 / 385.7 MB, free: 38.46 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001276/0.1944, allocations: 253.3 kB / 386 MB, free: 38.17 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.1944, allocations: 0 / 386 MB, free: 38.17 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.512e-05/0.1945, allocations: 8 kB / 386 MB, free: 38.16 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.1945, allocations: 0 / 386 MB, free: 38.16 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.884e-05/0.1945, allocations: 11.98 kB / 386 MB, free: 38.15 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.502e-06/0.1945, allocations: 0 / 386 MB, free: 38.15 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.1945, allocations: 4 kB / 386 MB, free: 38.14 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007009/0.1952, allocations: 1.136 MB / 387.1 MB, free: 36.94 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.183e-05/0.1953, allocations: 88.92 kB / 387.2 MB, free: 36.83 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.601e-05/0.1953, allocations: 12 kB / 387.2 MB, free: 36.82 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.297e-05/0.1954, allocations: 15.92 kB / 387.2 MB, free: 36.8 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.764e-05/0.1955, allocations: 23.97 kB / 387.3 MB, free: 36.78 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.482e-05/0.1955, allocations: 8 kB / 387.3 MB, free: 36.77 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.915e-05/0.1956, allocations: 135.2 kB / 387.4 MB, free: 36.64 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.1956, allocations: 3.938 kB / 387.4 MB, free: 36.64 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000375/0.196, allocations: 79.98 kB / 387.5 MB, free: 36.56 MB / 298.7 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.0001808/0.1962, allocations: 167.5 kB / 387.7 MB, free: 36.39 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003627/0.1965, allocations: 398.6 kB / 388 MB, free: 35.97 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.1965, allocations: 0 / 388 MB, free: 35.97 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002047/0.1967, allocations: 278.8 kB / 388.3 MB, free: 35.68 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000204/0.197, allocations: 19.98 kB / 388.3 MB, free: 35.66 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005621/0.1975, allocations: 0.5347 MB / 388.9 MB, free: 35.09 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001356/0.1977, allocations: 0.7358 MB / 389.6 MB, free: 34.32 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.412e-05/0.1977, allocations: 8.547 kB / 389.6 MB, free: 34.32 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.318e-05/0.1978, allocations: 11.44 kB / 389.6 MB, free: 34.3 MB / 298.7 MB Notification: Performance of SimCode: time 4.11e-07/0.1978, allocations: 0 / 389.6 MB, free: 34.3 MB / 298.7 MB Notification: Performance of Templates: time 0.004467/0.2022, allocations: 2.531 MB / 392.2 MB, free: 31.78 MB / 298.7 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)