Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Physiolibrary_Physiolibrary.Fluid.Examples.Fernandez2013.PulsatileCirculation.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.Fernandez2013.PulsatileCirculation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.Fernandez2013.PulsatileCirculation") translateModel(Physiolibrary.Fluid.Examples.Fernandez2013.PulsatileCirculation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.Fernandez2013.PulsatileCirculation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.09037/0.09037, allocations: 15.29 MB / 31.6 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.001072/0.001072, allocations: 99.27 kB / 36.59 MB, free: 3.176 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.001342/0.001342, allocations: 198 kB / 41.7 MB, free: 7.137 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.382/1.382, allocations: 222.9 MB / 269.5 MB, free: 6.82 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.128/0.128, allocations: 23.36 MB / 347.3 MB, free: 0.6211 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002032/0.002032, allocations: 119.8 kB / 479.8 MB, free: 1.57 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.273/0.275, allocations: 59.35 MB / 0.5265 GB, free: 8.117 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Fluid.Examples.Fernandez2013.PulsatileCirculation): time 0.1688/0.4438, allocations: 180.4 MB / 0.7026 GB, free: 15.34 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.3241/0.768, allocations: 82.45 MB / 0.7831 GB, free: 36 kB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003084/0.7711, allocations: 75 kB / 0.7832 GB, free: 36 kB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001995/0.7732, allocations: 0.9682 MB / 0.7842 GB, free: 32 kB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.01365/0.7868, allocations: 6.397 MB / 0.7904 GB, free: 15.95 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.02055/0.8074, allocations: 8.224 MB / 0.7984 GB, free: 15.68 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.006529/0.814, allocations: 6.274 MB / 0.8046 GB, free: 15.67 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002587/0.8166, allocations: 1.787 MB / 0.8063 GB, free: 15.46 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01378/0.8304, allocations: 5.06 MB / 0.8113 GB, free: 15.08 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005522/0.8359, allocations: 2.266 MB / 0.8135 GB, free: 14.55 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0009757/0.8369, allocations: 224.4 kB / 0.8137 GB, free: 14.55 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01878/0.8557, allocations: 5.221 MB / 0.8188 GB, free: 13.75 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.001403/0.8572, allocations: 0.6825 MB / 0.8194 GB, free: 13.5 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.003692/0.8609, allocations: 1.376 MB / 0.8208 GB, free: 13.05 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02116/0.8821, allocations: 7.43 MB / 0.828 GB, free: 10.47 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.8821, allocations: 0 / 0.828 GB, free: 10.47 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.212e-06/0.8821, allocations: 0 / 0.828 GB, free: 10.47 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 0.0001055/0.8822, allocations: 3.312 kB / 0.828 GB, free: 10.47 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 447 * Number of variables: 447 Notification: Performance of Generate backend data structure: time 0.01161/0.8939, allocations: 3.391 MB / 0.8314 GB, free: 7.781 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.752e-05/0.8939, allocations: 8.031 kB / 0.8314 GB, free: 7.773 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009979/0.8949, allocations: 257 kB / 0.8316 GB, free: 7.52 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003802/0.8988, allocations: 1.329 MB / 0.8329 GB, free: 6.387 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003022/0.8991, allocations: 209.6 kB / 0.8331 GB, free: 6.23 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005105/0.8996, allocations: 192.3 kB / 0.8333 GB, free: 6.105 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006103/0.9057, allocations: 2.147 MB / 0.8354 GB, free: 4.477 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.19e-05/0.9058, allocations: 7.938 kB / 0.8354 GB, free: 4.469 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002961/0.9061, allocations: 74.73 kB / 0.8355 GB, free: 4.449 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.663e-05/0.9062, allocations: 44 kB / 0.8355 GB, free: 4.406 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006244/0.9124, allocations: 1.904 MB / 0.8374 GB, free: 3.082 MB / 0.5762 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.01756/0.93, allocations: 8.685 MB / 0.8459 GB, free: 11.14 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005035/0.9351, allocations: 1.787 MB / 0.8476 GB, free: 9.344 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002832/0.9379, allocations: 1.006 MB / 0.8486 GB, free: 8.34 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009633/0.9476, allocations: 4.548 MB / 0.853 GB, free: 3.363 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002933/0.9505, allocations: 0.9321 MB / 0.8539 GB, free: 2.418 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=172): time 7.815e-06/0.9506, allocations: 3.984 kB / 0.8539 GB, free: 2.414 MB / 0.5919 GB Notification: Performance of matching and sorting (n=177): time 0.02136/0.9719, allocations: 6.299 MB / 0.8601 GB, free: 11.86 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.825e-05/0.972, allocations: 81.39 kB / 0.8602 GB, free: 11.77 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002977/0.975, allocations: 1.472 MB / 0.8616 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0001989/0.9752, allocations: 69.7 kB / 0.8617 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009874/0.9762, allocations: 0.8779 MB / 0.8625 GB, free: 9.328 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007742/0.977, allocations: 0.6086 MB / 0.8631 GB, free: 8.727 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009643/0.978, allocations: 428.1 kB / 0.8635 GB, free: 8.301 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001125/0.9781, allocations: 305.1 kB / 0.8638 GB, free: 8 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002638/0.9808, allocations: 0.8322 MB / 0.8646 GB, free: 7.164 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003162/0.984, allocations: 1.338 MB / 0.8659 GB, free: 5.617 MB / 0.6075 GB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: pulmonaryVeins.mass = pulmonaryVeins.tm_start (pulmonaryVeins.m_start[1] + pulmonaryVeins.massOffset = pulmonaryVeins.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: aorta.mass = aorta.tm_start (aorta.m_start[1] + aorta.massOffset = aorta.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: arteries.mass = arteries.tm_start (arteries.m_start[1] + arteries.massOffset = arteries.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) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: pulmonaryArtery.mass = pulmonaryArtery.tm_start (pulmonaryArtery.m_start[1] + pulmonaryArtery.massOffset = pulmonaryArtery.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: pulmonaryArterioles.mass = pulmonaryArterioles.tm_start (pulmonaryArterioles.m_start[1] + pulmonaryArterioles.massOffset = pulmonaryArterioles.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: veins.mass = veins.tm_start (veins.m_start[1] + veins.massOffset = veins.tm_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.03951/1.023, allocations: 11.72 MB / 0.8774 GB, free: 9.613 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.85e-05/1.024, allocations: 4 kB / 0.8774 GB, free: 9.609 MB / 0.6231 GB Notification: Performance of matching and sorting (n=293) (initialization): time 0.008743/1.032, allocations: 2.854 MB / 0.8802 GB, free: 6.715 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 3.219e-05/1.032, allocations: 12 kB / 0.8802 GB, free: 6.703 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.078e-05/1.032, allocations: 12 kB / 0.8802 GB, free: 6.691 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00176/1.034, allocations: 0.5198 MB / 0.8807 GB, free: 6.141 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002855/1.037, allocations: 479.2 kB / 0.8812 GB, free: 5.672 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00741/1.044, allocations: 7.768 MB / 0.8887 GB, free: 13.43 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002875/1.047, allocations: 116.1 kB / 0.8889 GB, free: 13.31 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003152/1.048, allocations: 101.7 kB / 0.889 GB, free: 13.21 MB / 0.6387 GB Warning: Assuming fixed start value for the following 4 variables: sphygmomanometer.pressureInt:VARIABLE(fixed = true protected = true ) type: Real sphygmomanometer.t0:DISCRETE(unit = "s" fixed = true nominal = 60.0 protected = true ) type: Real sphygmomanometer.systolicRunning:VARIABLE(unit = "Pa" fixed = true nominal = 1e5 protected = true ) type: Real sphygmomanometer.diastolicRunning:VARIABLE(unit = "Pa" fixed = true nominal = 1e5 protected = true ) type: Real Warning: The initial conditions are over specified. The following 8 initial equations are redundant, so they are removed from the initialization system: pulmonaryVeins.mass = pulmonaryVeins.tm_start leftVentricle.mass = leftVentricle.tm_start aorta.mass = aorta.tm_start arteries.mass = arteries.tm_start rightVentricle.mass = rightVentricle.tm_start pulmonaryArtery.mass = pulmonaryArtery.tm_start pulmonaryArterioles.mass = pulmonaryArterioles.tm_start veins.mass = veins.tm_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * Number of states: 0 () * Number of discrete variables: 25 (sphygmomanometer.meanMeasured,sphygmomanometer.t0,$PRE.sphygmomanometer.t0,sphygmomanometer.b,$whenCondition1,$PRE.timeVaryingElastanceRight.ts,$PRE.timeVaryingElastanceRight.t0,$PRE.timeVaryingElastanceRight.HP,$PRE.timeVaryingElastanceLeft.ts,$PRE.timeVaryingElastanceLeft.t0,$PRE.timeVaryingElastanceLeft.HP,sphygmomanometer.diastolicMeassured,sphygmomanometer.systolicMeassured,timeVaryingElastanceRight.ts,timeVaryingElastanceRight.t0,timeVaryingElastanceRight.HP,timeVaryingElastanceLeft.ts,timeVaryingElastanceLeft.t0,timeVaryingElastanceLeft.HP,pulmonaryValve.open,tricuspidValve.open,aorticValve.open,mitralValve.open,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (259): * Single equations (assignments): 249 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * 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): 10 systems {(1,3), (1,3), (1,1), (1,1), (2,8), (1,3), (1,3), (1,1), (1,1), (2,8)} Notification: Performance of prepare postOptimizeDAE: time 0.001226/1.049, allocations: 475 kB / 0.8894 GB, free: 12.74 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006498/1.05, allocations: 201.5 kB / 0.8896 GB, free: 12.54 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00709/1.057, allocations: 2.304 MB / 0.8919 GB, free: 10.2 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.813e-05/1.057, allocations: 15.89 kB / 0.8919 GB, free: 10.18 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.881e-06/1.057, allocations: 0 / 0.8919 GB, free: 10.18 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001325/1.058, allocations: 454.4 kB / 0.8923 GB, free: 9.715 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005687/1.059, allocations: 39.98 kB / 0.8923 GB, free: 9.676 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002243/1.061, allocations: 95.91 kB / 0.8924 GB, free: 9.582 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004461/1.061, allocations: 145.8 kB / 0.8926 GB, free: 9.438 MB / 0.6387 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01025/1.072, allocations: 2.519 MB / 0.895 GB, free: 6.922 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.008865/1.081, allocations: 3.181 MB / 0.8981 GB, free: 3.715 MB / 0.6387 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002508/1.083, allocations: 0.8547 MB / 0.899 GB, free: 2.867 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.002021/1.085, allocations: 0.9794 MB / 0.8999 GB, free: 1.895 MB / 0.6387 GB Notification: Performance of Backend: time 5.41e-07/1.085, allocations: 0 / 0.8999 GB, free: 1.895 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.01142/1.097, allocations: 4.064 MB / 0.9039 GB, free: 14.03 MB / 0.6544 GB Notification: Performance of SimCode: time 0.007797/1.104, allocations: 5.435 MB / 0.9092 GB, free: 8.57 MB / 0.6544 GB Notification: Performance of Templates: time 0.1345/1.239, allocations: 67.79 MB / 0.9754 GB, free: 5.098 MB / 0.7169 GB make -j1 -f Physiolibrary_Physiolibrary.Fluid.Examples.Fernandez2013.PulsatileCirculation.makefile (rm -f Physiolibrary_Physiolibrary.Fluid.Examples.Fernandez2013.PulsatileCirculation.pipe ; mkfifo Physiolibrary_Physiolibrary.Fluid.Examples.Fernandez2013.PulsatileCirculation.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Fluid.Examples.Fernandez2013.PulsatileCirculation.pipe >> ../files/Physiolibrary_Physiolibrary.Fluid.Examples.Fernandez2013.PulsatileCirculation.sim & ./Physiolibrary_Physiolibrary.Fluid.Examples.Fernandez2013.PulsatileCirculation -abortSlowSimulation -alarm=480 -lv LOG_STATS > Physiolibrary_Physiolibrary.Fluid.Examples.Fernandez2013.PulsatileCirculation.pipe 2>&1)