Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Bodylight_Bodylight.Hydraulic.Examples.Kofranek2014.PulsatileCirculation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001503/0.001503, allocations: 100.3 kB / 19.7 MB, free: 444 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001334/0.001334, allocations: 209.7 kB / 22.99 MB, free: 2.984 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.092/1.092, allocations: 230.6 MB / 256.8 MB, free: 9.578 MB / 202.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/package.mo): time 0.06931/0.06931, allocations: 17.16 MB / 330.4 MB, free: 0.7109 MB / 250.7 MB " [Timeout remaining time 180] Using package Bodylight with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Bodylight.Hydraulic.Examples.Kofranek2014.PulsatileCirculation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Bodylight_Bodylight.Hydraulic.Examples.Kofranek2014.PulsatileCirculation") translateModel(Bodylight.Hydraulic.Examples.Kofranek2014.PulsatileCirculation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Bodylight_Bodylight.Hydraulic.Examples.Kofranek2014.PulsatileCirculation") [Timeout 660] "Notification: Bodylight requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001364/0.001364, allocations: 67.91 kB / 460.8 MB, free: 27.02 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09147/0.09283, allocations: 57.76 MB / 0.5064 GB, free: 1.145 MB / 362.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Hydraulic.Examples.Kofranek2014.PulsatileCirculation): time 0.003269/0.0961, allocations: 4.187 MB / 0.5105 GB, free: 12.93 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001005/0.09711, allocations: 0.9816 MB / 0.5115 GB, free: 11.95 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001285/0.09724, allocations: 19.81 kB / 0.5115 GB, free: 11.93 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001501/0.09739, allocations: 91.06 kB / 0.5116 GB, free: 11.84 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002879/0.09767, allocations: 254 kB / 0.5118 GB, free: 11.59 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001916/0.09786, allocations: 163.7 kB / 0.512 GB, free: 11.43 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.000428/0.09829, allocations: 0.7699 MB / 0.5127 GB, free: 10.65 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002013/0.09849, allocations: 136.9 kB / 0.5128 GB, free: 10.51 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003472/0.09884, allocations: 283.1 kB / 0.5131 GB, free: 10.23 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002455/0.09909, allocations: 278.7 kB / 0.5134 GB, free: 9.961 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.534e-05/0.09913, allocations: 44 kB / 0.5134 GB, free: 9.918 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.831e-05/0.09919, allocations: 44 kB / 0.5135 GB, free: 9.875 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 5.532e-05/0.09925, allocations: 111.6 kB / 0.5136 GB, free: 9.766 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001489/0.09939, allocations: 251 kB / 0.5138 GB, free: 9.52 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004119/0.09981, allocations: 0.6303 MB / 0.5144 GB, free: 8.887 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.09981, allocations: 0 / 0.5144 GB, free: 8.887 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.09981, allocations: 0 / 0.5144 GB, free: 8.887 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.592e-06/0.09982, allocations: 0 / 0.5144 GB, free: 8.887 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.0007722/0.1006, allocations: 0.748 MB / 0.5152 GB, free: 8.109 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.201e-05/0.1006, allocations: 8.031 kB / 0.5152 GB, free: 8.102 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.213e-05/0.1007, allocations: 56.61 kB / 0.5152 GB, free: 8.047 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003395/0.101, allocations: 326 kB / 0.5155 GB, free: 7.703 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.145e-05/0.1011, allocations: 140.4 kB / 0.5157 GB, free: 7.539 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.271e-05/0.1011, allocations: 40.38 kB / 0.5157 GB, free: 7.5 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000519/0.1017, allocations: 0.5011 MB / 0.5162 GB, free: 6.969 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.669e-05/0.1017, allocations: 3.984 kB / 0.5162 GB, free: 6.965 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.67e-05/0.1017, allocations: 16 kB / 0.5162 GB, free: 6.949 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.606e-06/0.1017, allocations: 12 kB / 0.5162 GB, free: 6.938 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006136/0.1023, allocations: 355.8 kB / 0.5166 GB, free: 6.594 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001039/0.1034, allocations: 0.8964 MB / 0.5174 GB, free: 5.656 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004693/0.1039, allocations: 370.6 kB / 0.5178 GB, free: 5.289 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004081/0.1043, allocations: 295.6 kB / 0.5181 GB, free: 5 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.467e-05/0.1043, allocations: 12.28 kB / 0.5181 GB, free: 4.988 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002999/0.1046, allocations: 338.2 kB / 0.5184 GB, free: 4.621 MB / 378.7 MB Notification: Performance of pre-optimization done (n=36): time 1.302e-06/0.1046, allocations: 0 / 0.5184 GB, free: 4.621 MB / 378.7 MB Notification: Performance of matching and sorting (n=36): time 0.0007058/0.1053, allocations: 0.532 MB / 0.5189 GB, free: 4.082 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.304e-05/0.1053, allocations: 59.41 kB / 0.519 GB, free: 4.012 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000182/0.1055, allocations: 284.5 kB / 0.5193 GB, free: 3.727 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.393e-05/0.1055, allocations: 37.7 kB / 0.5193 GB, free: 3.684 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.837e-05/0.1056, allocations: 232.6 kB / 0.5195 GB, free: 3.449 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.701e-05/0.1057, allocations: 119 kB / 0.5196 GB, free: 3.332 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.134e-05/0.1058, allocations: 73.67 kB / 0.5197 GB, free: 3.254 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.737e-05/0.1058, allocations: 358.6 kB / 0.52 GB, free: 2.895 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001957/0.106, allocations: 140.3 kB / 0.5202 GB, free: 2.758 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002136/0.1063, allocations: 177.4 kB / 0.5203 GB, free: 2.574 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004432/0.1067, allocations: 340.2 kB / 0.5207 GB, free: 2.234 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.1067, allocations: 4 kB / 0.5207 GB, free: 2.23 MB / 378.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005156/0.1072, allocations: 442.6 kB / 0.5211 GB, free: 1.793 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.085e-05/0.1072, allocations: 6.969 kB / 0.5211 GB, free: 1.789 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.857e-06/0.1072, allocations: 4 kB / 0.5211 GB, free: 1.785 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.045e-06/0.1072, allocations: 8 kB / 0.5211 GB, free: 1.777 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000383/0.1076, allocations: 123.8 kB / 0.5212 GB, free: 1.656 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.354e-06/0.1076, allocations: 3.984 kB / 0.5212 GB, free: 1.652 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000141/0.1078, allocations: 51.81 kB / 0.5213 GB, free: 1.602 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.892e-05/0.1078, allocations: 15.98 kB / 0.5213 GB, free: 1.586 MB / 378.7 MB Warning: Assuming fixed start value for the following 4 variables: rightHeart.pulses.HP:DISCRETE(unit = \"s\" fixed = true nominal = 60.0 ) \"duration of cardiac cycle\" type: Real rightHeart.pulses.T0:DISCRETE(unit = \"s\" fixed = true nominal = 60.0 ) \"beginning of cardiac cycle\" type: Real leftHeart.pulses.HP:DISCRETE(unit = \"s\" fixed = true nominal = 60.0 ) \"duration of cardiac cycle\" type: Real leftHeart.pulses.T0:DISCRETE(unit = \"s\" fixed = true nominal = 60.0 ) \"beginning of cardiac cycle\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.rightHeart.pulses.HP,$PRE.rightHeart.pulses.T0,rightHeart.pulses.b,$whenCondition1,$PRE.leftHeart.pulses.HP,$PRE.leftHeart.pulses.T0,leftHeart.pulses.b,$whenCondition2,leftHeart.pulses.TD2,leftHeart.pulses.HP,leftHeart.pulses.T0,rightHeart.pulses.TD2,rightHeart.pulses.HP,rightHeart.pulses.T0) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001928/0.108, allocations: 191.2 kB / 0.5215 GB, free: 1.391 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.46e-05/0.108, allocations: 35.77 kB / 0.5215 GB, free: 1.355 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000573/0.1086, allocations: 441 kB / 0.5219 GB, free: 0.918 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.856e-06/0.1086, allocations: 8 kB / 0.5219 GB, free: 0.9102 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.324e-06/0.1086, allocations: 3.938 kB / 0.5219 GB, free: 0.9062 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.1086, allocations: 0 / 0.5219 GB, free: 0.9062 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009049/0.1095, allocations: 0.8515 MB / 0.5228 GB, free: 20 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.1095, allocations: 4 kB / 0.5228 GB, free: 16 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003303/0.1098, allocations: 99.84 kB / 0.5229 GB, free: 15.92 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.1098, allocations: 0 / 0.5229 GB, free: 15.92 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.017e-05/0.1099, allocations: 11.98 kB / 0.5229 GB, free: 15.91 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.1099, allocations: 4 kB / 0.5229 GB, free: 15.9 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.1099, allocations: 7.938 kB / 0.5229 GB, free: 15.89 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008615/0.1107, allocations: 0.6875 MB / 0.5236 GB, free: 15.19 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.895e-05/0.1108, allocations: 35.7 kB / 0.5236 GB, free: 15.15 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.272e-05/0.1108, allocations: 12.03 kB / 0.5236 GB, free: 15.14 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001621/0.111, allocations: 31.97 kB / 0.5236 GB, free: 15.11 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.135e-05/0.111, allocations: 27.89 kB / 0.5237 GB, free: 15.08 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.485e-05/0.111, allocations: 19.98 kB / 0.5237 GB, free: 15.06 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001545/0.1112, allocations: 195.1 kB / 0.5239 GB, free: 14.88 MB / 394.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1112, allocations: 4 kB / 0.5239 GB, free: 14.87 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002473/0.1115, allocations: 147.7 kB / 0.524 GB, free: 14.73 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (PulmonaryArteries.volume,PulmonaryVeins.volume,SystemicVeins.volume,SystemicArteries.volume) * Number of discrete variables: 10 (leftHeart.pulses.b,rightHeart.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 (rightHeart.pulses.T0,rightHeart.pulses.HP,leftHeart.pulses.T0,leftHeart.pulses.HP) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.78e-05/0.1115, allocations: 115.7 kB / 0.5241 GB, free: 14.61 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0004992/0.112, allocations: 347.5 kB / 0.5245 GB, free: 14.27 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.1121, allocations: 0 / 0.5245 GB, free: 14.27 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002341/0.1123, allocations: 176.4 kB / 0.5246 GB, free: 14.09 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003492/0.1126, allocations: 93.03 kB / 0.5247 GB, free: 14 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001143/0.1138, allocations: 1.007 MB / 0.5257 GB, free: 12.96 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000129/0.1139, allocations: 211.5 kB / 0.5259 GB, free: 12.73 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.484e-05/0.114, allocations: 43.42 kB / 0.5259 GB, free: 12.69 MB / 394.7 MB Notification: Performance of SimCode: time 6.71e-07/0.114, allocations: 0 / 0.5259 GB, free: 12.69 MB / 394.7 MB Notification: Performance of Templates: time 0.006305/0.1203, allocations: 5.88 MB / 0.5317 GB, free: 6.84 MB / 394.7 MB " [Timeout remaining time 660] make -j1 -f Bodylight_Bodylight.Hydraulic.Examples.Kofranek2014.PulsatileCirculation.makefile [Timeout 660] (rm -f Bodylight_Bodylight.Hydraulic.Examples.Kofranek2014.PulsatileCirculation.pipe ; mkfifo Bodylight_Bodylight.Hydraulic.Examples.Kofranek2014.PulsatileCirculation.pipe ; head -c 1048576 < Bodylight_Bodylight.Hydraulic.Examples.Kofranek2014.PulsatileCirculation.pipe >> ../files/Bodylight_Bodylight.Hydraulic.Examples.Kofranek2014.PulsatileCirculation.sim & ./Bodylight_Bodylight.Hydraulic.Examples.Kofranek2014.PulsatileCirculation > Bodylight_Bodylight.Hydraulic.Examples.Kofranek2014.PulsatileCirculation.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 5.29709267616272]