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-master/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/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-alpha11 (/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) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/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-master/package.mo): time 0.08343/0.08343, allocations: 15.24 MB / 30.49 MB, free: 3.211 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008745/0.0008745, allocations: 181.1 kB / 35.55 MB, free: 2.293 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.517/1.517, allocations: 222.9 MB / 263.4 MB, free: 6.359 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.0007308/0.0007309, allocations: 90.52 kB / 318.3 MB, free: 3.855 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.1497/0.1497, allocations: 20.51 MB / 393.7 MB, free: 43.57 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005069/0.0005065, allocations: 19.98 kB / 465.1 MB, free: 5.402 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3279/0.3284, allocations: 59.3 MB / 0.5121 GB, free: 43.09 MB / 378.7 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Fluid.Examples.Kofranek2014.PulsatileCirculation): time 0.1098/0.4383, allocations: 110.5 MB / 0.62 GB, free: 11.67 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.03458/0.4729, allocations: 27.08 MB / 0.6464 GB, free: 0.5117 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002724/0.4757, allocations: 55.56 kB / 0.6465 GB, free: 468 kB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00273/0.4785, allocations: 0.5866 MB / 0.6471 GB, free: 15.86 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01196/0.4905, allocations: 3.423 MB / 0.6504 GB, free: 12.42 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009323/0.4998, allocations: 2.705 MB / 0.6531 GB, free: 9.699 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.005511/0.5054, allocations: 4.299 MB / 0.6572 GB, free: 5.387 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00137/0.5068, allocations: 0.774 MB / 0.658 GB, free: 4.605 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001976/0.5088, allocations: 0.9418 MB / 0.6589 GB, free: 3.66 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001338/0.5101, allocations: 1.027 MB / 0.6599 GB, free: 2.629 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001266/0.5102, allocations: 60 kB / 0.66 GB, free: 2.57 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01325/0.5235, allocations: 4.078 MB / 0.664 GB, free: 14.48 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000568/0.5241, allocations: 251 kB / 0.6642 GB, free: 14.24 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00106/0.5252, allocations: 0.5559 MB / 0.6647 GB, free: 13.68 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01812/0.5433, allocations: 4.901 MB / 0.6695 GB, free: 8.762 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.5434, allocations: 4 kB / 0.6695 GB, free: 8.758 MB / 474.7 MB Notification: Performance of FrontEnd: time 4.569e-06/0.5434, allocations: 0 / 0.6695 GB, free: 8.758 MB / 474.7 MB Notification: Performance of Transformations before backend: time 1.755e-05/0.5434, allocations: 3.938 kB / 0.6695 GB, free: 8.754 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 193 * Number of variables: 193 Notification: Performance of Generate backend data structure: time 0.004269/0.5477, allocations: 1.954 MB / 0.6715 GB, free: 6.75 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.92e-05/0.5477, allocations: 12.03 kB / 0.6715 GB, free: 6.738 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002581/0.548, allocations: 118.6 kB / 0.6716 GB, free: 6.621 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00102/0.549, allocations: 0.6537 MB / 0.6722 GB, free: 5.926 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.229e-05/0.5491, allocations: 66 kB / 0.6723 GB, free: 5.859 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001254/0.5492, allocations: 83.91 kB / 0.6724 GB, free: 5.777 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001638/0.5509, allocations: 0.9284 MB / 0.6733 GB, free: 4.816 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.37e-05/0.5509, allocations: 11.88 kB / 0.6733 GB, free: 4.805 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.327e-05/0.551, allocations: 28 kB / 0.6733 GB, free: 4.777 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.841e-05/0.551, allocations: 23.98 kB / 0.6733 GB, free: 4.754 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001579/0.5526, allocations: 0.8002 MB / 0.6741 GB, free: 3.949 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004758/0.5574, allocations: 3.492 MB / 0.6775 GB, free: 248 kB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001193/0.5586, allocations: 0.6586 MB / 0.6782 GB, free: 15.58 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007521/0.5594, allocations: 402.2 kB / 0.6785 GB, free: 15.18 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002797/0.5622, allocations: 2.124 MB / 0.6806 GB, free: 12.81 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006843/0.5629, allocations: 350.9 kB / 0.681 GB, free: 12.45 MB / 490.7 MB Notification: Performance of pre-optimization done (n=57): time 2.705e-06/0.5629, allocations: 0 / 0.681 GB, free: 12.45 MB / 490.7 MB Notification: Performance of matching and sorting (n=57): time 0.002307/0.5652, allocations: 1.087 MB / 0.682 GB, free: 11.32 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.229e-05/0.5653, allocations: 71.94 kB / 0.6821 GB, free: 11.23 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009722/0.5663, allocations: 0.7939 MB / 0.6829 GB, free: 10.43 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 6.089e-05/0.5663, allocations: 37.7 kB / 0.6829 GB, free: 10.39 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003587/0.5667, allocations: 471.1 kB / 0.6833 GB, free: 9.922 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001921/0.5669, allocations: 197.3 kB / 0.6835 GB, free: 9.727 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002525/0.5671, allocations: 178.4 kB / 0.6837 GB, free: 9.547 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001365/0.5673, allocations: 345.8 kB / 0.684 GB, free: 9.203 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006565/0.568, allocations: 309.8 kB / 0.6843 GB, free: 8.898 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008818/0.5688, allocations: 0.5638 MB / 0.6849 GB, free: 8.223 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001402/0.5703, allocations: 0.8174 MB / 0.6857 GB, free: 7.305 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.342e-06/0.5703, allocations: 4 kB / 0.6857 GB, free: 7.301 MB / 490.7 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.0021/0.5724, allocations: 1.032 MB / 0.6867 GB, free: 6.254 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.544e-05/0.5724, allocations: 12.53 kB / 0.6867 GB, free: 6.242 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.21e-05/0.5724, allocations: 12 kB / 0.6867 GB, free: 6.23 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000271/0.5727, allocations: 69.72 kB / 0.6868 GB, free: 6.156 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007891/0.5735, allocations: 195.7 kB / 0.687 GB, free: 5.965 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007821/0.5743, allocations: 1.097 MB / 0.688 GB, free: 4.816 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001072/0.5754, allocations: 147 kB / 0.6882 GB, free: 4.672 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.686e-05/0.5755, allocations: 43.98 kB / 0.6882 GB, free: 4.629 MB / 490.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: 16 (leftHeart.pulses.TD2,$PRE.leftHeart.pulses.TD2,leftHeart.pulses.HP,$PRE.leftHeart.pulses.HP,leftHeart.pulses.b,leftHeart.pulses.T0,$PRE.leftHeart.pulses.T0,rightHeart.pulses.TD2,$PRE.rightHeart.pulses.TD2,rightHeart.pulses.HP,$PRE.rightHeart.pulses.HP,rightHeart.pulses.b,rightHeart.pulses.T0,$PRE.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 (110): * Single equations (assignments): 108 * 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.0004437/0.576, allocations: 241.3 kB / 0.6884 GB, free: 4.383 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001618/0.5761, allocations: 94.81 kB / 0.6885 GB, free: 4.289 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001706/0.5778, allocations: 0.7489 MB / 0.6893 GB, free: 3.523 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.152e-05/0.5779, allocations: 12 kB / 0.6893 GB, free: 3.512 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/0.5779, allocations: 0 / 0.6893 GB, free: 3.512 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.105e-06/0.5779, allocations: 3.984 kB / 0.6893 GB, free: 3.508 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002816/0.5807, allocations: 1.643 MB / 0.6909 GB, free: 1.805 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/0.5807, allocations: 0 / 0.6909 GB, free: 1.805 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005074/0.5813, allocations: 103.8 kB / 0.691 GB, free: 1.703 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000178/0.5814, allocations: 61.69 kB / 0.691 GB, free: 1.637 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.545e-05/0.5815, allocations: 15.98 kB / 0.6911 GB, free: 1.621 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006984/0.5822, allocations: 1.081 MB / 0.6921 GB, free: 500 kB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.532e-06/0.5822, allocations: 192 / 0.6921 GB, free: 500 kB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2569/0.8391, allocations: 1.148 MB / 0.6932 GB, free: 144.2 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005561/0.8397, allocations: 240.9 kB / 0.6935 GB, free: 144.1 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001176/0.8398, allocations: 11.47 kB / 0.6935 GB, free: 144.1 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006049/0.8404, allocations: 64.62 kB / 0.6935 GB, free: 144.1 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001554/0.8406, allocations: 49.62 kB / 0.6936 GB, free: 144.1 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.891e-05/0.8407, allocations: 22.23 kB / 0.6936 GB, free: 144.1 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0008336/0.8415, allocations: 0.5353 MB / 0.6941 GB, free: 144 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.102e-06/0.8415, allocations: 0 / 0.6941 GB, free: 144 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.003455/0.845, allocations: 1.076 MB / 0.6952 GB, free: 143.9 MB / 490.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: 10 (rightHeart.pulses.b,leftHeart.pulses.b,$whenCondition2,$whenCondition1,rightHeart.pulses.T0,rightHeart.pulses.HP,rightHeart.pulses.TD2,leftHeart.pulses.T0,leftHeart.pulses.HP,leftHeart.pulses.TD2) * Number of discrete states: 4 (leftHeart.pulses.T0,leftHeart.pulses.HP,rightHeart.pulses.T0,rightHeart.pulses.HP) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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 Backend phase and start with SimCode phase: time 0.003794/0.8488, allocations: 1.612 MB / 0.6968 GB, free: 143.8 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.002228/0.851, allocations: 0.7505 MB / 0.6975 GB, free: 143.8 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 5.079e-06/0.8511, allocations: 0 / 0.6975 GB, free: 143.8 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008303/0.8519, allocations: 337.8 kB / 0.6978 GB, free: 143.7 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001883/0.8538, allocations: 282.5 kB / 0.6981 GB, free: 143.7 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003327/0.8571, allocations: 2.263 MB / 0.7003 GB, free: 142.7 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004222/0.8576, allocations: 1.007 MB / 0.7013 GB, free: 142 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0007768/0.8584, allocations: 179.7 kB / 0.7014 GB, free: 141.9 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002414/0.8586, allocations: 81.38 kB / 0.7015 GB, free: 141.9 MB / 490.7 MB Notification: Performance of SimCode: time 1.032e-06/0.8586, allocations: 1.094 kB / 0.7015 GB, free: 141.9 MB / 490.7 MB Notification: Performance of Templates: time 0.05447/0.9131, allocations: 34.03 MB / 0.7348 GB, free: 132.9 MB / 490.7 MB 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)