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/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.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/Complex 4.0.0+maint.om/package.mo): time 0.001714/0.001714, allocations: 182.2 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.451/1.451, allocations: 222.9 MB / 239.7 MB, free: 11 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.0009899/0.0009898, allocations: 109 kB / 289.9 MB, free: 10.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.485/0.485, allocations: 36.67 MB / 376.7 MB, free: 41.42 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001239/0.001239, allocations: 67.89 kB / 446.4 MB, free: 11.84 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1201/0.1214, allocations: 58.92 MB / 0.4935 GB, free: 0.8594 MB / 378.7 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Fluid.Examples.Kofranek2014.PulsatileCirculation): time 0.2951/0.4166, allocations: 111.4 MB / 0.6023 GB, free: 10.68 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.02812/0.4447, allocations: 27.27 MB / 0.6289 GB, free: 15.63 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001974/0.4467, allocations: 55.56 kB / 0.629 GB, free: 15.58 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002192/0.449, allocations: 0.6254 MB / 0.6296 GB, free: 14.95 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01037/0.4594, allocations: 3.507 MB / 0.633 GB, free: 11.42 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009081/0.4685, allocations: 2.753 MB / 0.6357 GB, free: 8.656 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.005837/0.4744, allocations: 4.658 MB / 0.6403 GB, free: 3.984 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001676/0.4761, allocations: 0.8164 MB / 0.6411 GB, free: 3.172 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002217/0.4783, allocations: 1.074 MB / 0.6421 GB, free: 2.094 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001563/0.4799, allocations: 1.074 MB / 0.6432 GB, free: 1.016 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001651/0.4801, allocations: 60 kB / 0.6432 GB, free: 0.957 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01152/0.4916, allocations: 4.082 MB / 0.6472 GB, free: 12.87 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006942/0.4923, allocations: 266.9 kB / 0.6475 GB, free: 12.61 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00119/0.4935, allocations: 0.5987 MB / 0.648 GB, free: 12 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01402/0.5076, allocations: 4.999 MB / 0.6529 GB, free: 6.988 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.464e-06/0.5076, allocations: 0 / 0.6529 GB, free: 6.988 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.5076, allocations: 0 / 0.6529 GB, free: 6.988 MB / 474.7 MB Notification: Performance of Transformations before backend: time 2.323e-05/0.5077, allocations: 0 / 0.6529 GB, free: 6.988 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: 197 * Number of variables: 197 Notification: Performance of Generate backend data structure: time 0.004569/0.5123, allocations: 2.032 MB / 0.6549 GB, free: 4.906 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.172e-05/0.5123, allocations: 8.031 kB / 0.6549 GB, free: 4.898 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002541/0.5126, allocations: 118.6 kB / 0.655 GB, free: 4.781 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001109/0.5137, allocations: 0.6933 MB / 0.6557 GB, free: 4.043 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.838e-05/0.5138, allocations: 70 kB / 0.6558 GB, free: 3.977 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001351/0.5139, allocations: 91.89 kB / 0.6559 GB, free: 3.887 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001602/0.5155, allocations: 0.9439 MB / 0.6568 GB, free: 2.906 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.867e-05/0.5155, allocations: 7.938 kB / 0.6568 GB, free: 2.898 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.333e-05/0.5156, allocations: 32 kB / 0.6568 GB, free: 2.867 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.621e-05/0.5156, allocations: 16 kB / 0.6568 GB, free: 2.852 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001637/0.5173, allocations: 0.8197 MB / 0.6576 GB, free: 2.035 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005075/0.5224, allocations: 3.594 MB / 0.6611 GB, free: 14.22 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001394/0.5238, allocations: 0.7337 MB / 0.6619 GB, free: 13.48 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008283/0.5246, allocations: 430.3 kB / 0.6623 GB, free: 13.06 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002969/0.5276, allocations: 2.194 MB / 0.6644 GB, free: 10.62 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007579/0.5284, allocations: 378.9 kB / 0.6648 GB, free: 10.23 MB / 490.7 MB Notification: Performance of pre-optimization done (n=57): time 2.886e-06/0.5284, allocations: 0 / 0.6648 GB, free: 10.23 MB / 490.7 MB Notification: Performance of matching and sorting (n=57): time 0.002449/0.5309, allocations: 1.165 MB / 0.6659 GB, free: 9.02 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.281e-05/0.5309, allocations: 71.89 kB / 0.666 GB, free: 8.938 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001112/0.5321, allocations: 0.8334 MB / 0.6668 GB, free: 8.094 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 6.572e-05/0.5321, allocations: 41.7 kB / 0.6668 GB, free: 8.047 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003659/0.5325, allocations: 491.1 kB / 0.6673 GB, free: 7.562 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001901/0.5327, allocations: 213.2 kB / 0.6675 GB, free: 7.352 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003014/0.533, allocations: 170.5 kB / 0.6677 GB, free: 7.176 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001183/0.5331, allocations: 338 kB / 0.668 GB, free: 6.84 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007094/0.5339, allocations: 329.8 kB / 0.6683 GB, free: 6.52 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008624/0.5347, allocations: 0.5833 MB / 0.6689 GB, free: 5.828 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001493/0.5362, allocations: 0.8772 MB / 0.6697 GB, free: 4.852 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.52e-06/0.5363, allocations: 0 / 0.6697 GB, free: 4.852 MB / 490.7 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002154/0.5384, allocations: 1.091 MB / 0.6708 GB, free: 3.746 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.288e-05/0.5385, allocations: 9.719 kB / 0.6708 GB, free: 3.738 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.409e-05/0.5385, allocations: 11.98 kB / 0.6708 GB, free: 3.727 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002633/0.5387, allocations: 73.67 kB / 0.6709 GB, free: 3.648 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008235/0.5396, allocations: 211.8 kB / 0.6711 GB, free: 3.441 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008189/0.5404, allocations: 1.121 MB / 0.6722 GB, free: 2.27 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001291/0.5417, allocations: 143.1 kB / 0.6723 GB, free: 2.129 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.623e-05/0.5418, allocations: 47.98 kB / 0.6724 GB, free: 2.082 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.0004155/0.5422, allocations: 258.3 kB / 0.6726 GB, free: 1.82 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001746/0.5424, allocations: 91.75 kB / 0.6727 GB, free: 1.73 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001819/0.5443, allocations: 0.83 MB / 0.6735 GB, free: 0.8906 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.516e-06/0.5443, allocations: 4 kB / 0.6735 GB, free: 0.8867 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.253e-06/0.5443, allocations: 4 kB / 0.6735 GB, free: 0.8828 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.387e-06/0.5443, allocations: 3.984 kB / 0.6735 GB, free: 0.8789 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2083/0.7527, allocations: 1.775 MB / 0.6753 GB, free: 143.9 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.599e-06/0.7527, allocations: 0 / 0.6753 GB, free: 143.9 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005523/0.7533, allocations: 110.3 kB / 0.6754 GB, free: 143.9 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001787/0.7535, allocations: 73.78 kB / 0.6754 GB, free: 143.9 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.407e-05/0.7535, allocations: 18.09 kB / 0.6754 GB, free: 143.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004668/0.754, allocations: 1.104 MB / 0.6765 GB, free: 142.9 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.754, allocations: 3.469 kB / 0.6765 GB, free: 142.9 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01827/0.7723, allocations: 7.206 MB / 0.6836 GB, free: 141.1 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000337/0.7727, allocations: 252.7 kB / 0.6838 GB, free: 140.9 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001135/0.7728, allocations: 15.44 kB / 0.6838 GB, free: 140.9 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006213/0.7734, allocations: 69.53 kB / 0.6839 GB, free: 140.9 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001458/0.7736, allocations: 54.94 kB / 0.6839 GB, free: 140.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.287e-05/0.7736, allocations: 23.52 kB / 0.684 GB, free: 140.9 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0006003/0.7742, allocations: 0.5661 MB / 0.6845 GB, free: 140.6 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7742, allocations: 0 / 0.6845 GB, free: 140.6 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.003796/0.778, allocations: 1.321 MB / 0.6858 GB, free: 140.4 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 (59): * Single equations (assignments): 51 * 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.002795/0.7809, allocations: 1.625 MB / 0.6874 GB, free: 140.2 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.00163/0.7825, allocations: 0.7904 MB / 0.6882 GB, free: 140 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.7825, allocations: 3.312 kB / 0.6882 GB, free: 140 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006588/0.7832, allocations: 375.1 kB / 0.6885 GB, free: 139.9 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001878/0.7851, allocations: 393.9 kB / 0.6889 GB, free: 139.8 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003259/0.7883, allocations: 2.751 MB / 0.6916 GB, free: 138.2 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004199/0.7888, allocations: 1.037 MB / 0.6926 GB, free: 137.5 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0009149/0.7897, allocations: 217.9 kB / 0.6928 GB, free: 137.4 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003093/0.79, allocations: 95.44 kB / 0.6929 GB, free: 137.4 MB / 490.7 MB Notification: Performance of SimCode: time 8.32e-07/0.79, allocations: 0 / 0.6929 GB, free: 137.4 MB / 490.7 MB Notification: Performance of Templates: time 0.05679/0.8468, allocations: 40.21 MB / 0.7322 GB, free: 121.8 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)