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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo", uses=false) Using package Physiolibrary with version 3.0.0-beta1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/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 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001154/0.001154, allocations: 182.6 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.457/1.457, allocations: 222.9 MB / 239.7 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001119/0.001119, allocations: 110.7 kB / 289.9 MB, free: 10.94 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.3926/0.3926, allocations: 36.67 MB / 376.7 MB, free: 41.38 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00124/0.00124, allocations: 71.88 kB / 446.4 MB, free: 11.82 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1223/0.1236, allocations: 58.91 MB / 0.4935 GB, free: 0.8477 MB / 378.7 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Fluid.Examples.Kofranek2014.NonPulsatileCirculation): time 0.2916/0.4152, allocations: 78.35 MB / 0.57 GB, free: 3.727 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.03152/0.4467, allocations: 27.08 MB / 0.5964 GB, free: 15.38 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002372/0.4492, allocations: 53.5 kB / 0.5965 GB, free: 15.36 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002212/0.4515, allocations: 0.5747 MB / 0.5971 GB, free: 14.88 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0118/0.4633, allocations: 3.42 MB / 0.6004 GB, free: 12.27 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0105/0.4738, allocations: 2.701 MB / 0.603 GB, free: 10.21 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.005082/0.4789, allocations: 4.293 MB / 0.6072 GB, free: 5.91 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001489/0.4804, allocations: 0.7219 MB / 0.6079 GB, free: 5.184 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002459/0.4829, allocations: 0.9807 MB / 0.6089 GB, free: 4.199 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001969/0.4849, allocations: 0.9883 MB / 0.6099 GB, free: 3.207 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003653/0.4853, allocations: 52 kB / 0.6099 GB, free: 3.156 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01207/0.4974, allocations: 4.078 MB / 0.6139 GB, free: 15.07 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00054/0.498, allocations: 239 kB / 0.6141 GB, free: 14.84 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001106/0.4991, allocations: 0.5326 MB / 0.6146 GB, free: 14.3 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01342/0.5125, allocations: 4.804 MB / 0.6193 GB, free: 9.48 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.5126, allocations: 3.938 kB / 0.6193 GB, free: 9.477 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.5126, allocations: 0 / 0.6193 GB, free: 9.477 MB / 442.7 MB Notification: Performance of Transformations before backend: time 4.428e-05/0.5126, allocations: 0 / 0.6193 GB, free: 9.477 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 169 * Number of variables: 169 Notification: Performance of Generate backend data structure: time 0.004306/0.5169, allocations: 1.893 MB / 0.6212 GB, free: 7.531 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.004e-05/0.517, allocations: 8.031 kB / 0.6212 GB, free: 7.523 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003692/0.5174, allocations: 106.7 kB / 0.6213 GB, free: 7.418 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001199/0.5186, allocations: 0.6467 MB / 0.6219 GB, free: 6.727 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.825e-05/0.5186, allocations: 54 kB / 0.622 GB, free: 6.676 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001164/0.5188, allocations: 75.84 kB / 0.622 GB, free: 6.602 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001587/0.5204, allocations: 0.8217 MB / 0.6228 GB, free: 5.746 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.289e-05/0.5204, allocations: 8.797 kB / 0.6229 GB, free: 5.738 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.941e-05/0.5205, allocations: 28 kB / 0.6229 GB, free: 5.711 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.867e-05/0.5205, allocations: 20 kB / 0.6229 GB, free: 5.691 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001534/0.5221, allocations: 0.7116 MB / 0.6236 GB, free: 4.98 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004949/0.527, allocations: 3.213 MB / 0.6267 GB, free: 1.578 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001237/0.5283, allocations: 0.6178 MB / 0.6273 GB, free: 0.957 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007093/0.529, allocations: 370 kB / 0.6277 GB, free: 0.5938 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002808/0.5318, allocations: 2.065 MB / 0.6297 GB, free: 14.28 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.825e-05/0.5319, allocations: 38.56 kB / 0.6297 GB, free: 14.23 MB / 458.7 MB Notification: Performance of pre-optimization done (n=45): time 3.848e-06/0.5319, allocations: 4 kB / 0.6297 GB, free: 14.23 MB / 458.7 MB Notification: Performance of matching and sorting (n=45): time 0.00262/0.5345, allocations: 1.237 MB / 0.631 GB, free: 12.89 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.641e-05/0.5346, allocations: 55.41 kB / 0.631 GB, free: 12.82 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001078/0.5356, allocations: 0.8099 MB / 0.6318 GB, free: 12.01 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 4.4e-05/0.5357, allocations: 33.69 kB / 0.6318 GB, free: 11.97 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000328/0.536, allocations: 459.4 kB / 0.6323 GB, free: 11.51 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001615/0.5362, allocations: 173.6 kB / 0.6324 GB, free: 11.34 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002503/0.5365, allocations: 162.5 kB / 0.6326 GB, free: 11.18 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001301/0.5366, allocations: 337.9 kB / 0.6329 GB, free: 10.84 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005678/0.5372, allocations: 273.8 kB / 0.6332 GB, free: 10.57 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007726/0.538, allocations: 0.5207 MB / 0.6337 GB, free: 9.941 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001259/0.5392, allocations: 0.7577 MB / 0.6344 GB, free: 9.086 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.066e-05/0.5393, allocations: 11.92 kB / 0.6344 GB, free: 9.078 MB / 458.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.002148/0.5414, allocations: 1.017 MB / 0.6354 GB, free: 8.043 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.036e-05/0.5415, allocations: 8 kB / 0.6354 GB, free: 8.035 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.711e-05/0.5415, allocations: 8.344 kB / 0.6354 GB, free: 8.027 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006174/0.5421, allocations: 183.3 kB / 0.6356 GB, free: 7.836 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007088/0.5428, allocations: 167.7 kB / 0.6358 GB, free: 7.672 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001595/0.5444, allocations: 2.241 MB / 0.638 GB, free: 5.328 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001091/0.5455, allocations: 119.1 kB / 0.6381 GB, free: 5.211 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.398e-05/0.5457, allocations: 43.92 kB / 0.6381 GB, free: 5.168 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * 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 (90): * Single equations (assignments): 86 * 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.0004073/0.5461, allocations: 228.1 kB / 0.6383 GB, free: 4.938 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002601/0.5463, allocations: 86.88 kB / 0.6384 GB, free: 4.852 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001727/0.5481, allocations: 0.754 MB / 0.6392 GB, free: 4.078 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.554e-06/0.5481, allocations: 4 kB / 0.6392 GB, free: 4.074 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.014e-05/0.5481, allocations: 11.92 kB / 0.6392 GB, free: 4.062 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-06/0.5481, allocations: 0 / 0.6392 GB, free: 4.062 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001114/0.5492, allocations: 0.7392 MB / 0.6399 GB, free: 3.273 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.693e-06/0.5493, allocations: 0 / 0.6399 GB, free: 3.273 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004547/0.5497, allocations: 87.88 kB / 0.64 GB, free: 3.188 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004498/0.5502, allocations: 171.3 kB / 0.6401 GB, free: 3.008 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.552e-05/0.5502, allocations: 11.98 kB / 0.6401 GB, free: 2.996 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001474/0.5517, allocations: 2.225 MB / 0.6423 GB, free: 0.668 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.5517, allocations: 4.031 kB / 0.6423 GB, free: 0.6641 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01647/0.5682, allocations: 6.492 MB / 0.6487 GB, free: 10.01 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004784/0.5687, allocations: 235.8 kB / 0.6489 GB, free: 9.758 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00014/0.5689, allocations: 4.875 kB / 0.6489 GB, free: 9.754 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005711/0.5695, allocations: 51.8 kB / 0.6489 GB, free: 9.703 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001195/0.5696, allocations: 40.38 kB / 0.649 GB, free: 9.664 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.166e-05/0.5697, allocations: 12 kB / 0.649 GB, free: 9.652 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0007603/0.5704, allocations: 0.5575 MB / 0.6495 GB, free: 9.102 MB / 474.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.5704, allocations: 0 / 0.6495 GB, free: 9.102 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.003531/0.574, allocations: 1.257 MB / 0.6508 GB, free: 7.844 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (PulmonaryArteries.enthalpy,PulmonaryArteries.mass,PulmonaryVeins.enthalpy,PulmonaryVeins.mass,SystemicVeins.enthalpy,SystemicVeins.mass,SystemicArteries.enthalpy,SystemicArteries.mass) * 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 (45): * Single equations (assignments): 41 * 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.003798/0.5778, allocations: 1.617 MB / 0.6523 GB, free: 6.234 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.001701/0.5795, allocations: 0.6818 MB / 0.653 GB, free: 5.551 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.5795, allocations: 0 / 0.653 GB, free: 5.551 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006964/0.5802, allocations: 315.8 kB / 0.6533 GB, free: 5.242 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002188/0.5824, allocations: 385.3 kB / 0.6537 GB, free: 4.875 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003913/0.5864, allocations: 2.499 MB / 0.6561 GB, free: 2.336 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006275/0.587, allocations: 1.006 MB / 0.6571 GB, free: 1.305 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0008579/0.5879, allocations: 171.8 kB / 0.6573 GB, free: 1.137 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003165/0.5882, allocations: 79.41 kB / 0.6573 GB, free: 1.059 MB / 474.7 MB Notification: Performance of SimCode: time 4.71e-07/0.5882, allocations: 0 / 0.6573 GB, free: 1.059 MB / 474.7 MB Notification: Performance of Templates: time 0.2461/0.8343, allocations: 39.04 MB / 0.6955 GB, free: 140 MB / 490.7 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)