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.005382/0.005382, allocations: 99.83 kB / 15.73 MB, free: 6.02 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.001154/0.001155, allocations: 189.5 kB / 16.67 MB, free: 5.938 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.386/1.386, allocations: 205.1 MB / 222.5 MB, free: 4.496 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.008631/0.008632, allocations: 1.932 MB / 271.8 MB, free: 3.223 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.001576/0.001576, allocations: 67.89 kB / 378.2 MB, free: 440 kB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08847/0.09005, allocations: 47.13 MB / 425.4 MB, free: 1.195 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController1): time 0.198/0.2881, allocations: 1.511 MB / 426.9 MB, free: 11.65 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001327/0.2894, allocations: 0.7413 MB / 427.6 MB, free: 11.32 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001102/0.2896, allocations: 0 / 427.6 MB, free: 11.32 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001627/0.2898, allocations: 59.56 kB / 427.7 MB, free: 11.3 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001538/0.29, allocations: 65.27 kB / 427.7 MB, free: 11.29 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007954/0.2908, allocations: 171.3 kB / 427.9 MB, free: 11.25 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002954/0.2911, allocations: 165.2 kB / 428.1 MB, free: 11.24 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001032/0.2912, allocations: 17.31 kB / 428.1 MB, free: 11.23 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000164/0.2913, allocations: 74.17 kB / 428.2 MB, free: 11.23 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002345/0.2916, allocations: 103.6 kB / 428.3 MB, free: 11.21 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.628e-05/0.2916, allocations: 13.06 kB / 428.3 MB, free: 11.21 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000304/0.292, allocations: 161.8 kB / 428.4 MB, free: 11.21 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.004e-05/0.292, allocations: 32.42 kB / 428.5 MB, free: 11.2 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001/0.2922, allocations: 58.94 kB / 428.5 MB, free: 11.18 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004507/0.2926, allocations: 230.6 kB / 428.7 MB, free: 11.14 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.2926, allocations: 0 / 428.7 MB, free: 11.14 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2926, allocations: 3.938 kB / 428.8 MB, free: 11.14 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.184e-06/0.2927, allocations: 1.875 kB / 428.8 MB, free: 11.14 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.0008523/0.2935, allocations: 0.5257 MB / 429.3 MB, free: 10.64 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.92e-05/0.2936, allocations: 17.27 kB / 429.3 MB, free: 10.64 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.791e-05/0.2936, allocations: 19.25 kB / 429.3 MB, free: 10.63 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002944/0.2939, allocations: 219 kB / 429.5 MB, free: 10.41 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.339e-05/0.294, allocations: 32.5 kB / 429.6 MB, free: 10.38 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.613e-05/0.294, allocations: 12.64 kB / 429.6 MB, free: 10.37 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000298/0.2943, allocations: 138.5 kB / 429.7 MB, free: 10.31 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.287e-06/0.2944, allocations: 5.312 kB / 429.7 MB, free: 10.3 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.018e-05/0.2944, allocations: 2.953 kB / 429.7 MB, free: 10.3 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.833e-06/0.2944, allocations: 5.656 kB / 429.7 MB, free: 10.3 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002127/0.2946, allocations: 89.58 kB / 429.8 MB, free: 10.28 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005461/0.2952, allocations: 365.8 kB / 430.2 MB, free: 9.969 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00028/0.2955, allocations: 138.2 kB / 430.3 MB, free: 9.906 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001638/0.2956, allocations: 100.8 kB / 430.4 MB, free: 9.867 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.254e-05/0.2957, allocations: 5.906 kB / 430.4 MB, free: 9.863 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000321/0.296, allocations: 236.2 kB / 430.6 MB, free: 9.715 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.813e-06/0.296, allocations: 0 / 430.6 MB, free: 9.715 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.000778/0.2968, allocations: 461.1 kB / 431.1 MB, free: 9.523 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.07e-05/0.2969, allocations: 119 kB / 431.2 MB, free: 9.391 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001586/0.297, allocations: 183.7 kB / 431.4 MB, free: 9.27 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.278e-05/0.2971, allocations: 33.73 kB / 431.4 MB, free: 9.234 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.187e-05/0.2971, allocations: 109.3 kB / 431.5 MB, free: 9.133 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.038e-05/0.2972, allocations: 56.58 kB / 431.6 MB, free: 9.09 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.283e-05/0.2972, allocations: 44.42 kB / 431.6 MB, free: 9.062 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.84e-05/0.2973, allocations: 334.7 kB / 431.9 MB, free: 8.738 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001631/0.2975, allocations: 80.98 kB / 432 MB, free: 8.719 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001517/0.2976, allocations: 92.89 kB / 432.1 MB, free: 8.691 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000326/0.298, allocations: 290.3 kB / 432.4 MB, free: 8.5 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.298, allocations: 1.062 kB / 432.4 MB, free: 8.5 MB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005353/0.2985, allocations: 382.8 kB / 432.8 MB, free: 8.32 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.828e-05/0.2986, allocations: 69.59 kB / 432.8 MB, free: 8.254 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.181e-06/0.2986, allocations: 0 / 432.8 MB, free: 8.254 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.996e-05/0.2986, allocations: 2.484 kB / 432.8 MB, free: 8.254 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001097/0.2987, allocations: 15.38 kB / 432.9 MB, free: 8.254 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.137e-06/0.2988, allocations: 9.766 kB / 432.9 MB, free: 8.246 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001477/0.2989, allocations: 20.97 kB / 432.9 MB, free: 8.238 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.239e-05/0.2989, allocations: 11.97 kB / 432.9 MB, free: 8.234 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.0001782/0.2991, allocations: 221.5 kB / 433.1 MB, free: 8.031 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.432e-05/0.2992, allocations: 22.42 kB / 433.1 MB, free: 8.023 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.541e-05/0.2992, allocations: 22 kB / 433.2 MB, free: 8.008 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.2992, allocations: 1.062 kB / 433.2 MB, free: 8.008 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/0.2993, allocations: 5.25 kB / 433.2 MB, free: 8.004 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.2993, allocations: 0.75 kB / 433.2 MB, free: 8.004 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000199/0.2995, allocations: 244.8 kB / 433.4 MB, free: 7.785 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/0.2995, allocations: 1.125 kB / 433.4 MB, free: 7.785 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.46e-05/0.2995, allocations: 13.44 kB / 433.4 MB, free: 7.781 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.2995, allocations: 1.094 kB / 433.4 MB, free: 7.781 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.661e-05/0.2996, allocations: 7.578 kB / 433.4 MB, free: 7.781 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.445e-06/0.2996, allocations: 1.125 kB / 433.4 MB, free: 7.781 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.2996, allocations: 0 / 433.4 MB, free: 7.781 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006141/0.3002, allocations: 468.3 kB / 433.9 MB, free: 7.539 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.952e-05/0.3003, allocations: 93.7 kB / 434 MB, free: 7.434 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.618e-05/0.3003, allocations: 11.11 kB / 434 MB, free: 7.43 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001083/0.3004, allocations: 12.28 kB / 434 MB, free: 7.43 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.857e-05/0.3005, allocations: 20.55 kB / 434 MB, free: 7.422 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.165e-05/0.3006, allocations: 8.953 kB / 434 MB, free: 7.422 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001028/0.3007, allocations: 137.3 kB / 434.2 MB, free: 7.332 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3007, allocations: 0 / 434.2 MB, free: 7.332 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003823/0.3011, allocations: 84.39 kB / 434.2 MB, free: 7.316 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.0002807/0.3014, allocations: 165.7 kB / 434.4 MB, free: 7.203 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005367/0.3019, allocations: 399.4 kB / 434.8 MB, free: 6.977 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3019, allocations: 0 / 434.8 MB, free: 6.977 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000259/0.3022, allocations: 287.6 kB / 435.1 MB, free: 6.777 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002182/0.3024, allocations: 21.19 kB / 435.1 MB, free: 6.77 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005729/0.303, allocations: 343 kB / 435.4 MB, free: 6.566 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001781/0.3032, allocations: 0.719 MB / 436.2 MB, free: 5.871 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.55e-05/0.3032, allocations: 15.92 kB / 436.2 MB, free: 5.863 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.063e-05/0.3033, allocations: 18.19 kB / 436.2 MB, free: 5.852 MB / 318.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3033, allocations: 0 / 436.2 MB, free: 5.852 MB / 318.1 MB Notification: Performance of Templates: time 0.008096/0.3114, allocations: 2.639 MB / 438.8 MB, free: 5.633 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)