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-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.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.0009168/0.0009168, allocations: 176.1 kB / 16.12 MB, free: 5.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1-master/package.mo): time 0.007112/0.007112, allocations: 1.928 MB / 18.79 MB, free: 3.016 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.352/1.352, allocations: 205.4 MB / 225.5 MB, free: 5.398 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.0008604/0.0008601, allocations: 96.78 kB / 274.3 MB, free: 5.879 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000353/0.0003531, allocations: 12 kB / 333.1 MB, free: 11.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1996/0.2, allocations: 48.08 MB / 381.1 MB, free: 44.38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08141/0.2815, allocations: 76.27 MB / 457.4 MB, free: 1.383 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001861/0.2817, allocations: 67.91 kB / 457.5 MB, free: 1.316 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01415/0.2958, allocations: 4.969 MB / 462.4 MB, free: 12.35 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.2959, allocations: 0 / 462.4 MB, free: 12.35 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.314e-06/0.2959, allocations: 0 / 462.4 MB, free: 12.35 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.0006735/0.2966, allocations: 0.5177 MB / 463 MB, free: 11.77 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.582e-05/0.2966, allocations: 12.03 kB / 463 MB, free: 11.75 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.249e-05/0.2967, allocations: 12.84 kB / 463 MB, free: 11.74 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002691/0.297, allocations: 236.6 kB / 463.2 MB, free: 11.47 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.036e-05/0.297, allocations: 34.27 kB / 463.2 MB, free: 11.43 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.804e-05/0.2971, allocations: 12.36 kB / 463.3 MB, free: 11.42 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000278/0.2974, allocations: 150.1 kB / 463.4 MB, free: 11.27 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.2974, allocations: 11.81 kB / 463.4 MB, free: 11.25 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.86e-05/0.2974, allocations: 8 kB / 463.4 MB, free: 11.25 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.088e-06/0.2974, allocations: 0 / 463.4 MB, free: 11.25 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002058/0.2976, allocations: 107.9 kB / 463.5 MB, free: 11.14 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005391/0.2982, allocations: 388.5 kB / 463.9 MB, free: 10.71 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000271/0.2985, allocations: 158.5 kB / 464.1 MB, free: 10.55 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002037/0.2987, allocations: 112.8 kB / 464.2 MB, free: 10.43 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.484e-05/0.2987, allocations: 7.984 kB / 464.2 MB, free: 10.43 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003339/0.299, allocations: 249.1 kB / 464.4 MB, free: 10.16 MB / 346.7 MB Notification: Performance of pre-optimization done (n=23): time 1.954e-06/0.2991, allocations: 0 / 464.4 MB, free: 10.16 MB / 346.7 MB Notification: Performance of matching and sorting (n=23): time 0.0008207/0.2999, allocations: 0.5127 MB / 464.9 MB, free: 9.633 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.951e-05/0.3, allocations: 118.8 kB / 465.1 MB, free: 9.492 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001527/0.3001, allocations: 187.2 kB / 465.2 MB, free: 9.297 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.888e-05/0.3002, allocations: 29.7 kB / 465.3 MB, free: 9.262 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.011e-05/0.3002, allocations: 112.5 kB / 465.4 MB, free: 9.148 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.041e-05/0.3003, allocations: 51.34 kB / 465.4 MB, free: 9.098 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.467e-05/0.3003, allocations: 8 kB / 465.4 MB, free: 9.09 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001166/0.3004, allocations: 334.7 kB / 465.8 MB, free: 8.754 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001745/0.3006, allocations: 100.2 kB / 465.9 MB, free: 8.656 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000157/0.3008, allocations: 100.4 kB / 466 MB, free: 8.559 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000378/0.3012, allocations: 321.6 kB / 466.3 MB, free: 8.219 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.3012, allocations: 0 / 466.3 MB, free: 8.219 MB / 346.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005895/0.3018, allocations: 421.5 kB / 466.7 MB, free: 7.789 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.093e-05/0.3018, allocations: 74.05 kB / 466.8 MB, free: 7.707 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.193e-06/0.3019, allocations: 4 kB / 466.8 MB, free: 7.703 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.379e-05/0.3019, allocations: 4 kB / 466.8 MB, free: 7.699 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001128/0.302, allocations: 19.98 kB / 466.8 MB, free: 7.68 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.922e-06/0.302, allocations: 0 / 466.8 MB, free: 7.68 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001316/0.3021, allocations: 23.83 kB / 466.8 MB, free: 7.656 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.721e-05/0.3022, allocations: 12 kB / 466.8 MB, free: 7.645 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.0001753/0.3024, allocations: 218.8 kB / 467 MB, free: 7.41 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.119e-05/0.3024, allocations: 23.81 kB / 467.1 MB, free: 7.387 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.068e-05/0.3025, allocations: 21.86 kB / 467.1 MB, free: 7.367 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.3025, allocations: 0 / 467.1 MB, free: 7.367 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/0.3025, allocations: 4 kB / 467.1 MB, free: 7.363 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.3025, allocations: 0 / 467.1 MB, free: 7.363 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002482/0.3028, allocations: 253.4 kB / 467.3 MB, free: 7.066 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.3028, allocations: 0 / 467.3 MB, free: 7.066 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.75e-05/0.3028, allocations: 12 kB / 467.3 MB, free: 7.055 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.997e-06/0.3028, allocations: 4 kB / 467.3 MB, free: 7.051 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.42e-05/0.3029, allocations: 7.984 kB / 467.4 MB, free: 7.043 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.3029, allocations: 4 kB / 467.4 MB, free: 7.039 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.3029, allocations: 4 kB / 467.4 MB, free: 7.035 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007085/0.3036, allocations: 0.5049 MB / 467.9 MB, free: 6.5 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.696e-05/0.3037, allocations: 104.7 kB / 468 MB, free: 6.379 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.309e-05/0.3037, allocations: 8 kB / 468 MB, free: 6.371 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001115/0.3038, allocations: 19.98 kB / 468 MB, free: 6.352 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.797e-05/0.3039, allocations: 15.98 kB / 468 MB, free: 6.336 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.757e-05/0.304, allocations: 15.98 kB / 468 MB, free: 6.32 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001177/0.3041, allocations: 139.2 kB / 468.2 MB, free: 6.184 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3041, allocations: 0 / 468.2 MB, free: 6.184 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003761/0.3045, allocations: 83.94 kB / 468.2 MB, free: 6.102 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.0002934/0.3048, allocations: 163.5 kB / 468.4 MB, free: 5.934 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005037/0.3053, allocations: 406.6 kB / 468.8 MB, free: 5.512 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.584e-06/0.3053, allocations: 0 / 468.8 MB, free: 5.512 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002837/0.3056, allocations: 278.7 kB / 469.1 MB, free: 5.215 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002318/0.3058, allocations: 23.92 kB / 469.1 MB, free: 5.191 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006022/0.3064, allocations: 370.1 kB / 469.5 MB, free: 4.801 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002911/0.3068, allocations: 0.728 MB / 470.2 MB, free: 4.047 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 5.258e-05/0.3068, allocations: 8.547 kB / 470.2 MB, free: 4.039 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.59e-05/0.3068, allocations: 15.44 kB / 470.2 MB, free: 4.023 MB / 346.7 MB Notification: Performance of SimCode: time 3.31e-07/0.3069, allocations: 0 / 470.2 MB, free: 4.023 MB / 346.7 MB Notification: Performance of Templates: time 0.005301/0.3122, allocations: 2.348 MB / 472.6 MB, free: 1.676 MB / 346.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)