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.00157/0.00157, allocations: 108.6 kB / 15.73 MB, free: 72 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001831/0.001831, allocations: 186.8 kB / 16.66 MB, free: 6.602 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.455/1.455, allocations: 205.1 MB / 222.5 MB, free: 4.488 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.009725/0.009725, allocations: 1.935 MB / 271.8 MB, free: 3.227 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.001364/0.001364, allocations: 68.47 kB / 378.2 MB, free: 436 kB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09063/0.09201, allocations: 47.13 MB / 425.4 MB, free: 1.188 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController2): time 0.2142/0.3063, allocations: 1.511 MB / 426.9 MB, free: 11.04 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001579/0.3079, allocations: 0.745 MB / 427.6 MB, free: 10.71 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001529/0.3081, allocations: 1.281 kB / 427.6 MB, free: 10.71 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001884/0.3084, allocations: 65.23 kB / 427.7 MB, free: 10.7 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00016/0.3085, allocations: 73.25 kB / 427.8 MB, free: 10.68 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007783/0.3093, allocations: 170 kB / 427.9 MB, free: 10.65 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003455/0.3097, allocations: 169.7 kB / 428.1 MB, free: 10.63 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001024/0.3098, allocations: 11.84 kB / 428.1 MB, free: 10.63 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001834/0.31, allocations: 82.97 kB / 428.2 MB, free: 10.62 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002648/0.3103, allocations: 108.3 kB / 428.3 MB, free: 10.61 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.075e-05/0.3103, allocations: 10.09 kB / 428.3 MB, free: 10.61 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003351/0.3107, allocations: 160.5 kB / 428.5 MB, free: 10.6 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.934e-05/0.3108, allocations: 37.92 kB / 428.5 MB, free: 10.59 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001162/0.3109, allocations: 69.94 kB / 428.6 MB, free: 10.57 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000525/0.3114, allocations: 228.4 kB / 428.8 MB, free: 10.54 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.3114, allocations: 1.469 kB / 428.8 MB, free: 10.54 MB / 318.1 MB Notification: Performance of FrontEnd: time 9.82e-07/0.3114, allocations: 0.625 kB / 428.8 MB, free: 10.54 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.647e-05/0.3115, allocations: 4.562 kB / 428.8 MB, free: 10.54 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.001044/0.3125, allocations: 0.5388 MB / 429.3 MB, free: 10.05 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.16e-05/0.3126, allocations: 13.52 kB / 429.4 MB, free: 10.04 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.665e-05/0.3127, allocations: 23.5 kB / 429.4 MB, free: 10.03 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003684/0.313, allocations: 226 kB / 429.6 MB, free: 9.809 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.232e-05/0.3131, allocations: 36.33 kB / 429.6 MB, free: 9.777 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.773e-05/0.3132, allocations: 17.14 kB / 429.6 MB, free: 9.773 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003573/0.3135, allocations: 136.7 kB / 429.8 MB, free: 9.738 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.334e-05/0.3136, allocations: 0 / 429.8 MB, free: 9.738 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.588e-05/0.3136, allocations: 9.109 kB / 429.8 MB, free: 9.734 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.085e-06/0.3136, allocations: 3.234 kB / 429.8 MB, free: 9.734 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00024/0.3139, allocations: 93.52 kB / 429.9 MB, free: 9.734 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006225/0.3145, allocations: 369.2 kB / 430.2 MB, free: 9.457 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000324/0.3148, allocations: 147.7 kB / 430.4 MB, free: 9.426 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001859/0.315, allocations: 104.2 kB / 430.5 MB, free: 9.418 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.631e-05/0.3151, allocations: 1.156 kB / 430.5 MB, free: 9.418 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000399/0.3155, allocations: 246.4 kB / 430.7 MB, free: 9.289 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 2.104e-06/0.3155, allocations: 0 / 430.7 MB, free: 9.289 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0009534/0.3164, allocations: 474.2 kB / 431.2 MB, free: 9.18 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.239e-05/0.3165, allocations: 119.3 kB / 431.3 MB, free: 9.051 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002792/0.3168, allocations: 201.4 kB / 431.5 MB, free: 8.941 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.161e-05/0.3169, allocations: 29.14 kB / 431.5 MB, free: 8.91 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.851e-05/0.317, allocations: 116.2 kB / 431.7 MB, free: 8.812 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.048e-05/0.317, allocations: 55.61 kB / 431.7 MB, free: 8.77 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001007/0.3172, allocations: 48.86 kB / 431.8 MB, free: 8.738 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.939e-05/0.3172, allocations: 334 kB / 432.1 MB, free: 8.414 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001777/0.3174, allocations: 90.03 kB / 432.2 MB, free: 8.391 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001701/0.3176, allocations: 86.98 kB / 432.3 MB, free: 8.371 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003573/0.318, allocations: 296.6 kB / 432.5 MB, free: 8.18 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.318, allocations: 1.438 kB / 432.5 MB, free: 8.18 MB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005738/0.3186, allocations: 400.6 kB / 432.9 MB, free: 7.996 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.419e-05/0.3186, allocations: 73.84 kB / 433 MB, free: 7.926 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.3186, allocations: 0 / 433 MB, free: 7.926 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.972e-05/0.3187, allocations: 1.781 kB / 433 MB, free: 7.926 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001148/0.3188, allocations: 15.55 kB / 433 MB, free: 7.926 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.786e-06/0.3188, allocations: 1.703 kB / 433 MB, free: 7.926 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001522/0.319, allocations: 21.25 kB / 433 MB, free: 7.918 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.621e-05/0.319, allocations: 10.78 kB / 433.1 MB, free: 7.914 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.0001672/0.3192, allocations: 228.1 kB / 433.3 MB, free: 7.707 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.45e-05/0.3192, allocations: 20.47 kB / 433.3 MB, free: 7.699 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.286e-05/0.3193, allocations: 23.5 kB / 433.3 MB, free: 7.684 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-06/0.3193, allocations: 2.219 kB / 433.3 MB, free: 7.684 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.171e-06/0.3193, allocations: 0 / 433.3 MB, free: 7.684 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.129e-06/0.3193, allocations: 1.172 kB / 433.3 MB, free: 7.684 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002222/0.3195, allocations: 255.6 kB / 433.6 MB, free: 7.457 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.818e-06/0.3195, allocations: 1.344 kB / 433.6 MB, free: 7.457 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.823e-05/0.3196, allocations: 10.84 kB / 433.6 MB, free: 7.457 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.479e-06/0.3196, allocations: 2.156 kB / 433.6 MB, free: 7.457 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.509e-05/0.3196, allocations: 13.94 kB / 433.6 MB, free: 7.449 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.996e-06/0.3197, allocations: 3.5 kB / 433.6 MB, free: 7.449 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.3197, allocations: 0.8906 kB / 433.6 MB, free: 7.449 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006886/0.3204, allocations: 466.6 kB / 434.1 MB, free: 7.219 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.033e-05/0.3204, allocations: 98.06 kB / 434.2 MB, free: 7.109 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.849e-05/0.3205, allocations: 10.86 kB / 434.2 MB, free: 7.105 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001103/0.3206, allocations: 12.22 kB / 434.2 MB, free: 7.105 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.131e-05/0.3207, allocations: 20.03 kB / 434.2 MB, free: 7.098 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.45e-05/0.3207, allocations: 12.97 kB / 434.2 MB, free: 7.094 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001186/0.3208, allocations: 150.6 kB / 434.4 MB, free: 7 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3208, allocations: 0 / 434.4 MB, free: 7 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003923/0.3212, allocations: 77.06 kB / 434.4 MB, free: 6.992 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.0002968/0.3215, allocations: 155 kB / 434.6 MB, free: 6.887 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005555/0.3221, allocations: 412.1 kB / 435 MB, free: 6.652 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.3221, allocations: 1.719 kB / 435 MB, free: 6.652 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002929/0.3224, allocations: 291.2 kB / 435.3 MB, free: 6.453 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002467/0.3227, allocations: 21.14 kB / 435.3 MB, free: 6.445 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006667/0.3234, allocations: 371 kB / 435.7 MB, free: 6.23 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002344/0.3236, allocations: 0.7326 MB / 436.4 MB, free: 5.527 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 5.629e-05/0.3237, allocations: 8.047 kB / 436.4 MB, free: 5.523 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.241e-05/0.3237, allocations: 13.25 kB / 436.4 MB, free: 5.516 MB / 318.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3237, allocations: 0 / 436.4 MB, free: 5.516 MB / 318.1 MB Notification: Performance of Templates: time 0.007726/0.3315, allocations: 2.642 MB / 439.1 MB, free: 5.309 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)