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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007409/0.007409, allocations: 98.92 kB / 15.73 MB, free: 6.055 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.001702/0.001702, allocations: 202.2 kB / 16.68 MB, free: 5.977 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.458/1.458, allocations: 205.1 MB / 222.6 MB, free: 4.531 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.0103/0.0103, allocations: 1.931 MB / 271.8 MB, free: 3.262 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.001505/0.001505, allocations: 67.91 kB / 378.2 MB, free: 448 kB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1061, allocations: 47.14 MB / 425.4 MB, free: 1.199 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController2): time 0.1924/0.2985, allocations: 1.524 MB / 426.9 MB, free: 11.04 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001165/0.2997, allocations: 0.7425 MB / 427.6 MB, free: 10.72 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.65e-05/0.2998, allocations: 5.406 kB / 427.7 MB, free: 10.71 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001468/0.3, allocations: 55.33 kB / 427.7 MB, free: 10.71 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001208/0.3001, allocations: 72.58 kB / 427.8 MB, free: 10.7 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006171/0.3008, allocations: 165.8 kB / 427.9 MB, free: 10.66 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002183/0.301, allocations: 173.6 kB / 428.1 MB, free: 10.64 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.496e-05/0.3011, allocations: 13.73 kB / 428.1 MB, free: 10.64 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001153/0.3012, allocations: 83.08 kB / 428.2 MB, free: 10.63 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000208/0.3014, allocations: 117.5 kB / 428.3 MB, free: 10.61 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.475e-05/0.3015, allocations: 9.406 kB / 428.3 MB, free: 10.61 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002598/0.3017, allocations: 153.9 kB / 428.5 MB, free: 10.61 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.66e-05/0.3018, allocations: 37.66 kB / 428.5 MB, free: 10.61 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.816e-05/0.3019, allocations: 72.27 kB / 428.6 MB, free: 10.58 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004362/0.3024, allocations: 229.8 kB / 428.8 MB, free: 10.55 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.3024, allocations: 3.938 kB / 428.8 MB, free: 10.55 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3024, allocations: 0 / 428.8 MB, free: 10.55 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.614e-06/0.3024, allocations: 1.031 kB / 428.8 MB, free: 10.55 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.0008265/0.3032, allocations: 0.5424 MB / 429.4 MB, free: 10.06 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.436e-05/0.3033, allocations: 13.14 kB / 429.4 MB, free: 10.05 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.273e-05/0.3034, allocations: 20.64 kB / 429.4 MB, free: 10.05 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003116/0.3037, allocations: 228.2 kB / 429.6 MB, free: 9.82 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.499e-05/0.3038, allocations: 35.84 kB / 429.7 MB, free: 9.789 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.617e-05/0.3038, allocations: 14.19 kB / 429.7 MB, free: 9.789 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003077/0.3041, allocations: 143.9 kB / 429.8 MB, free: 9.75 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.3041, allocations: 0 / 429.8 MB, free: 9.75 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.744e-05/0.3042, allocations: 1.406 kB / 429.8 MB, free: 9.75 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.3042, allocations: 1.5 kB / 429.8 MB, free: 9.75 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002324/0.3044, allocations: 93.56 kB / 429.9 MB, free: 9.75 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005758/0.305, allocations: 367 kB / 430.3 MB, free: 9.477 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003129/0.3053, allocations: 146.3 kB / 430.4 MB, free: 9.445 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001794/0.3055, allocations: 108.3 kB / 430.5 MB, free: 9.438 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.345e-05/0.3055, allocations: 2.031 kB / 430.5 MB, free: 9.438 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003473/0.3059, allocations: 244.7 kB / 430.7 MB, free: 9.309 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.743e-06/0.3059, allocations: 0 / 430.7 MB, free: 9.309 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008123/0.3067, allocations: 470.5 kB / 431.2 MB, free: 9.199 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.77e-05/0.3068, allocations: 118.7 kB / 431.3 MB, free: 9.07 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001782/0.307, allocations: 196.4 kB / 431.5 MB, free: 8.965 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.501e-05/0.307, allocations: 33.03 kB / 431.5 MB, free: 8.93 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.784e-05/0.3071, allocations: 116 kB / 431.7 MB, free: 8.824 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.151e-05/0.3071, allocations: 52.23 kB / 431.7 MB, free: 8.785 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.875e-05/0.3072, allocations: 48.23 kB / 431.8 MB, free: 8.754 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.269e-05/0.3073, allocations: 335.2 kB / 432.1 MB, free: 8.43 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001624/0.3074, allocations: 85.03 kB / 432.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001411/0.3076, allocations: 92.53 kB / 432.3 MB, free: 8.387 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002975/0.3079, allocations: 299.7 kB / 432.6 MB, free: 8.195 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.3079, allocations: 0 / 432.6 MB, free: 8.195 MB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004782/0.3084, allocations: 394.5 kB / 432.9 MB, free: 8.016 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.285e-05/0.3084, allocations: 74.91 kB / 433 MB, free: 7.945 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.04e-06/0.3085, allocations: 1.188 kB / 433 MB, free: 7.945 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.287e-05/0.3085, allocations: 0 / 433 MB, free: 7.945 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001082/0.3086, allocations: 21.61 kB / 433 MB, free: 7.941 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.832e-06/0.3086, allocations: 1.156 kB / 433 MB, free: 7.941 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001225/0.3087, allocations: 21.72 kB / 433.1 MB, free: 7.934 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.917e-05/0.3088, allocations: 10.84 kB / 433.1 MB, free: 7.93 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.0001375/0.3089, allocations: 235.1 kB / 433.3 MB, free: 7.719 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.441e-05/0.3089, allocations: 24.03 kB / 433.3 MB, free: 7.707 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.556e-05/0.309, allocations: 22.12 kB / 433.3 MB, free: 7.691 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.484e-06/0.309, allocations: 2.75 kB / 433.3 MB, free: 7.691 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/0.309, allocations: 0 / 433.3 MB, free: 7.691 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.309, allocations: 1.078 kB / 433.3 MB, free: 7.691 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001906/0.3092, allocations: 256.9 kB / 433.6 MB, free: 7.465 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.3092, allocations: 0 / 433.6 MB, free: 7.465 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.91e-05/0.3093, allocations: 9.594 kB / 433.6 MB, free: 7.465 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.524e-06/0.3093, allocations: 1.031 kB / 433.6 MB, free: 7.465 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.825e-05/0.3093, allocations: 7.469 kB / 433.6 MB, free: 7.465 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.3093, allocations: 4 kB / 433.6 MB, free: 7.461 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.3093, allocations: 1.094 kB / 433.6 MB, free: 7.461 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006138/0.31, allocations: 470.7 kB / 434.1 MB, free: 7.227 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.091e-05/0.31, allocations: 99.2 kB / 434.2 MB, free: 7.117 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.641e-05/0.3101, allocations: 10.33 kB / 434.2 MB, free: 7.113 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000114/0.3102, allocations: 11.83 kB / 434.2 MB, free: 7.113 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.489e-05/0.3103, allocations: 20.77 kB / 434.2 MB, free: 7.105 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.362e-05/0.3103, allocations: 13.55 kB / 434.2 MB, free: 7.102 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001268/0.3104, allocations: 149.4 kB / 434.4 MB, free: 7.008 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.3104, allocations: 0 / 434.4 MB, free: 7.008 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003417/0.3108, allocations: 76.17 kB / 434.4 MB, free: 7 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.0002283/0.311, allocations: 153.9 kB / 434.6 MB, free: 6.895 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000527/0.3116, allocations: 404.7 kB / 435 MB, free: 6.668 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.3116, allocations: 6.031 kB / 435 MB, free: 6.664 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002701/0.3119, allocations: 291.1 kB / 435.3 MB, free: 6.465 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002268/0.3121, allocations: 20.95 kB / 435.3 MB, free: 6.457 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005916/0.3127, allocations: 367.4 kB / 435.7 MB, free: 6.246 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001829/0.3129, allocations: 0.7244 MB / 436.4 MB, free: 5.551 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.79e-05/0.3129, allocations: 11.09 kB / 436.4 MB, free: 5.543 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.132e-05/0.313, allocations: 18.31 kB / 436.4 MB, free: 5.531 MB / 318.1 MB Notification: Performance of SimCode: time 3.3e-07/0.313, allocations: 0 / 436.4 MB, free: 5.531 MB / 318.1 MB Notification: Performance of Templates: time 0.007023/0.32, allocations: 2.645 MB / 439.1 MB, free: 5.32 MB / 318.1 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)