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/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.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/Complex 3.2.3+maint.om/package.mo): time 0.001043/0.001043, allocations: 183.2 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.00656/0.00656, 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.203/1.203, allocations: 205.1 MB / 225 MB, free: 4.828 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.0008417/0.0008417, allocations: 102 kB / 272.9 MB, free: 6.07 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009762/0.0009762, allocations: 59.91 kB / 330.8 MB, free: 12.08 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1966/0.1976, allocations: 47.12 MB / 377.9 MB, free: 44.58 MB / 298.7 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController2): time 0.002477/0.2001, allocations: 1.592 MB / 379.5 MB, free: 43.32 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001085/0.2012, allocations: 0.7795 MB / 380.3 MB, free: 42.72 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.051e-05/0.2013, allocations: 5 kB / 380.3 MB, free: 42.72 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001138/0.2015, allocations: 49.42 kB / 380.3 MB, free: 42.7 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.9e-05/0.2016, allocations: 80.09 kB / 380.4 MB, free: 42.65 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004742/0.2021, allocations: 124.3 kB / 380.5 MB, free: 42.57 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001842/0.2023, allocations: 152.1 kB / 380.7 MB, free: 42.5 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.231e-05/0.2024, allocations: 19.36 kB / 380.7 MB, free: 42.48 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001093/0.2025, allocations: 81.2 kB / 380.8 MB, free: 42.44 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001513/0.2026, allocations: 106.7 kB / 380.9 MB, free: 42.39 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.749e-05/0.2027, allocations: 5.844 kB / 380.9 MB, free: 42.39 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002039/0.2029, allocations: 151.1 kB / 381.1 MB, free: 42.31 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.971e-05/0.2029, allocations: 33.36 kB / 381.1 MB, free: 42.29 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.035e-05/0.203, allocations: 65.38 kB / 381.2 MB, free: 42.25 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002733/0.2033, allocations: 221 kB / 381.4 MB, free: 42.11 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.626e-06/0.2033, allocations: 0 / 381.4 MB, free: 42.11 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.62e-07/0.2033, allocations: 4 kB / 381.4 MB, free: 42.11 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.421e-06/0.2033, allocations: 1.125 kB / 381.4 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.0006912/0.204, allocations: 0.5353 MB / 381.9 MB, free: 41.57 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.727e-05/0.2041, allocations: 9.219 kB / 381.9 MB, free: 41.57 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.131e-05/0.2041, allocations: 19.44 kB / 381.9 MB, free: 41.57 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000179/0.2043, allocations: 214.5 kB / 382.1 MB, free: 41.34 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.503e-05/0.2044, allocations: 40.28 kB / 382.2 MB, free: 41.3 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.171e-05/0.2044, allocations: 10.31 kB / 382.2 MB, free: 41.29 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002389/0.2047, allocations: 139.8 kB / 382.3 MB, free: 41.21 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.2047, allocations: 0 / 382.3 MB, free: 41.21 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.47e-05/0.2047, allocations: 2.031 kB / 382.3 MB, free: 41.21 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.2047, allocations: 5.031 kB / 382.3 MB, free: 41.21 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001752/0.2049, allocations: 95 kB / 382.4 MB, free: 41.17 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004238/0.2053, allocations: 382.1 kB / 382.8 MB, free: 40.8 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002334/0.2056, allocations: 142.8 kB / 382.9 MB, free: 40.72 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000131/0.2057, allocations: 98.98 kB / 383 MB, free: 40.68 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.28e-05/0.2057, allocations: 1.062 kB / 383 MB, free: 40.68 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002776/0.206, allocations: 240.1 kB / 383.3 MB, free: 40.49 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 1.954e-06/0.206, allocations: 1.625 kB / 383.3 MB, free: 40.49 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.0006582/0.2067, allocations: 473.7 kB / 383.7 MB, free: 40.26 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.888e-05/0.2067, allocations: 117.9 kB / 383.9 MB, free: 40.13 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001394/0.2069, allocations: 193.3 kB / 384 MB, free: 39.99 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.902e-05/0.2069, allocations: 33.89 kB / 384.1 MB, free: 39.95 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.944e-05/0.207, allocations: 114.4 kB / 384.2 MB, free: 39.84 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.063e-05/0.207, allocations: 60.12 kB / 384.2 MB, free: 39.79 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.326e-05/0.2071, allocations: 44.48 kB / 384.3 MB, free: 39.76 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.732e-05/0.2071, allocations: 340.8 kB / 384.6 MB, free: 39.43 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001395/0.2073, allocations: 90.72 kB / 384.7 MB, free: 39.39 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001253/0.2074, allocations: 83.41 kB / 384.8 MB, free: 39.36 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002716/0.2077, allocations: 299.8 kB / 385.1 MB, free: 39.15 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.2077, allocations: 4 kB / 385.1 MB, free: 39.14 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003739/0.2081, allocations: 396.4 kB / 385.5 MB, free: 38.74 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.325e-05/0.2081, allocations: 71.39 kB / 385.5 MB, free: 38.66 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.2081, allocations: 0 / 385.5 MB, free: 38.66 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.536e-05/0.2081, allocations: 0 / 385.5 MB, free: 38.66 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.493e-05/0.2082, allocations: 23.92 kB / 385.6 MB, free: 38.64 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.999e-06/0.2083, allocations: 0 / 385.6 MB, free: 38.64 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001143/0.2084, allocations: 19.88 kB / 385.6 MB, free: 38.62 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.715e-05/0.2084, allocations: 19.94 kB / 385.6 MB, free: 38.6 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.0001096/0.2085, allocations: 218.9 kB / 385.8 MB, free: 38.36 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.84e-05/0.2085, allocations: 23.8 kB / 385.8 MB, free: 38.34 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.113e-05/0.2086, allocations: 21.88 kB / 385.9 MB, free: 38.32 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.2086, allocations: 0 / 385.9 MB, free: 38.32 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.2086, allocations: 0 / 385.9 MB, free: 38.32 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.2086, allocations: 0 / 385.9 MB, free: 38.32 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00013/0.2087, allocations: 265.2 kB / 386.1 MB, free: 38.01 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.2088, allocations: 0 / 386.1 MB, free: 38.01 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.853e-05/0.2088, allocations: 11.98 kB / 386.1 MB, free: 38 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.315e-06/0.2088, allocations: 4 kB / 386.1 MB, free: 38 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.869e-05/0.2088, allocations: 8 kB / 386.1 MB, free: 37.99 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.2088, allocations: 0 / 386.1 MB, free: 37.99 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.2089, allocations: 3.938 kB / 386.2 MB, free: 37.98 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006928/0.2095, allocations: 1.155 MB / 387.3 MB, free: 36.76 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.929e-05/0.2096, allocations: 100.9 kB / 387.4 MB, free: 36.64 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.551e-05/0.2096, allocations: 8 kB / 387.4 MB, free: 36.63 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.58e-05/0.2097, allocations: 15.92 kB / 387.4 MB, free: 36.62 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.158e-05/0.2098, allocations: 19.97 kB / 387.4 MB, free: 36.6 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.502e-05/0.2098, allocations: 12 kB / 387.5 MB, free: 36.59 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.078e-05/0.2099, allocations: 148.3 kB / 387.6 MB, free: 36.44 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.2099, allocations: 0 / 387.6 MB, free: 36.44 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003692/0.2103, allocations: 76 kB / 387.7 MB, free: 36.37 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.0001825/0.2105, allocations: 159.6 kB / 387.8 MB, free: 36.2 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003729/0.2108, allocations: 402.7 kB / 388.2 MB, free: 35.79 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.2109, allocations: 0 / 388.2 MB, free: 35.79 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001908/0.2111, allocations: 290.6 kB / 388.5 MB, free: 35.48 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001982/0.2113, allocations: 27.92 kB / 388.5 MB, free: 35.45 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005322/0.2118, allocations: 0.5585 MB / 389.1 MB, free: 34.85 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001203/0.2119, allocations: 0.7319 MB / 389.8 MB, free: 34.09 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.621e-05/0.212, allocations: 8.562 kB / 389.8 MB, free: 34.09 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.527e-05/0.212, allocations: 15.42 kB / 389.9 MB, free: 34.07 MB / 298.7 MB Notification: Performance of SimCode: time 2.31e-07/0.212, allocations: 4 kB / 389.9 MB, free: 34.07 MB / 298.7 MB Notification: Performance of Templates: time 0.004365/0.2164, allocations: 2.549 MB / 392.4 MB, free: 31.52 MB / 298.7 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)