Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Bodylight_Bodylight.Population.UniformPopulation.Examples.PredatorPrey.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.001881/0.001881, allocations: 109.5 kB / 18.95 MB, free: 1.176 MB / 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.002244/0.002244, allocations: 211.9 kB / 22.25 MB, free: 3.559 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.732/1.732, allocations: 230.6 MB / 256 MB, free: 9.586 MB / 202.7 MB " [Timeout remaining time 178] 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.1209/0.1209, allocations: 17.16 MB / 329.6 MB, free: 0.6953 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.Population.UniformPopulation.Examples.PredatorPrey,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="Bodylight_Bodylight.Population.UniformPopulation.Examples.PredatorPrey") translateModel(Bodylight.Population.UniformPopulation.Examples.PredatorPrey,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="Bodylight_Bodylight.Population.UniformPopulation.Examples.PredatorPrey") [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.003767/0.003767, allocations: 71.89 kB / 460.7 MB, free: 26.35 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.1217, allocations: 57.77 MB / 0.5063 GB, free: 488 kB / 362.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Population.UniformPopulation.Examples.PredatorPrey): time 0.005662/0.1273, allocations: 2.362 MB / 0.5086 GB, free: 14.11 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.00648/0.1338, allocations: 2.668 MB / 0.5112 GB, free: 11.43 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001609/0.134, allocations: 19.88 kB / 0.5112 GB, free: 11.41 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001732/0.1341, allocations: 31.66 kB / 0.5113 GB, free: 11.38 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/Types.mo:6207:6-6223:18:writable] Warning: Pure function 'Bodylight.Population.UniformPopulation.Examples.PredatorPrey.predator.Utilities.UnitConversions.findUnit' contains a call to impure function 'Modelica.Utilities.Streams.print'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/Types.mo:5637:15-5729:17:writable] Warning: Pure function 'Bodylight.Population.UniformPopulation.Examples.PredatorPrey.predator.Utilities.readReal' contains a call to impure function 'Bodylight.Population.UniformPopulation.Examples.PredatorPrey.predator.Utilities.UnitConversions.findUnit'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/Types.mo:6207:6-6223:18:writable] Warning: Pure function 'Bodylight.Population.UniformPopulation.Examples.PredatorPrey.prey.Utilities.UnitConversions.findUnit' contains a call to impure function 'Modelica.Utilities.Streams.print'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/Types.mo:5637:15-5729:17:writable] Warning: Pure function 'Bodylight.Population.UniformPopulation.Examples.PredatorPrey.prey.Utilities.readReal' contains a call to impure function 'Bodylight.Population.UniformPopulation.Examples.PredatorPrey.prey.Utilities.UnitConversions.findUnit'. Notification: Performance of NFTyping.typeBindings: time 0.001421/0.1356, allocations: 378.1 kB / 0.5116 GB, free: 11 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/Types.mo:5783:15-5804:18:writable] Warning: Pure function 'Bodylight.Population.UniformPopulation.Examples.PredatorPrey.predator.Utilities.writeReal' contains a call to impure function 'Modelica.Utilities.Files.createDirectory'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/Types.mo:5845:15-5881:24:writable] Warning: Pure function 'Bodylight.Population.UniformPopulation.Examples.PredatorPrey.predator.Utilities.writeComparison' contains a call to impure function 'Modelica.Utilities.Files.createDirectory'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/Types.mo:5783:15-5804:18:writable] Warning: Pure function 'Bodylight.Population.UniformPopulation.Examples.PredatorPrey.prey.Utilities.writeReal' contains a call to impure function 'Modelica.Utilities.Files.createDirectory'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/Types.mo:5845:15-5881:24:writable] Warning: Pure function 'Bodylight.Population.UniformPopulation.Examples.PredatorPrey.prey.Utilities.writeComparison' contains a call to impure function 'Modelica.Utilities.Files.createDirectory'. Notification: Performance of NFTyping.typeClassSections: time 0.001336/0.1369, allocations: 422.2 kB / 0.512 GB, free: 10.59 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.000465/0.1374, allocations: 242.9 kB / 0.5123 GB, free: 10.36 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001965/0.1376, allocations: 48.94 kB / 0.5123 GB, free: 10.3 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001509/0.1377, allocations: 87.64 kB / 0.5124 GB, free: 10.22 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001848/0.1379, allocations: 75.52 kB / 0.5125 GB, free: 10.14 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.953e-05/0.1379, allocations: 16 kB / 0.5125 GB, free: 10.13 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.43e-05/0.138, allocations: 16 kB / 0.5125 GB, free: 10.11 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 6.055e-05/0.138, allocations: 39.84 kB / 0.5125 GB, free: 10.07 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001422/0.1382, allocations: 79.55 kB / 0.5126 GB, free: 9.996 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004561/0.1386, allocations: 242.9 kB / 0.5129 GB, free: 9.758 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.779e-05/0.1387, allocations: 7.922 kB / 0.5129 GB, free: 9.75 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.422e-06/0.1387, allocations: 0 / 0.5129 GB, free: 9.75 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.502e-06/0.1387, allocations: 0 / 0.5129 GB, free: 9.75 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0008928/0.1396, allocations: 425.5 kB / 0.5133 GB, free: 9.301 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.1396, allocations: 12.03 kB / 0.5133 GB, free: 9.289 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.492e-05/0.1397, allocations: 20.8 kB / 0.5133 GB, free: 9.27 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004952/0.1402, allocations: 221.8 kB / 0.5135 GB, free: 9.027 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.041e-05/0.1402, allocations: 12.66 kB / 0.5135 GB, free: 9.016 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.757e-05/0.1403, allocations: 24.12 kB / 0.5135 GB, free: 8.992 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003381/0.1406, allocations: 119.9 kB / 0.5137 GB, free: 8.871 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.828e-05/0.1406, allocations: 4 kB / 0.5137 GB, free: 8.867 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.308e-05/0.1406, allocations: 4 kB / 0.5137 GB, free: 8.863 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.242e-06/0.1406, allocations: 4 kB / 0.5137 GB, free: 8.859 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002339/0.1409, allocations: 84.73 kB / 0.5137 GB, free: 8.777 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001283/0.1422, allocations: 428.1 kB / 0.5142 GB, free: 8.328 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003186/0.1425, allocations: 102.5 kB / 0.5143 GB, free: 8.219 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001233/0.1426, allocations: 44.94 kB / 0.5143 GB, free: 8.172 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.84e-05/0.1426, allocations: 4 kB / 0.5143 GB, free: 8.168 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.812e-05/0.1427, allocations: 34.56 kB / 0.5143 GB, free: 8.125 MB / 378.7 MB Notification: Performance of pre-optimization done (n=12): time 5.19e-06/0.1427, allocations: 3.984 kB / 0.5143 GB, free: 8.121 MB / 378.7 MB Notification: Performance of matching and sorting (n=12): time 0.0004355/0.1431, allocations: 137.5 kB / 0.5145 GB, free: 7.98 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.682e-05/0.1432, allocations: 55.41 kB / 0.5145 GB, free: 7.914 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003354/0.1435, allocations: 212.1 kB / 0.5147 GB, free: 7.691 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.304e-05/0.1435, allocations: 33.64 kB / 0.5148 GB, free: 7.652 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001594/0.1437, allocations: 148.3 kB / 0.5149 GB, free: 7.504 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.166e-05/0.1437, allocations: 43.58 kB / 0.5149 GB, free: 7.461 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001036/0.1438, allocations: 45.7 kB / 0.515 GB, free: 7.41 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002378/0.1441, allocations: 330.8 kB / 0.5153 GB, free: 7.078 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001117/0.1442, allocations: 39.98 kB / 0.5153 GB, free: 7.039 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001484/0.1443, allocations: 66.55 kB / 0.5154 GB, free: 6.965 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002527/0.1446, allocations: 100.9 kB / 0.5155 GB, free: 6.859 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.1446, allocations: 0 / 0.5155 GB, free: 6.859 MB / 378.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003996/0.145, allocations: 164.4 kB / 0.5157 GB, free: 6.695 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.04e-05/0.145, allocations: 8 kB / 0.5157 GB, free: 6.688 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.145, allocations: 0 / 0.5157 GB, free: 6.688 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.779e-05/0.145, allocations: 0 / 0.5157 GB, free: 6.688 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002237/0.1453, allocations: 39.98 kB / 0.5157 GB, free: 6.648 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.37e-05/0.1453, allocations: 15.91 kB / 0.5157 GB, free: 6.633 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001143/0.1454, allocations: 15.89 kB / 0.5157 GB, free: 6.617 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.503e-05/0.1454, allocations: 4 kB / 0.5157 GB, free: 6.613 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (22): * Single equations (assignments): 22 * 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.0001661/0.1456, allocations: 129.8 kB / 0.5159 GB, free: 6.477 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.068e-05/0.1456, allocations: 19.86 kB / 0.5159 GB, free: 6.457 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.74e-05/0.1457, allocations: 21.39 kB / 0.5159 GB, free: 6.438 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.1457, allocations: 0 / 0.5159 GB, free: 6.438 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.155e-06/0.1457, allocations: 3.938 kB / 0.5159 GB, free: 6.434 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.1457, allocations: 7.938 kB / 0.5159 GB, free: 6.426 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003564/0.1461, allocations: 181.2 kB / 0.5161 GB, free: 6.219 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.1461, allocations: 0 / 0.5161 GB, free: 6.219 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000171/0.1463, allocations: 23.92 kB / 0.5161 GB, free: 6.195 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.1463, allocations: 0 / 0.5161 GB, free: 6.195 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.052e-05/0.1463, allocations: 0 / 0.5161 GB, free: 6.195 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.804e-06/0.1463, allocations: 0 / 0.5161 GB, free: 6.195 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.1463, allocations: 0 / 0.5161 GB, free: 6.195 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004661/0.1468, allocations: 255.7 kB / 0.5163 GB, free: 5.93 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.386e-05/0.1468, allocations: 23.83 kB / 0.5164 GB, free: 5.906 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.419e-05/0.1469, allocations: 4 kB / 0.5164 GB, free: 5.902 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001224/0.147, allocations: 4 kB / 0.5164 GB, free: 5.898 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.631e-05/0.147, allocations: 15.98 kB / 0.5164 GB, free: 5.883 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.615e-05/0.147, allocations: 8 kB / 0.5164 GB, free: 5.875 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002081/0.1473, allocations: 149.6 kB / 0.5165 GB, free: 5.73 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.1473, allocations: 0 / 0.5165 GB, free: 5.73 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000446/0.1477, allocations: 43.95 kB / 0.5166 GB, free: 5.688 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (predator.state,prey.state) * 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 (12): * Single equations (assignments): 12 * 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 Backend phase and start with SimCode phase: time 0.0001466/0.1478, allocations: 103.1 kB / 0.5167 GB, free: 5.574 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002845/0.1481, allocations: 84.02 kB / 0.5168 GB, free: 5.492 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.1481, allocations: 0 / 0.5168 GB, free: 5.492 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001107/0.1482, allocations: 47.98 kB / 0.5168 GB, free: 5.445 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005315/0.1488, allocations: 32.66 kB / 0.5168 GB, free: 5.406 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008982/0.1497, allocations: 361.6 kB / 0.5172 GB, free: 5.027 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001834/0.1499, allocations: 129 kB / 0.5173 GB, free: 4.879 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 9.123e-05/0.1499, allocations: 17.47 kB / 0.5173 GB, free: 4.863 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.714e-05/0.15, allocations: 19.44 kB / 0.5173 GB, free: 4.848 MB / 378.7 MB Notification: Performance of SimCode: time 4.9e-07/0.15, allocations: 0 / 0.5173 GB, free: 4.848 MB / 378.7 MB Notification: Performance of Templates: time 0.007067/0.1571, allocations: 1.75 MB / 0.5191 GB, free: 3.129 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Bodylight_Bodylight.Population.UniformPopulation.Examples.PredatorPrey.makefile [Timeout 660] (rm -f Bodylight_Bodylight.Population.UniformPopulation.Examples.PredatorPrey.pipe ; mkfifo Bodylight_Bodylight.Population.UniformPopulation.Examples.PredatorPrey.pipe ; head -c 1048576 < Bodylight_Bodylight.Population.UniformPopulation.Examples.PredatorPrey.pipe >> ../files/Bodylight_Bodylight.Population.UniformPopulation.Examples.PredatorPrey.sim & ./Bodylight_Bodylight.Population.UniformPopulation.Examples.PredatorPrey -abortSlowSimulation -alarm=240 -lv LOG_STATS > Bodylight_Bodylight.Population.UniformPopulation.Examples.PredatorPrey.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 5.70168371219188]