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.07748/0.07748, allocations: 15.28 MB / 31.53 MB, free: 4.121 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.001063/0.001063, allocations: 109.5 kB / 36.53 MB, free: 3.207 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.001182/0.001182, allocations: 189.1 kB / 41.64 MB, free: 7.152 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.371/1.371, allocations: 222.9 MB / 269.5 MB, free: 6.867 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1368/0.1368, allocations: 23.35 MB / 347.2 MB, free: 0.6875 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001984/0.001984, allocations: 119.8 kB / 419.7 MB, free: 29.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1065, allocations: 59.37 MB / 479 MB, free: 2.289 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Fluid.Examples.Kofranek2014.NonPulsatileCirculation): time 0.2776/0.3841, allocations: 74.66 MB / 0.5407 GB, free: 12.39 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02446/0.4086, allocations: 26.73 MB / 0.5668 GB, free: 0.75 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001836/0.4105, allocations: 37.16 kB / 0.5669 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001225/0.4118, allocations: 385.7 kB / 0.5672 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007348/0.4191, allocations: 2.834 MB / 0.57 GB, free: 14.37 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007927/0.4271, allocations: 2.87 MB / 0.5728 GB, free: 12.18 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003288/0.4304, allocations: 2.663 MB / 0.5754 GB, free: 10.66 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001182/0.4316, allocations: 0.7486 MB / 0.5761 GB, free: 10.18 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003166/0.4348, allocations: 1.552 MB / 0.5776 GB, free: 9.238 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001746/0.4365, allocations: 0.9545 MB / 0.5786 GB, free: 8.672 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002745/0.4368, allocations: 86.78 kB / 0.5787 GB, free: 8.672 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006202/0.4431, allocations: 2.351 MB / 0.5809 GB, free: 7.152 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004598/0.4435, allocations: 303 kB / 0.5812 GB, free: 6.855 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001111/0.4447, allocations: 0.5716 MB / 0.5818 GB, free: 6.281 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007689/0.4524, allocations: 3.325 MB / 0.585 GB, free: 2.945 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.4524, allocations: 0 / 0.585 GB, free: 2.945 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.4524, allocations: 0 / 0.585 GB, free: 2.945 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.837e-05/0.4525, allocations: 0 / 0.585 GB, free: 2.945 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.003615/0.4561, allocations: 1.628 MB / 0.5866 GB, free: 1.266 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.4561, allocations: 12.03 kB / 0.5866 GB, free: 1.254 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002651/0.4564, allocations: 106.7 kB / 0.5867 GB, free: 1.148 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001308/0.4577, allocations: 0.6973 MB / 0.5874 GB, free: 416 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.627e-05/0.4578, allocations: 58 kB / 0.5875 GB, free: 360 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001326/0.4579, allocations: 79.91 kB / 0.5876 GB, free: 280 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001575/0.4595, allocations: 0.8688 MB / 0.5884 GB, free: 15.35 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.036e-05/0.4596, allocations: 7.938 kB / 0.5884 GB, free: 15.34 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.633e-05/0.4596, allocations: 24 kB / 0.5884 GB, free: 15.32 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.79e-05/0.4597, allocations: 20 kB / 0.5885 GB, free: 15.3 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001489/0.4612, allocations: 0.7505 MB / 0.5892 GB, free: 14.55 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.004846/0.466, allocations: 3.65 MB / 0.5928 GB, free: 10.69 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001221/0.4672, allocations: 0.6618 MB / 0.5934 GB, free: 10.02 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008679/0.4681, allocations: 482.2 kB / 0.5939 GB, free: 9.543 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002642/0.4708, allocations: 2.155 MB / 0.596 GB, free: 7.137 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.681e-05/0.4708, allocations: 35 kB / 0.596 GB, free: 7.094 MB / 414.1 MB Notification: Performance of pre-optimization done (n=53): time 2.184e-06/0.4708, allocations: 4 kB / 0.596 GB, free: 7.09 MB / 414.1 MB Notification: Performance of matching and sorting (n=53): time 0.003089/0.4739, allocations: 1.318 MB / 0.5973 GB, free: 5.68 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.598e-05/0.474, allocations: 55.84 kB / 0.5973 GB, free: 5.613 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001586/0.4756, allocations: 0.806 MB / 0.5981 GB, free: 4.797 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.442e-05/0.4757, allocations: 37.7 kB / 0.5982 GB, free: 4.754 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004715/0.4762, allocations: 463.3 kB / 0.5986 GB, free: 4.293 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002469/0.4764, allocations: 189.3 kB / 0.5988 GB, free: 4.105 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003991/0.4768, allocations: 162.5 kB / 0.5989 GB, free: 3.938 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002522/0.4771, allocations: 345.9 kB / 0.5993 GB, free: 3.594 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009841/0.4781, allocations: 309.8 kB / 0.5996 GB, free: 3.293 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001238/0.4794, allocations: 0.5063 MB / 0.6001 GB, free: 2.699 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.01043/0.4898, allocations: 3.099 MB / 0.6031 GB, free: 15.45 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.349e-05/0.4899, allocations: 4 kB / 0.6031 GB, free: 15.45 MB / 430.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.003477/0.4933, allocations: 1.069 MB / 0.6041 GB, free: 14.36 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.847e-05/0.4934, allocations: 11.12 kB / 0.6041 GB, free: 14.35 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.715e-05/0.4934, allocations: 12 kB / 0.6042 GB, free: 14.34 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007033/0.4941, allocations: 183.2 kB / 0.6043 GB, free: 14.15 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00117/0.4953, allocations: 187.6 kB / 0.6045 GB, free: 13.96 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002029/0.4974, allocations: 2.233 MB / 0.6067 GB, free: 11.63 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001331/0.4987, allocations: 98.94 kB / 0.6068 GB, free: 11.53 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001038/0.4988, allocations: 39.98 kB / 0.6068 GB, free: 11.49 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.0005616/0.4994, allocations: 251.5 kB / 0.6071 GB, free: 11.24 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002512/0.4997, allocations: 86.88 kB / 0.6071 GB, free: 11.15 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002558/0.5022, allocations: 0.808 MB / 0.6079 GB, free: 10.33 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.64e-05/0.5023, allocations: 8 kB / 0.6079 GB, free: 10.32 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.5023, allocations: 3.938 kB / 0.6079 GB, free: 10.32 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.026e-05/0.5023, allocations: 3.984 kB / 0.608 GB, free: 10.31 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001525/0.5038, allocations: 0.7861 MB / 0.6087 GB, free: 9.477 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/0.5038, allocations: 3.938 kB / 0.6087 GB, free: 9.473 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007531/0.5046, allocations: 95.88 kB / 0.6088 GB, free: 9.379 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005918/0.5052, allocations: 167.3 kB / 0.609 GB, free: 9.203 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.604e-05/0.5053, allocations: 19.98 kB / 0.609 GB, free: 9.184 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001938/0.5073, allocations: 2.225 MB / 0.6112 GB, free: 6.855 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/0.5073, allocations: 3.938 kB / 0.6112 GB, free: 6.852 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003356/0.5106, allocations: 1.22 MB / 0.6124 GB, free: 5.602 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006771/0.5113, allocations: 243.7 kB / 0.6126 GB, free: 5.344 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001762/0.5115, allocations: 12 kB / 0.6126 GB, free: 5.332 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007718/0.5123, allocations: 23.98 kB / 0.6126 GB, free: 5.309 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001634/0.5125, allocations: 44.5 kB / 0.6127 GB, free: 5.266 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.438e-05/0.5126, allocations: 19.98 kB / 0.6127 GB, free: 5.246 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001012/0.5136, allocations: 0.5614 MB / 0.6132 GB, free: 4.688 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.5136, allocations: 0 / 0.6132 GB, free: 4.688 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002677/0.5163, allocations: 0.7881 MB / 0.614 GB, free: 3.898 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.002814/0.5191, allocations: 1.095 MB / 0.6151 GB, free: 2.801 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00235/0.5215, allocations: 0.7628 MB / 0.6158 GB, free: 2.035 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.369e-06/0.5215, allocations: 0 / 0.6158 GB, free: 2.035 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001023/0.5225, allocations: 359.1 kB / 0.6162 GB, free: 1.684 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002689/0.5252, allocations: 432.6 kB / 0.6166 GB, free: 1.281 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004241/0.5295, allocations: 1.915 MB / 0.6184 GB, free: 15.34 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007248/0.5302, allocations: 1.001 MB / 0.6194 GB, free: 14.3 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0009425/0.5312, allocations: 179 kB / 0.6196 GB, free: 14.13 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002848/0.5315, allocations: 75.36 kB / 0.6197 GB, free: 14.06 MB / 446.1 MB Notification: Performance of SimCode: time 6.61e-07/0.5315, allocations: 0 / 0.6197 GB, free: 14.06 MB / 446.1 MB Notification: Performance of Templates: time 0.05382/0.5853, allocations: 30.02 MB / 0.649 GB, free: 208 kB / 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 -s gbode -lv LOG_STATS > Physiolibrary_Physiolibrary.Fluid.Examples.Kofranek2014.NonPulsatileCirculation.pipe 2>&1)