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.001391/0.001391, allocations: 105 kB / 16.41 MB, free: 5.977 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.001155/0.001156, allocations: 188.8 kB / 17.34 MB, free: 5.586 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.329/1.329, allocations: 205.1 MB / 223.2 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.009471/0.009471, allocations: 1.935 MB / 272.5 MB, free: 10.05 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.001406/0.001406, allocations: 65.53 kB / 378.9 MB, free: 52.11 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06898/0.07039, allocations: 47.15 MB / 426.1 MB, free: 20.08 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController2): time 0.002033/0.07246, allocations: 1.518 MB / 427.6 MB, free: 18.55 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008824/0.07336, allocations: 0.741 MB / 428.3 MB, free: 17.8 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.947e-05/0.07343, allocations: 7.938 kB / 428.3 MB, free: 17.79 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001132/0.07356, allocations: 63.83 kB / 428.4 MB, free: 17.73 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.421e-05/0.07365, allocations: 67.72 kB / 428.4 MB, free: 17.66 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004798/0.07413, allocations: 163.6 kB / 428.6 MB, free: 17.5 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001639/0.07431, allocations: 179.6 kB / 428.8 MB, free: 17.33 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.569e-05/0.0744, allocations: 11.94 kB / 428.8 MB, free: 17.32 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.635e-05/0.07449, allocations: 87.72 kB / 428.9 MB, free: 17.23 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001438/0.07464, allocations: 115.7 kB / 429 MB, free: 17.12 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.453e-05/0.07467, allocations: 12 kB / 429 MB, free: 17.11 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001695/0.07485, allocations: 155.8 kB / 429.2 MB, free: 16.95 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.366e-05/0.07491, allocations: 31.91 kB / 429.2 MB, free: 16.92 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.421e-05/0.07498, allocations: 71.59 kB / 429.3 MB, free: 16.85 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002177/0.0752, allocations: 231.9 kB / 429.5 MB, free: 16.62 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.798e-06/0.07521, allocations: 3.938 kB / 429.5 MB, free: 16.62 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.07522, allocations: 0 / 429.5 MB, free: 16.62 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.06e-06/0.07523, allocations: 0 / 429.5 MB, free: 16.62 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.0006135/0.07585, allocations: 0.5333 MB / 430 MB, free: 16.03 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.943e-05/0.07588, allocations: 11.89 kB / 430 MB, free: 16.02 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.279e-05/0.07594, allocations: 20.75 kB / 430.1 MB, free: 16 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001986/0.07615, allocations: 223.9 kB / 430.3 MB, free: 15.74 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.482e-05/0.0762, allocations: 38.2 kB / 430.3 MB, free: 15.7 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.005e-05/0.07623, allocations: 8.375 kB / 430.3 MB, free: 15.69 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002187/0.07645, allocations: 145.7 kB / 430.5 MB, free: 15.54 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.826e-06/0.07647, allocations: 3.984 kB / 430.5 MB, free: 15.54 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.734e-05/0.07649, allocations: 4 kB / 430.5 MB, free: 15.53 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.236e-05/0.07651, allocations: 4 kB / 430.5 MB, free: 15.53 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000154/0.07667, allocations: 91.94 kB / 430.6 MB, free: 15.44 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003906/0.07706, allocations: 368.5 kB / 430.9 MB, free: 15.03 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002131/0.07729, allocations: 150.5 kB / 431.1 MB, free: 14.87 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001137/0.07741, allocations: 104.8 kB / 431.2 MB, free: 14.77 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.148e-05/0.07743, allocations: 0 / 431.2 MB, free: 14.77 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002499/0.07769, allocations: 246.5 kB / 431.4 MB, free: 14.5 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.453e-06/0.0777, allocations: 4 kB / 431.4 MB, free: 14.5 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0005643/0.07827, allocations: 468.8 kB / 431.9 MB, free: 14.02 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.315e-05/0.07832, allocations: 118.8 kB / 432 MB, free: 13.88 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001098/0.07844, allocations: 194.6 kB / 432.2 MB, free: 13.68 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.848e-05/0.07846, allocations: 33.69 kB / 432.2 MB, free: 13.64 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.289e-05/0.07851, allocations: 108.6 kB / 432.3 MB, free: 13.53 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.704e-05/0.07855, allocations: 51.27 kB / 432.4 MB, free: 13.48 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.651e-05/0.07862, allocations: 53.69 kB / 432.4 MB, free: 13.42 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.469e-05/0.07867, allocations: 334.8 kB / 432.7 MB, free: 13.08 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001215/0.07879, allocations: 84.19 kB / 432.8 MB, free: 13 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001102/0.07891, allocations: 93.36 kB / 432.9 MB, free: 12.91 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002352/0.07915, allocations: 300.7 kB / 433.2 MB, free: 12.59 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.07916, allocations: 0 / 433.2 MB, free: 12.59 MB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003675/0.07953, allocations: 390.4 kB / 433.6 MB, free: 12.19 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.578e-05/0.07958, allocations: 71.39 kB / 433.7 MB, free: 12.11 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.07959, allocations: 0 / 433.7 MB, free: 12.11 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.433e-05/0.07961, allocations: 4 kB / 433.7 MB, free: 12.11 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.46e-05/0.07971, allocations: 23.86 kB / 433.7 MB, free: 12.08 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.3e-06/0.07972, allocations: 0 / 433.7 MB, free: 12.08 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001127/0.07984, allocations: 27.83 kB / 433.7 MB, free: 12.05 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.529e-05/0.07986, allocations: 4 kB / 433.7 MB, free: 12.05 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.0001104/0.07998, allocations: 226.9 kB / 433.9 MB, free: 11.8 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.958e-05/0.08001, allocations: 27.72 kB / 434 MB, free: 11.78 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.894e-05/0.08005, allocations: 17.88 kB / 434 MB, free: 11.76 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.08005, allocations: 0 / 434 MB, free: 11.76 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.08006, allocations: 0 / 434 MB, free: 11.76 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.08007, allocations: 3.984 kB / 434 MB, free: 11.75 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001224/0.0802, allocations: 245.5 kB / 434.2 MB, free: 11.46 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.08021, allocations: 3.984 kB / 434.2 MB, free: 11.46 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.731e-05/0.08026, allocations: 11.94 kB / 434.2 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.704e-06/0.08027, allocations: 0 / 434.2 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.746e-05/0.08029, allocations: 16 kB / 434.3 MB, free: 11.43 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.0803, allocations: 7.984 kB / 434.3 MB, free: 11.43 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.0803, allocations: 0 / 434.3 MB, free: 11.43 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004451/0.08075, allocations: 468 kB / 434.7 MB, free: 10.94 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.551e-05/0.08079, allocations: 96.84 kB / 434.8 MB, free: 10.82 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.748e-05/0.08083, allocations: 8 kB / 434.8 MB, free: 10.82 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001013/0.08094, allocations: 15.98 kB / 434.8 MB, free: 10.8 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.291e-05/0.08099, allocations: 11.98 kB / 434.9 MB, free: 10.79 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.413e-05/0.08103, allocations: 19.97 kB / 434.9 MB, free: 10.77 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.334e-05/0.0811, allocations: 152.3 kB / 435 MB, free: 10.62 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.08111, allocations: 0 / 435 MB, free: 10.62 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002611/0.08138, allocations: 72 kB / 435.1 MB, free: 10.55 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.0001815/0.08156, allocations: 171 kB / 435.3 MB, free: 10.38 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003863/0.08196, allocations: 403.1 kB / 435.7 MB, free: 9.957 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.08197, allocations: 4 kB / 435.7 MB, free: 9.953 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001977/0.08217, allocations: 290.5 kB / 435.9 MB, free: 9.645 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000226/0.08241, allocations: 16.3 kB / 436 MB, free: 9.629 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004687/0.08289, allocations: 389.1 kB / 436.3 MB, free: 9.211 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001331/0.08303, allocations: 0.7278 MB / 437.1 MB, free: 8.457 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.105e-05/0.08307, allocations: 23.38 kB / 437.1 MB, free: 8.434 MB / 318.1 MB Notification: Performance of SimCode: time 2.11e-07/0.08307, allocations: 0 / 437.1 MB, free: 8.434 MB / 318.1 MB Notification: Performance of Templates: time 0.003521/0.0866, allocations: 2.5 MB / 439.6 MB, free: 5.93 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)