Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Physiolibrary_Physiolibrary.Fluid.Examples.Kofranek2014.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.Kofranek2014.PulsatileCirculation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.Kofranek2014.PulsatileCirculation") translateModel(Physiolibrary.Fluid.Examples.Kofranek2014.PulsatileCirculation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.Kofranek2014.PulsatileCirculation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.08385/0.08385, allocations: 15.29 MB / 31.6 MB, free: 4.223 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.001267/0.001267, allocations: 104 kB / 36.59 MB, free: 3.141 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.001428/0.001428, allocations: 193.1 kB / 41.7 MB, free: 7.145 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.386/1.386, allocations: 222.9 MB / 269.6 MB, free: 6.93 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1325/0.1325, allocations: 23.37 MB / 347.3 MB, free: 0.6484 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002072/0.002072, allocations: 120 kB / 479.7 MB, free: 1.59 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3014/0.3035, allocations: 59.36 MB / 0.5265 GB, free: 8.129 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Fluid.Examples.Kofranek2014.PulsatileCirculation): time 0.09678/0.4003, allocations: 99.8 MB / 0.6239 GB, free: 264 kB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.03231/0.4327, allocations: 26.91 MB / 0.6502 GB, free: 5.246 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002312/0.435, allocations: 35.81 kB / 0.6502 GB, free: 5.211 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001678/0.4368, allocations: 448.6 kB / 0.6507 GB, free: 4.77 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008639/0.4454, allocations: 2.914 MB / 0.6535 GB, free: 1.84 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007938/0.4534, allocations: 2.933 MB / 0.6564 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.003457/0.4569, allocations: 2.914 MB / 0.6592 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001351/0.4583, allocations: 0.8603 MB / 0.6601 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00328/0.4615, allocations: 1.657 MB / 0.6617 GB, free: 9.426 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001707/0.4633, allocations: 1.047 MB / 0.6627 GB, free: 8.375 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0003217/0.4636, allocations: 108 kB / 0.6628 GB, free: 8.27 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006333/0.47, allocations: 2.371 MB / 0.6651 GB, free: 5.895 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0004911/0.4705, allocations: 330.9 kB / 0.6654 GB, free: 5.57 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0009996/0.4715, allocations: 0.6573 MB / 0.6661 GB, free: 4.91 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.007168/0.4787, allocations: 3.543 MB / 0.6695 GB, free: 1.355 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.4787, allocations: 4 kB / 0.6696 GB, free: 1.352 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.372e-06/0.4787, allocations: 0 / 0.6696 GB, free: 1.352 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.003e-05/0.4787, allocations: 0 / 0.6696 GB, free: 1.352 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 205 * Number of variables: 205 Notification: Performance of Generate backend data structure: time 0.003731/0.4825, allocations: 1.759 MB / 0.6713 GB, free: 15.54 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/0.4825, allocations: 8.031 kB / 0.6713 GB, free: 15.54 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002977/0.4828, allocations: 130.4 kB / 0.6714 GB, free: 15.41 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001328/0.4842, allocations: 0.7363 MB / 0.6721 GB, free: 14.62 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.152e-05/0.4842, allocations: 69.94 kB / 0.6722 GB, free: 14.56 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000143/0.4844, allocations: 91.91 kB / 0.6723 GB, free: 14.47 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00176/0.4862, allocations: 0.9911 MB / 0.6732 GB, free: 13.43 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.96e-05/0.4862, allocations: 4 kB / 0.6732 GB, free: 13.42 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.555e-05/0.4863, allocations: 35.94 kB / 0.6733 GB, free: 13.39 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.737e-05/0.4863, allocations: 23.94 kB / 0.6733 GB, free: 13.36 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001744/0.4881, allocations: 0.8548 MB / 0.6741 GB, free: 12.51 MB / 0.5137 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.005625/0.4937, allocations: 4.061 MB / 0.6781 GB, free: 8.203 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001414/0.4951, allocations: 0.7555 MB / 0.6788 GB, free: 7.434 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001104/0.4962, allocations: 0.5464 MB / 0.6794 GB, free: 6.883 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003017/0.4993, allocations: 2.273 MB / 0.6816 GB, free: 4.363 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007898/0.5001, allocations: 419.1 kB / 0.682 GB, free: 3.941 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=65): time 2.415e-06/0.5001, allocations: 0 / 0.682 GB, free: 3.941 MB / 0.5137 GB Notification: Performance of matching and sorting (n=65): time 0.002609/0.5027, allocations: 1.255 MB / 0.6832 GB, free: 2.637 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.994e-05/0.5028, allocations: 59.97 kB / 0.6833 GB, free: 2.566 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001049/0.5038, allocations: 0.8256 MB / 0.6841 GB, free: 1.734 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 7.516e-05/0.5039, allocations: 49.7 kB / 0.6841 GB, free: 1.68 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003675/0.5043, allocations: 495.1 kB / 0.6846 GB, free: 1.188 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002198/0.5045, allocations: 228.8 kB / 0.6848 GB, free: 0.9609 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003006/0.5048, allocations: 182.4 kB / 0.685 GB, free: 0.7773 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001303/0.505, allocations: 345.9 kB / 0.6853 GB, free: 444 kB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000776/0.5057, allocations: 365.8 kB / 0.6857 GB, free: 80 kB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009151/0.5067, allocations: 0.573 MB / 0.6862 GB, free: 15.41 MB / 0.5294 GB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: PulmonaryArteries.mass = PulmonaryArteries.tm_start (PulmonaryArteries.m_start[1] + PulmonaryArteries.massOffset = PulmonaryArteries.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: 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: SystemicVeins.mass = SystemicVeins.tm_start (SystemicVeins.m_start[1] + SystemicVeins.massOffset = SystemicVeins.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: SystemicArteries.mass = SystemicArteries.tm_start (SystemicArteries.m_start[1] + SystemicArteries.massOffset = SystemicArteries.tm_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.007855/0.5145, allocations: 3.561 MB / 0.6897 GB, free: 11.71 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.955e-06/0.5146, allocations: 4 kB / 0.6897 GB, free: 11.71 MB / 0.5294 GB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002593/0.5172, allocations: 1.158 MB / 0.6908 GB, free: 10.54 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.411e-05/0.5172, allocations: 8 kB / 0.6909 GB, free: 10.53 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.532e-05/0.5172, allocations: 4.5 kB / 0.6909 GB, free: 10.52 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002678/0.5175, allocations: 81.67 kB / 0.6909 GB, free: 10.44 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001004/0.5185, allocations: 211.7 kB / 0.6911 GB, free: 10.23 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007843/0.5193, allocations: 1.12 MB / 0.6922 GB, free: 9.059 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001002/0.5203, allocations: 114.8 kB / 0.6923 GB, free: 8.945 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.189e-05/0.5204, allocations: 47.97 kB / 0.6924 GB, free: 8.898 MB / 0.5294 GB Warning: The initial conditions are over specified. The following 4 initial equations are redundant, so they are removed from the initialization system: PulmonaryArteries.mass = PulmonaryArteries.tm_start PulmonaryVeins.mass = PulmonaryVeins.tm_start SystemicVeins.mass = SystemicVeins.tm_start SystemicArteries.mass = SystemicArteries.tm_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.leftHeart.pulses.TD2,$PRE.leftHeart.pulses.HP,$PRE.leftHeart.pulses.T0,$PRE.rightHeart.pulses.TD2,$PRE.rightHeart.pulses.HP,$PRE.rightHeart.pulses.T0,leftHeart.pulses.TD2,leftHeart.pulses.HP,leftHeart.pulses.b,leftHeart.pulses.T0,rightHeart.pulses.TD2,rightHeart.pulses.HP,rightHeart.pulses.b,rightHeart.pulses.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (118): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0004522/0.5209, allocations: 265.7 kB / 0.6926 GB, free: 8.629 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002447/0.5211, allocations: 94.88 kB / 0.6927 GB, free: 8.535 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002009/0.5232, allocations: 0.895 MB / 0.6936 GB, free: 7.625 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.395e-06/0.5232, allocations: 0 / 0.6936 GB, free: 7.625 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.5232, allocations: 0 / 0.6936 GB, free: 7.625 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004952/0.5237, allocations: 259.6 kB / 0.6939 GB, free: 7.352 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001742/0.5239, allocations: 20 kB / 0.6939 GB, free: 7.332 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006433/0.5245, allocations: 39.95 kB / 0.6939 GB, free: 7.293 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001446/0.5247, allocations: 60.42 kB / 0.694 GB, free: 7.234 MB / 0.5294 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002384/0.5271, allocations: 0.953 MB / 0.6949 GB, free: 6.266 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002468/0.5295, allocations: 1.427 MB / 0.6963 GB, free: 4.82 MB / 0.5294 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006473/0.5302, allocations: 376.2 kB / 0.6967 GB, free: 4.453 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0007715/0.531, allocations: 0.5615 MB / 0.6972 GB, free: 3.898 MB / 0.5294 GB Notification: Performance of Backend: time 6.41e-07/0.531, allocations: 0 / 0.6972 GB, free: 3.898 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.004249/0.5353, allocations: 1.735 MB / 0.6989 GB, free: 2.16 MB / 0.5294 GB Notification: Performance of SimCode: time 0.003969/0.5392, allocations: 2.632 MB / 0.7015 GB, free: 15.48 MB / 0.545 GB Notification: Performance of Templates: time 0.2399/0.7792, allocations: 32.06 MB / 0.7328 GB, free: 189.7 MB / 0.5606 GB make -j1 -f Physiolibrary_Physiolibrary.Fluid.Examples.Kofranek2014.PulsatileCirculation.makefile (rm -f Physiolibrary_Physiolibrary.Fluid.Examples.Kofranek2014.PulsatileCirculation.pipe ; mkfifo Physiolibrary_Physiolibrary.Fluid.Examples.Kofranek2014.PulsatileCirculation.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Fluid.Examples.Kofranek2014.PulsatileCirculation.pipe >> ../files/Physiolibrary_Physiolibrary.Fluid.Examples.Kofranek2014.PulsatileCirculation.sim & ./Physiolibrary_Physiolibrary.Fluid.Examples.Kofranek2014.PulsatileCirculation -abortSlowSimulation -alarm=480 -lv LOG_STATS > Physiolibrary_Physiolibrary.Fluid.Examples.Kofranek2014.PulsatileCirculation.pipe 2>&1)