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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001189/0.001189, allocations: 107.8 kB / 16.41 MB, free: 6.504 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.001163/0.001163, allocations: 193.6 kB / 17.35 MB, free: 5.762 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.189/1.189, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.008061/0.008061, allocations: 1.932 MB / 272.5 MB, free: 10.07 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.001435/0.001435, allocations: 68.52 kB / 378.9 MB, free: 51.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06017/0.06161, allocations: 47.13 MB / 426 MB, free: 19.96 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController1): time 0.001988/0.06363, allocations: 1.527 MB / 427.6 MB, free: 18.43 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008676/0.06452, allocations: 0.737 MB / 428.3 MB, free: 17.68 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.499e-05/0.0646, allocations: 4 kB / 428.3 MB, free: 17.68 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 9.404e-05/0.06472, allocations: 55.8 kB / 428.4 MB, free: 17.62 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.65e-05/0.06481, allocations: 59.8 kB / 428.4 MB, free: 17.56 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004639/0.06528, allocations: 167.5 kB / 428.6 MB, free: 17.4 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001557/0.06544, allocations: 171.6 kB / 428.8 MB, free: 17.23 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.997e-05/0.06552, allocations: 4 kB / 428.8 MB, free: 17.23 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.826e-05/0.06561, allocations: 83.73 kB / 428.8 MB, free: 17.14 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001558/0.06577, allocations: 107.8 kB / 428.9 MB, free: 17.04 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.545e-05/0.06581, allocations: 19.88 kB / 429 MB, free: 17.02 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001679/0.06598, allocations: 155.8 kB / 429.1 MB, free: 16.87 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.69e-05/0.06604, allocations: 31.84 kB / 429.1 MB, free: 16.84 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.863e-05/0.0661, allocations: 67.64 kB / 429.2 MB, free: 16.77 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002209/0.06633, allocations: 231.9 kB / 429.4 MB, free: 16.54 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.974e-06/0.06634, allocations: 0 / 429.4 MB, free: 16.54 MB / 318.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.06634, allocations: 0 / 429.4 MB, free: 16.54 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.987e-06/0.06635, allocations: 4 kB / 429.4 MB, free: 16.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.0005626/0.06692, allocations: 0.523 MB / 430 MB, free: 15.96 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.869e-05/0.06695, allocations: 11.89 kB / 430 MB, free: 15.95 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.105e-05/0.06701, allocations: 16.84 kB / 430 MB, free: 15.93 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001511/0.06717, allocations: 216.6 kB / 430.2 MB, free: 15.68 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.864e-05/0.06721, allocations: 34.27 kB / 430.2 MB, free: 15.64 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.247e-05/0.06724, allocations: 12.38 kB / 430.3 MB, free: 15.63 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001966/0.06744, allocations: 133.7 kB / 430.4 MB, free: 15.49 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.06746, allocations: 0 / 430.4 MB, free: 15.49 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.541e-05/0.06748, allocations: 8 kB / 430.4 MB, free: 15.48 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.417e-06/0.06749, allocations: 0 / 430.4 MB, free: 15.48 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001456/0.06764, allocations: 87.94 kB / 430.5 MB, free: 15.4 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003498/0.068, allocations: 372.5 kB / 430.8 MB, free: 14.98 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001937/0.0682, allocations: 142.6 kB / 431 MB, free: 14.84 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001083/0.06832, allocations: 96.83 kB / 431.1 MB, free: 14.74 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.849e-06/0.06834, allocations: 0 / 431.1 MB, free: 14.74 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002271/0.06857, allocations: 246.4 kB / 431.3 MB, free: 14.47 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.663e-06/0.06858, allocations: 0 / 431.3 MB, free: 14.47 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0005327/0.06912, allocations: 452.8 kB / 431.8 MB, free: 14.01 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.69e-05/0.06916, allocations: 114.8 kB / 431.9 MB, free: 13.88 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.343e-05/0.06926, allocations: 183.3 kB / 432 MB, free: 13.69 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.749e-05/0.06928, allocations: 33.7 kB / 432.1 MB, free: 13.65 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.292e-05/0.06932, allocations: 112.5 kB / 432.2 MB, free: 13.54 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.349e-05/0.06936, allocations: 55.28 kB / 432.2 MB, free: 13.48 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.424e-05/0.06942, allocations: 49.7 kB / 432.3 MB, free: 13.43 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.841e-05/0.06946, allocations: 334.8 kB / 432.6 MB, free: 13.09 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001173/0.06958, allocations: 80.2 kB / 432.7 MB, free: 13.01 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001157/0.06971, allocations: 92.36 kB / 432.8 MB, free: 12.92 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002245/0.06994, allocations: 293.7 kB / 433.1 MB, free: 12.61 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.06995, allocations: 0 / 433.1 MB, free: 12.61 MB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003521/0.0703, allocations: 377 kB / 433.4 MB, free: 12.22 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.03e-05/0.07034, allocations: 71.39 kB / 433.5 MB, free: 12.14 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.868e-06/0.07035, allocations: 3.938 kB / 433.5 MB, free: 12.14 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.162e-05/0.07037, allocations: 3.938 kB / 433.5 MB, free: 12.13 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.368e-05/0.07047, allocations: 23.92 kB / 433.5 MB, free: 12.11 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.599e-06/0.07048, allocations: 4 kB / 433.5 MB, free: 12.11 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001083/0.07059, allocations: 15.89 kB / 433.6 MB, free: 12.09 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.576e-05/0.07062, allocations: 12 kB / 433.6 MB, free: 12.08 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.0001101/0.07073, allocations: 214.9 kB / 433.8 MB, free: 11.84 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.983e-05/0.07077, allocations: 23.8 kB / 433.8 MB, free: 11.82 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.944e-05/0.0708, allocations: 17.86 kB / 433.8 MB, free: 11.8 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.07081, allocations: 0 / 433.8 MB, free: 11.8 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.07082, allocations: 4 kB / 433.8 MB, free: 11.8 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.761e-05/0.07085, allocations: 96.86 kB / 433.9 MB, free: 11.68 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.905e-05/0.0709, allocations: 7.984 kB / 433.9 MB, free: 11.68 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001034/0.071, allocations: 19.92 kB / 434 MB, free: 11.66 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.399e-05/0.07108, allocations: 19.98 kB / 434 MB, free: 11.64 MB / 318.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.000516/0.0716, allocations: 0.6043 MB / 434.6 MB, free: 10.99 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0004685/0.07208, allocations: 0.5882 MB / 435.2 MB, free: 10.37 MB / 318.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001598/0.07225, allocations: 163.9 kB / 435.3 MB, free: 10.21 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.379e-05/0.07233, allocations: 139.2 kB / 435.5 MB, free: 10.07 MB / 318.1 MB Notification: Performance of Backend: time 7.51e-07/0.07234, allocations: 0 / 435.5 MB, free: 10.07 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006582/0.073, allocations: 430.5 kB / 435.9 MB, free: 9.625 MB / 318.1 MB Notification: Performance of SimCode: time 0.0004813/0.07349, allocations: 0.8196 MB / 436.7 MB, free: 8.727 MB / 318.1 MB Notification: Performance of Templates: time 0.004726/0.07823, allocations: 2.851 MB / 439.5 MB, free: 5.875 MB / 318.1 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)