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-master/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-master/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.001337/0.001337, allocations: 173.3 kB / 16.12 MB, free: 5.559 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1-master/package.mo): time 0.01194/0.01194, allocations: 1.922 MB / 18.79 MB, free: 2.895 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.338/1.338, allocations: 205.4 MB / 225.4 MB, free: 5.309 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.0007376/0.0007375, allocations: 86.36 kB / 274.3 MB, free: 5.875 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003512/0.0003513, allocations: 12 kB / 333.1 MB, free: 11.03 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2059/0.2063, allocations: 48.08 MB / 381.1 MB, free: 44.34 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08191/0.2882, allocations: 76.3 MB / 457.4 MB, free: 1.352 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001841/0.2884, allocations: 67.95 kB / 457.5 MB, free: 1.285 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01582/0.3043, allocations: 5.695 MB / 463.2 MB, free: 11.59 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3043, allocations: 0 / 463.2 MB, free: 11.59 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.264e-05/0.3043, allocations: 4 kB / 463.2 MB, free: 11.59 MB / 346.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.000689/0.305, allocations: 0.5215 MB / 463.7 MB, free: 11 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.472e-05/0.3051, allocations: 12.03 kB / 463.7 MB, free: 10.99 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.923e-05/0.3051, allocations: 20.73 kB / 463.8 MB, free: 10.97 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002673/0.3054, allocations: 227.9 kB / 464 MB, free: 10.71 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.509e-05/0.3055, allocations: 42.2 kB / 464 MB, free: 10.66 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.528e-05/0.3055, allocations: 4.375 kB / 464 MB, free: 10.66 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002911/0.3058, allocations: 162.1 kB / 464.2 MB, free: 10.5 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.079e-05/0.3058, allocations: 7.922 kB / 464.2 MB, free: 10.49 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.884e-05/0.3059, allocations: 8 kB / 464.2 MB, free: 10.48 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.987e-06/0.3059, allocations: 0 / 464.2 MB, free: 10.48 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002108/0.3061, allocations: 115.9 kB / 464.3 MB, free: 10.37 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005557/0.3067, allocations: 392.6 kB / 464.7 MB, free: 9.934 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000283/0.307, allocations: 170.5 kB / 464.9 MB, free: 9.758 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001782/0.3071, allocations: 120.8 kB / 465 MB, free: 9.637 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.043e-05/0.3072, allocations: 0 / 465 MB, free: 9.637 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003419/0.3075, allocations: 257.1 kB / 465.2 MB, free: 9.363 MB / 346.7 MB Notification: Performance of pre-optimization done (n=23): time 1.573e-06/0.3075, allocations: 0 / 465.2 MB, free: 9.363 MB / 346.7 MB Notification: Performance of matching and sorting (n=23): time 0.0008639/0.3084, allocations: 0.5409 MB / 465.8 MB, free: 8.801 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.086e-05/0.3085, allocations: 110.8 kB / 465.9 MB, free: 8.668 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001767/0.3087, allocations: 210.5 kB / 466.1 MB, free: 8.449 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.57e-05/0.3087, allocations: 29.7 kB / 466.1 MB, free: 8.414 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.934e-05/0.3088, allocations: 120.5 kB / 466.2 MB, free: 8.293 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.712e-05/0.3088, allocations: 55.25 kB / 466.3 MB, free: 8.238 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.387e-05/0.3089, allocations: 4 kB / 466.3 MB, free: 8.234 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001426/0.309, allocations: 338.8 kB / 466.6 MB, free: 7.895 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001819/0.3092, allocations: 104.2 kB / 466.7 MB, free: 7.789 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001825/0.3094, allocations: 104.4 kB / 466.8 MB, free: 7.688 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003996/0.3098, allocations: 341.5 kB / 467.2 MB, free: 7.328 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.3098, allocations: 0 / 467.2 MB, free: 7.328 MB / 346.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006218/0.3104, allocations: 443 kB / 467.6 MB, free: 6.879 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.938e-05/0.3105, allocations: 69.11 kB / 467.7 MB, free: 6.801 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.3105, allocations: 0 / 467.7 MB, free: 6.801 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.279e-05/0.3105, allocations: 0 / 467.7 MB, free: 6.801 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001101/0.3107, allocations: 20 kB / 467.7 MB, free: 6.781 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.025e-06/0.3107, allocations: 3.984 kB / 467.7 MB, free: 6.777 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001277/0.3108, allocations: 27.83 kB / 467.7 MB, free: 6.75 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.016e-05/0.3109, allocations: 16 kB / 467.7 MB, free: 6.734 MB / 346.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 ($whenCondition3,$whenCondition1,$whenCondition2,$whenCondition4,$whenCondition5,$PRE.patientController.t_on,patientController.t_on,$PRE.patientController.t_off,patientController.t_off,$PRE.patientController.active,patientController.active,RR.a,RR.b,RR.last,$PRE.RR.nextEvent,RR.nextEvent,RR.nextEventScaled,dutyCycle.a,dutyCycle.b,dutyCycle.last,$PRE.dutyCycle.nextEvent,dutyCycle.nextEvent,dutyCycle.nextEventScaled) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002017/0.3111, allocations: 218.8 kB / 467.9 MB, free: 6.5 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.422e-05/0.3111, allocations: 19.81 kB / 468 MB, free: 6.48 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.618e-05/0.3112, allocations: 17.86 kB / 468 MB, free: 6.461 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.3112, allocations: 8 kB / 468 MB, free: 6.453 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.3112, allocations: 0 / 468 MB, free: 6.453 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.317e-06/0.3112, allocations: 0 / 468 MB, free: 6.453 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002138/0.3114, allocations: 265.4 kB / 468.2 MB, free: 6.145 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.3114, allocations: 0 / 468.2 MB, free: 6.145 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.527e-05/0.3115, allocations: 11.98 kB / 468.3 MB, free: 6.133 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.03e-06/0.3115, allocations: 4 kB / 468.3 MB, free: 6.129 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.072e-05/0.3115, allocations: 7.938 kB / 468.3 MB, free: 6.121 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.976e-06/0.3115, allocations: 3.984 kB / 468.3 MB, free: 6.117 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.799e-06/0.3115, allocations: 3.938 kB / 468.3 MB, free: 6.113 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006986/0.3122, allocations: 0.5286 MB / 468.8 MB, free: 5.555 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.85e-05/0.3123, allocations: 104.8 kB / 468.9 MB, free: 5.434 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.21e-05/0.3123, allocations: 8 kB / 468.9 MB, free: 5.426 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001164/0.3125, allocations: 15.98 kB / 468.9 MB, free: 5.41 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.273e-05/0.3125, allocations: 23.97 kB / 468.9 MB, free: 5.387 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.273e-05/0.3126, allocations: 19.97 kB / 469 MB, free: 5.367 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001056/0.3127, allocations: 144.3 kB / 469.1 MB, free: 5.227 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3127, allocations: 0 / 469.1 MB, free: 5.227 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00031/0.313, allocations: 83.98 kB / 469.2 MB, free: 5.145 MB / 346.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002435/0.3133, allocations: 167.5 kB / 469.4 MB, free: 4.969 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005154/0.3138, allocations: 402.7 kB / 469.7 MB, free: 4.551 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3138, allocations: 0 / 469.7 MB, free: 4.551 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002797/0.3141, allocations: 290.7 kB / 470 MB, free: 4.242 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002005/0.3143, allocations: 23.92 kB / 470.1 MB, free: 4.219 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005772/0.3149, allocations: 400.9 kB / 470.4 MB, free: 3.805 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000298/0.3152, allocations: 0.7319 MB / 471.2 MB, free: 3.047 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 4.548e-05/0.3152, allocations: 4.562 kB / 471.2 MB, free: 3.043 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.539e-05/0.3153, allocations: 11.44 kB / 471.2 MB, free: 3.031 MB / 346.7 MB Notification: Performance of SimCode: time 2.11e-07/0.3153, allocations: 0 / 471.2 MB, free: 3.031 MB / 346.7 MB Notification: Performance of Templates: time 0.004853/0.3201, allocations: 2.366 MB / 473.6 MB, free: 0.6719 MB / 346.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)