Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Physiolibrary_Physiolibrary.Fluid.Examples.MeursModel2011.HemodynamicsMeurs_flatNorm.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo", uses=false) 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo", uses=false) Using package Physiolibrary with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo) Running command: translateModel(Physiolibrary.Fluid.Examples.MeursModel2011.HemodynamicsMeurs_flatNorm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.MeursModel2011.HemodynamicsMeurs_flatNorm") translateModel(Physiolibrary.Fluid.Examples.MeursModel2011.HemodynamicsMeurs_flatNorm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.MeursModel2011.HemodynamicsMeurs_flatNorm") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.08864/0.08864, allocations: 15.29 MB / 31.59 MB, free: 4.137 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001046/0.001046, allocations: 99.25 kB / 36.59 MB, free: 3.184 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001256/0.001256, allocations: 194.1 kB / 41.7 MB, free: 7.141 MB / 34.91 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.411/1.411, allocations: 222.9 MB / 269.6 MB, free: 6.891 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1334/0.1334, allocations: 23.35 MB / 347.2 MB, free: 0.6406 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002024/0.002024, allocations: 115.8 kB / 479.8 MB, free: 1.566 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2914/0.2935, allocations: 59.35 MB / 0.5265 GB, free: 8.113 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Fluid.Examples.MeursModel2011.HemodynamicsMeurs_flatNorm): time 0.4768/0.7703, allocations: 220.5 MB / 0.7418 GB, free: 336 kB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.08308/0.8534, allocations: 100.2 MB / 0.8396 GB, free: 14.81 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004758/0.8582, allocations: 104.8 kB / 0.8397 GB, free: 14.81 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.002902/0.8612, allocations: 1.272 MB / 0.8409 GB, free: 14.5 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.01972/0.8809, allocations: 8.266 MB / 0.849 GB, free: 12.43 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0283/0.9092, allocations: 9.612 MB / 0.8584 GB, free: 7.5 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.01216/0.9214, allocations: 8.418 MB / 0.8666 GB, free: 1.332 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003915/0.9254, allocations: 2.365 MB / 0.8689 GB, free: 14.96 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01428/0.9397, allocations: 6.331 MB / 0.8751 GB, free: 9.234 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00592/0.9456, allocations: 3.035 MB / 0.8781 GB, free: 6.418 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0009612/0.9466, allocations: 308 kB / 0.8784 GB, free: 6.117 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01735/0.964, allocations: 6.636 MB / 0.8848 GB, free: 15.89 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.001562/0.9656, allocations: 0.9392 MB / 0.8858 GB, free: 14.96 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.002816/0.9684, allocations: 1.886 MB / 0.8876 GB, free: 13.08 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0225/0.9909, allocations: 9.691 MB / 0.8971 GB, free: 4.051 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.141e-06/0.991, allocations: 0 / 0.8971 GB, free: 4.051 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.673e-06/0.991, allocations: 3.938 kB / 0.8971 GB, free: 4.047 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 0.000124/0.9911, allocations: 0 / 0.8971 GB, free: 4.047 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 592 * Number of variables: 592 Notification: Performance of Generate backend data structure: time 0.009795/1.001, allocations: 4.567 MB / 0.9015 GB, free: 15.45 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 4.327e-05/1.001, allocations: 12.03 kB / 0.9015 GB, free: 15.43 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007062/1.002, allocations: 355.8 kB / 0.9019 GB, free: 15.08 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003226/1.005, allocations: 1.824 MB / 0.9037 GB, free: 13.26 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001516/1.005, allocations: 192.6 kB / 0.9038 GB, free: 13.07 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003747/1.005, allocations: 259.9 kB / 0.9041 GB, free: 12.82 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004933/1.01, allocations: 2.884 MB / 0.9069 GB, free: 9.746 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.919e-05/1.01, allocations: 7.938 kB / 0.9069 GB, free: 9.738 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002189/1.011, allocations: 99.98 kB / 0.907 GB, free: 9.641 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.524e-05/1.011, allocations: 63.94 kB / 0.9071 GB, free: 9.578 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005155/1.016, allocations: 2.619 MB / 0.9096 GB, free: 6.945 MB / 0.6231 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01387/1.03, allocations: 11.28 MB / 0.9206 GB, free: 11.13 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004173/1.034, allocations: 2.448 MB / 0.923 GB, free: 8.668 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002428/1.036, allocations: 1.386 MB / 0.9244 GB, free: 7.285 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008195/1.045, allocations: 6.121 MB / 0.9304 GB, free: 0.582 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002584/1.047, allocations: 1.316 MB / 0.9317 GB, free: 15.25 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=234): time 4.749e-06/1.047, allocations: 0 / 0.9317 GB, free: 15.25 MB / 0.6544 GB Notification: Performance of matching and sorting (n=239): time 0.01842/1.066, allocations: 8.387 MB / 0.9398 GB, free: 6.488 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.409e-05/1.066, allocations: 92.36 kB / 0.9399 GB, free: 6.391 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00282/1.069, allocations: 2.095 MB / 0.942 GB, free: 4.277 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 0.0001791/1.069, allocations: 89.69 kB / 0.9421 GB, free: 4.184 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009638/1.07, allocations: 1.253 MB / 0.9433 GB, free: 2.922 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007143/1.07, allocations: 0.8065 MB / 0.9441 GB, free: 2.125 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008618/1.071, allocations: 0.5971 MB / 0.9447 GB, free: 1.52 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 9.373e-05/1.071, allocations: 305.1 kB / 0.9449 GB, free: 1.219 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002609/1.074, allocations: 1.209 MB / 0.9461 GB, free: 12 kB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003217/1.077, allocations: 1.921 MB / 0.948 GB, free: 13.81 MB / 0.67 GB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: Epa.mass = Epa.tm_start (Epa.m_start[1] + Epa.massOffset = Epa.tm_start) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: Epv.mass = Epv.tm_start (Epv.m_start[1] + Epv.massOffset = Epv.tm_start) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: LeftAtrium.mass = LeftAtrium.tm_start (LeftAtrium.m_start[1] + LeftAtrium.massOffset = LeftAtrium.tm_start) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: LeftVentricle.mass = LeftVentricle.tm_start (LeftVentricle.m_start[1] + LeftVentricle.massOffset = LeftVentricle.tm_start) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: Eitha.mass = Eitha.tm_start (Eitha.m_start[1] + Eitha.massOffset = Eitha.tm_start) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: Eetha.mass = Eetha.tm_start (Eetha.m_start[1] + Eetha.massOffset = Eetha.tm_start) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: Est.mass = Est.tm_start (Est.m_start[1] + Est.massOffset = Est.tm_start) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: Eithv.mass = Eithv.tm_start (Eithv.m_start[1] + Eithv.massOffset = Eithv.tm_start) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: Eethv.mass = Eethv.tm_start (Eethv.m_start[1] + Eethv.massOffset = Eethv.tm_start) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: RightAtrium.mass = RightAtrium.tm_start (RightAtrium.m_start[1] + RightAtrium.massOffset = RightAtrium.tm_start) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: RightVentricle.mass = RightVentricle.tm_start (RightVentricle.m_start[1] + RightVentricle.massOffset = RightVentricle.tm_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.04684/1.124, allocations: 21.25 MB / 0.9688 GB, free: 8.055 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-05/1.124, allocations: 4 kB / 0.9688 GB, free: 8.051 MB / 0.6856 GB Notification: Performance of matching and sorting (n=426) (initialization): time 0.008362/1.133, allocations: 3.964 MB / 0.9726 GB, free: 4 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 3.301e-05/1.133, allocations: 12 kB / 0.9726 GB, free: 3.988 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.366e-05/1.133, allocations: 20 kB / 0.9727 GB, free: 3.969 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001131/1.134, allocations: 0.5084 MB / 0.9732 GB, free: 3.414 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002927/1.137, allocations: 0.7089 MB / 0.9738 GB, free: 2.707 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007924/1.145, allocations: 12.1 MB / 0.9857 GB, free: 5.77 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003064/1.148, allocations: 175.9 kB / 0.9858 GB, free: 5.598 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002644/1.148, allocations: 143.9 kB / 0.986 GB, free: 5.457 MB / 0.7012 GB Warning: Assuming fixed start value for the following 4 variables: arterialPressure.pressureInt:VARIABLE(fixed = true protected = true ) type: Real arterialPressure.t0:DISCRETE(unit = "s" fixed = true nominal = 60.0 protected = true ) type: Real arterialPressure.systolicRunning:VARIABLE(unit = "Pa" fixed = true nominal = 1e5 protected = true ) type: Real arterialPressure.diastolicRunning:VARIABLE(unit = "Pa" fixed = true nominal = 1e5 protected = true ) type: Real Warning: The initial conditions are over specified. The following 11 initial equations are redundant, so they are removed from the initialization system: Epa.mass = Epa.tm_start Epv.mass = Epv.tm_start LeftAtrium.mass = LeftAtrium.tm_start LeftVentricle.mass = LeftVentricle.tm_start Eitha.mass = Eitha.tm_start Eetha.mass = Eetha.tm_start Est.mass = Est.tm_start Eithv.mass = Eithv.tm_start Eethv.mass = Eethv.tm_start RightAtrium.mass = RightAtrium.tm_start RightVentricle.mass = RightVentricle.tm_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 91 * Number of states: 0 () * Number of discrete variables: 57 (LAtrialElastance.Tvs,$PRE.LAtrialElastance.Tvs,RAtrialElastance.Tvs,$PRE.RAtrialElastance.Tvs,rightHeartPower.y_last,$PRE.rightHeartPower.y_last,leftHeartPower.y_last,$PRE.leftHeartPower.y_last,$whenCondition3,$whenCondition2,arterialPressure.meanMeasured,arterialPressure.t0,$PRE.arterialPressure.t0,arterialPressure.b,$whenCondition1,$PRE.LAtrialElastance.HP,$PRE.LVentricularElastance.HP,$PRE.RAtrialElastance.HP,$PRE.RVentricularElastance.HP,$PRE.RVentricularElastance.Tvs,$PRE.RVentricularElastance.T0,$PRE.RVentricularElastance.Tas,$PRE.RAtrialElastance.T0,$PRE.RAtrialElastance.Tas,$PRE.LVentricularElastance.Tvs,$PRE.LVentricularElastance.T0,$PRE.LVentricularElastance.Tas,$PRE.LAtrialElastance.T0,$PRE.LAtrialElastance.Tas,arterialPressure.diastolicMeassured,arterialPressure.systolicMeassured,TricuspidValve.open,RVentricularElastance.b,RVentricularElastance.HP,RVentricularElastance.Tvs,RVentricularElastance.T0,RVentricularElastance.Tas,RAtrialElastance.b,RAtrialElastance.HP,RAtrialElastance.T0,RAtrialElastance.Tas,PulmonaryValve.open,MitralValve.open,LVentricularElastance.b,LVentricularElastance.HP,LVentricularElastance.Tvs,LVentricularElastance.T0,LVentricularElastance.Tas,LAtrialElastance.b,LAtrialElastance.HP,LAtrialElastance.T0,LAtrialElastance.Tas,AorticValve.open,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (409): * Single equations (assignments): 394 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 15 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 15 systems {(1,1), (1,1), (1,1), (1,1), (1,1), (1,1), (1,1), (1,1), (1,3), (1,1), (1,1), (1,1), (1,1), (1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.001197/1.149, allocations: 0.5873 MB / 0.9865 GB, free: 4.863 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005156/1.15, allocations: 280.5 kB / 0.9868 GB, free: 4.586 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006726/1.157, allocations: 3.156 MB / 0.9899 GB, free: 1.363 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.347e-05/1.157, allocations: 15.95 kB / 0.9899 GB, free: 1.348 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.209e-06/1.157, allocations: 0 / 0.9899 GB, free: 1.348 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001378/1.158, allocations: 0.5753 MB / 0.9905 GB, free: 0.75 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003842/1.158, allocations: 55.98 kB / 0.9905 GB, free: 0.6953 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001754/1.16, allocations: 154.7 kB / 0.9907 GB, free: 0.5469 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003971/1.161, allocations: 193.7 kB / 0.9909 GB, free: 368 kB / 0.7012 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.2487/1.409, allocations: 3.255 MB / 0.994 GB, free: 316.8 MB / 0.7012 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.00868/1.418, allocations: 4.372 MB / 0.9983 GB, free: 315.4 MB / 0.7012 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.00239/1.42, allocations: 1.209 MB / 0.9995 GB, free: 315 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.002036/1.422, allocations: 1.368 MB / 1.001 GB, free: 314.5 MB / 0.7012 GB Notification: Performance of Backend: time 5.31e-07/1.422, allocations: 0 / 1.001 GB, free: 314.5 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.01233/1.435, allocations: 5.5 MB / 1.006 GB, free: 313.3 MB / 0.7012 GB Notification: Performance of SimCode: time 0.009574/1.444, allocations: 6.831 MB / 1.013 GB, free: 310 MB / 0.7012 GB Notification: Performance of Templates: time 0.09965/1.544, allocations: 88.49 MB / 1.099 GB, free: 234.1 MB / 0.7012 GB make -j1 -f Physiolibrary_Physiolibrary.Fluid.Examples.MeursModel2011.HemodynamicsMeurs_flatNorm.makefile (rm -f Physiolibrary_Physiolibrary.Fluid.Examples.MeursModel2011.HemodynamicsMeurs_flatNorm.pipe ; mkfifo Physiolibrary_Physiolibrary.Fluid.Examples.MeursModel2011.HemodynamicsMeurs_flatNorm.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Fluid.Examples.MeursModel2011.HemodynamicsMeurs_flatNorm.pipe >> ../files/Physiolibrary_Physiolibrary.Fluid.Examples.MeursModel2011.HemodynamicsMeurs_flatNorm.sim & ./Physiolibrary_Physiolibrary.Fluid.Examples.MeursModel2011.HemodynamicsMeurs_flatNorm -abortSlowSimulation -alarm=480 -lv LOG_STATS > Physiolibrary_Physiolibrary.Fluid.Examples.MeursModel2011.HemodynamicsMeurs_flatNorm.pipe 2>&1)