Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Physiolibrary_Physiolibrary.Fluid.Examples.Kofranek2014.NonPulsatileCirculation.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.NonPulsatileCirculation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.Kofranek2014.NonPulsatileCirculation") translateModel(Physiolibrary.Fluid.Examples.Kofranek2014.NonPulsatileCirculation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.Kofranek2014.NonPulsatileCirculation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.097/0.097, allocations: 15.28 MB / 30.78 MB, free: 4.082 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.001055/0.001055, allocations: 107 kB / 35.77 MB, free: 3.281 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.001227/0.001227, allocations: 193.1 kB / 40.88 MB, free: 7.195 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.439/1.439, allocations: 222.9 MB / 268.7 MB, free: 6.805 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.143/0.143, allocations: 23.36 MB / 346.4 MB, free: 0.7305 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002077/0.002077, allocations: 108.3 kB / 418.2 MB, free: 30.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1116, allocations: 59.37 MB / 477.6 MB, free: 2.988 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Fluid.Examples.Kofranek2014.NonPulsatileCirculation): time 0.3184/0.4301, allocations: 74.66 MB / 0.5393 GB, free: 11.71 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02684/0.457, allocations: 26.74 MB / 0.5654 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002904/0.46, allocations: 35.88 kB / 0.5654 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001116/0.4612, allocations: 386.9 kB / 0.5658 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009599/0.4708, allocations: 2.825 MB / 0.5686 GB, free: 14.61 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01095/0.4818, allocations: 2.868 MB / 0.5714 GB, free: 12.42 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003843/0.4856, allocations: 2.669 MB / 0.574 GB, free: 10.92 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001057/0.4867, allocations: 0.7477 MB / 0.5747 GB, free: 10.44 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003393/0.4901, allocations: 1.55 MB / 0.5762 GB, free: 9.512 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001769/0.4919, allocations: 0.9429 MB / 0.5771 GB, free: 8.957 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000142/0.492, allocations: 91.19 kB / 0.5772 GB, free: 8.953 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008033/0.5001, allocations: 2.35 MB / 0.5795 GB, free: 7.621 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005034/0.5006, allocations: 303 kB / 0.5798 GB, free: 7.324 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001317/0.502, allocations: 0.5755 MB / 0.5804 GB, free: 6.746 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00976/0.5117, allocations: 3.302 MB / 0.5836 GB, free: 3.434 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.5118, allocations: 4 kB / 0.5836 GB, free: 3.43 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.5118, allocations: 0 / 0.5836 GB, free: 3.43 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.778e-05/0.5118, allocations: 0 / 0.5836 GB, free: 3.43 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.003605/0.5154, allocations: 1.64 MB / 0.5852 GB, free: 1.738 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.605e-05/0.5155, allocations: 8.031 kB / 0.5852 GB, free: 1.73 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002818/0.5158, allocations: 110.7 kB / 0.5853 GB, free: 1.621 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001053/0.5168, allocations: 0.6428 MB / 0.5859 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.836e-05/0.5169, allocations: 58 kB / 0.586 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001161/0.517, allocations: 79.91 kB / 0.5861 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001508/0.5185, allocations: 0.8687 MB / 0.5869 GB, free: 15.88 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.563e-05/0.5186, allocations: 4 kB / 0.5869 GB, free: 15.88 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.113e-05/0.5186, allocations: 32 kB / 0.587 GB, free: 15.84 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.73e-05/0.5187, allocations: 16 kB / 0.587 GB, free: 15.83 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00145/0.5201, allocations: 0.7466 MB / 0.5877 GB, free: 15.08 MB / 414.1 MB 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.004844/0.525, allocations: 3.681 MB / 0.5913 GB, free: 11.19 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001255/0.5262, allocations: 0.654 MB / 0.5919 GB, free: 10.52 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008381/0.5271, allocations: 478.2 kB / 0.5924 GB, free: 10.05 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002471/0.5296, allocations: 2.163 MB / 0.5945 GB, free: 7.641 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.616e-05/0.5296, allocations: 35 kB / 0.5945 GB, free: 7.598 MB / 414.1 MB Notification: Performance of pre-optimization done (n=53): time 1.643e-06/0.5296, allocations: 0 / 0.5945 GB, free: 7.598 MB / 414.1 MB Notification: Performance of matching and sorting (n=53): time 0.002575/0.5322, allocations: 1.306 MB / 0.5958 GB, free: 6.199 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.374e-05/0.5323, allocations: 55.84 kB / 0.5959 GB, free: 6.133 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001031/0.5333, allocations: 0.8138 MB / 0.5967 GB, free: 5.309 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.69e-05/0.5334, allocations: 37.7 kB / 0.5967 GB, free: 5.266 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003313/0.5337, allocations: 459.3 kB / 0.5971 GB, free: 4.809 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001787/0.5339, allocations: 193.3 kB / 0.5973 GB, free: 4.617 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00028/0.5342, allocations: 166.5 kB / 0.5975 GB, free: 4.445 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000123/0.5343, allocations: 334 kB / 0.5978 GB, free: 4.113 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006156/0.5349, allocations: 309.7 kB / 0.5981 GB, free: 3.812 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007641/0.5357, allocations: 0.518 MB / 0.5986 GB, free: 3.207 MB / 414.1 MB 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.006761/0.5425, allocations: 3.102 MB / 0.6016 GB, free: 15.96 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.616e-06/0.5425, allocations: 0 / 0.6016 GB, free: 15.96 MB / 430.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.002245/0.5447, allocations: 1.081 MB / 0.6027 GB, free: 14.86 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.789e-05/0.5448, allocations: 8 kB / 0.6027 GB, free: 14.85 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.893e-05/0.5448, allocations: 11.94 kB / 0.6027 GB, free: 14.84 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004967/0.5453, allocations: 175.4 kB / 0.6029 GB, free: 14.65 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007515/0.5461, allocations: 183.6 kB / 0.603 GB, free: 14.47 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001502/0.5476, allocations: 2.233 MB / 0.6052 GB, free: 12.14 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008843/0.5485, allocations: 94.95 kB / 0.6053 GB, free: 12.04 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.173e-05/0.5486, allocations: 39.98 kB / 0.6054 GB, free: 12 MB / 430.1 MB 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (98): * Single equations (assignments): 94 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(1,1), (1,1), (1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003977/0.549, allocations: 245.3 kB / 0.6056 GB, free: 11.75 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002017/0.5492, allocations: 86.88 kB / 0.6057 GB, free: 11.67 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001676/0.5509, allocations: 0.8159 MB / 0.6065 GB, free: 10.84 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.882e-06/0.5509, allocations: 4 kB / 0.6065 GB, free: 10.83 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.456e-06/0.5509, allocations: 8 kB / 0.6065 GB, free: 10.82 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.735e-06/0.5509, allocations: 3.984 kB / 0.6065 GB, free: 10.82 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009995/0.5519, allocations: 0.7822 MB / 0.6072 GB, free: 9.988 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.048e-06/0.5519, allocations: 0 / 0.6072 GB, free: 9.988 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000485/0.5524, allocations: 95.88 kB / 0.6073 GB, free: 9.895 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003811/0.5528, allocations: 175.2 kB / 0.6075 GB, free: 9.711 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.586e-05/0.5529, allocations: 15.98 kB / 0.6075 GB, free: 9.695 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001299/0.5542, allocations: 2.225 MB / 0.6097 GB, free: 7.367 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.5542, allocations: 8.031 kB / 0.6097 GB, free: 7.359 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00213/0.5563, allocations: 1.223 MB / 0.6109 GB, free: 6.105 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000369/0.5567, allocations: 239.8 kB / 0.6111 GB, free: 5.852 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001484/0.5569, allocations: 15.98 kB / 0.6111 GB, free: 5.836 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005162/0.5574, allocations: 19.98 kB / 0.6112 GB, free: 5.816 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001095/0.5575, allocations: 44.5 kB / 0.6112 GB, free: 5.773 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.967e-05/0.5576, allocations: 23.92 kB / 0.6112 GB, free: 5.75 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0006621/0.5582, allocations: 0.5536 MB / 0.6118 GB, free: 5.199 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.5582, allocations: 0 / 0.6118 GB, free: 5.199 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001847/0.5601, allocations: 0.7959 MB / 0.6125 GB, free: 4.402 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (PulmonaryArteries.enthalpy,PulmonaryArteries.substanceMasses[1],PulmonaryVeins.enthalpy,PulmonaryVeins.substanceMasses[1],SystemicVeins.enthalpy,SystemicVeins.substanceMasses[1],SystemicArteries.enthalpy,SystemicArteries.substanceMasses[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(1,1), (1,1), (1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002237/0.5623, allocations: 1.086 MB / 0.6136 GB, free: 3.316 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001784/0.5641, allocations: 0.8317 MB / 0.6144 GB, free: 2.48 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.5641, allocations: 5.562 kB / 0.6144 GB, free: 2.477 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006897/0.5648, allocations: 359 kB / 0.6148 GB, free: 2.125 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001886/0.5667, allocations: 440.8 kB / 0.6152 GB, free: 1.723 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002959/0.5697, allocations: 1.941 MB / 0.6171 GB, free: 15.75 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005749/0.5703, allocations: 1.005 MB / 0.6181 GB, free: 14.72 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0006669/0.571, allocations: 183 kB / 0.6182 GB, free: 14.54 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002005/0.5712, allocations: 79.41 kB / 0.6183 GB, free: 14.46 MB / 446.1 MB Notification: Performance of SimCode: time 3.31e-07/0.5712, allocations: 0 / 0.6183 GB, free: 14.46 MB / 446.1 MB Notification: Performance of Templates: time 0.04531/0.6165, allocations: 30.06 MB / 0.6477 GB, free: 0.6094 MB / 462.1 MB make -j1 -f Physiolibrary_Physiolibrary.Fluid.Examples.Kofranek2014.NonPulsatileCirculation.makefile (rm -f Physiolibrary_Physiolibrary.Fluid.Examples.Kofranek2014.NonPulsatileCirculation.pipe ; mkfifo Physiolibrary_Physiolibrary.Fluid.Examples.Kofranek2014.NonPulsatileCirculation.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Fluid.Examples.Kofranek2014.NonPulsatileCirculation.pipe >> ../files/Physiolibrary_Physiolibrary.Fluid.Examples.Kofranek2014.NonPulsatileCirculation.sim & ./Physiolibrary_Physiolibrary.Fluid.Examples.Kofranek2014.NonPulsatileCirculation -abortSlowSimulation -alarm=480 -lv LOG_STATS > Physiolibrary_Physiolibrary.Fluid.Examples.Kofranek2014.NonPulsatileCirculation.pipe 2>&1)