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.001641/0.001641, allocations: 100.4 kB / 19.7 MB, free: 440 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.001363/0.001363, allocations: 211.6 kB / 22.99 MB, free: 2.961 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.068/1.068, allocations: 230.6 MB / 256.8 MB, free: 9.617 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.05996/0.05996, allocations: 17.16 MB / 330.3 MB, free: 0.7188 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.002168/0.002168, allocations: 63.91 kB / 460.7 MB, free: 27.14 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09058/0.09275, allocations: 57.76 MB / 0.5063 GB, free: 1.281 MB / 362.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Population.UniformPopulation.Examples.PredatorPrey): time 0.002646/0.0954, allocations: 2.37 MB / 0.5086 GB, free: 14.9 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002802/0.0982, allocations: 2.684 MB / 0.5112 GB, free: 12.2 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001231/0.09832, allocations: 11.88 kB / 0.5112 GB, free: 12.19 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001294/0.09845, allocations: 27.66 kB / 0.5113 GB, free: 12.16 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.0007937/0.09925, allocations: 370.2 kB / 0.5116 GB, free: 11.8 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.0005842/0.09983, allocations: 426.3 kB / 0.512 GB, free: 11.39 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.000239/0.1001, allocations: 246.9 kB / 0.5123 GB, free: 11.14 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001297/0.1002, allocations: 45.02 kB / 0.5123 GB, free: 11.1 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.602e-05/0.1003, allocations: 83.66 kB / 0.5124 GB, free: 11.02 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.798e-05/0.1004, allocations: 83.44 kB / 0.5125 GB, free: 10.93 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.895e-05/0.1004, allocations: 15.98 kB / 0.5125 GB, free: 10.92 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.028e-05/0.1004, allocations: 16 kB / 0.5125 GB, free: 10.9 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 3.14e-05/0.1004, allocations: 35.84 kB / 0.5125 GB, free: 10.87 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.644e-05/0.1005, allocations: 79.61 kB / 0.5126 GB, free: 10.79 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002234/0.1007, allocations: 238.9 kB / 0.5128 GB, free: 10.55 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.1007, allocations: 0 / 0.5128 GB, free: 10.55 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.1007, allocations: 4 kB / 0.5128 GB, free: 10.55 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.573e-06/0.1007, allocations: 0 / 0.5128 GB, free: 10.55 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.0004885/0.1012, allocations: 441.4 kB / 0.5133 GB, free: 10.09 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.587e-05/0.1012, allocations: 8.031 kB / 0.5133 GB, free: 10.08 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.014e-05/0.1013, allocations: 24.8 kB / 0.5133 GB, free: 10.05 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002568/0.1015, allocations: 213.8 kB / 0.5135 GB, free: 9.82 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.433e-05/0.1016, allocations: 16.59 kB / 0.5135 GB, free: 9.805 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.029e-05/0.1016, allocations: 20.12 kB / 0.5135 GB, free: 9.785 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001643/0.1018, allocations: 119.9 kB / 0.5136 GB, free: 9.664 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.094e-05/0.1018, allocations: 4 kB / 0.5136 GB, free: 9.66 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.293e-05/0.1018, allocations: 4 kB / 0.5136 GB, free: 9.656 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.1018, allocations: 4 kB / 0.5136 GB, free: 9.652 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001085/0.1019, allocations: 80.73 kB / 0.5137 GB, free: 9.574 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000552/0.1024, allocations: 428.1 kB / 0.5141 GB, free: 9.125 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001679/0.1026, allocations: 110.5 kB / 0.5142 GB, free: 9.008 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.181e-05/0.1027, allocations: 44.94 kB / 0.5143 GB, free: 8.961 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.075e-05/0.1027, allocations: 0 / 0.5143 GB, free: 8.961 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.654e-05/0.1027, allocations: 30.56 kB / 0.5143 GB, free: 8.922 MB / 378.7 MB Notification: Performance of pre-optimization done (n=12): time 9.92e-07/0.1027, allocations: 0 / 0.5143 GB, free: 8.922 MB / 378.7 MB Notification: Performance of matching and sorting (n=12): time 0.000225/0.1029, allocations: 137.5 kB / 0.5144 GB, free: 8.781 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.404e-05/0.103, allocations: 59.34 kB / 0.5145 GB, free: 8.711 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000162/0.1031, allocations: 212.1 kB / 0.5147 GB, free: 8.488 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.609e-05/0.1031, allocations: 29.7 kB / 0.5147 GB, free: 8.453 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.324e-05/0.1032, allocations: 160.2 kB / 0.5149 GB, free: 8.293 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.086e-05/0.1032, allocations: 47.58 kB / 0.5149 GB, free: 8.246 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.489e-05/0.1033, allocations: 33.72 kB / 0.515 GB, free: 8.207 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001003/0.1034, allocations: 338.8 kB / 0.5153 GB, free: 7.867 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.422e-05/0.1034, allocations: 35.98 kB / 0.5153 GB, free: 7.832 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.863e-05/0.1035, allocations: 69.36 kB / 0.5154 GB, free: 7.758 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001173/0.1036, allocations: 100.9 kB / 0.5155 GB, free: 7.652 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.1036, allocations: 7.938 kB / 0.5155 GB, free: 7.645 MB / 378.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000167/0.1038, allocations: 164.4 kB / 0.5156 GB, free: 7.48 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.358e-05/0.1038, allocations: 4 kB / 0.5156 GB, free: 7.477 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.06e-06/0.1038, allocations: 0 / 0.5156 GB, free: 7.477 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.214e-05/0.1038, allocations: 4 kB / 0.5157 GB, free: 7.473 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001035/0.1039, allocations: 31.98 kB / 0.5157 GB, free: 7.441 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.626e-06/0.1039, allocations: 3.938 kB / 0.5157 GB, free: 7.438 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.094e-05/0.104, allocations: 15.89 kB / 0.5157 GB, free: 7.422 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.955e-06/0.104, allocations: 7.984 kB / 0.5157 GB, free: 7.414 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 7.605e-05/0.1041, allocations: 133.8 kB / 0.5158 GB, free: 7.273 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.11e-05/0.1041, allocations: 19.86 kB / 0.5159 GB, free: 7.254 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.991e-05/0.1041, allocations: 17.41 kB / 0.5159 GB, free: 7.238 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.1041, allocations: 4 kB / 0.5159 GB, free: 7.234 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.1041, allocations: 3.938 kB / 0.5159 GB, free: 7.23 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.1041, allocations: 3.984 kB / 0.5159 GB, free: 7.227 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001448/0.1043, allocations: 181.2 kB / 0.5161 GB, free: 7.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.1043, allocations: 0 / 0.5161 GB, free: 7.02 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.969e-05/0.1043, allocations: 16 kB / 0.5161 GB, free: 7.004 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.202e-06/0.1043, allocations: 3.938 kB / 0.5161 GB, free: 7 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.12e-05/0.1044, allocations: 11.98 kB / 0.5161 GB, free: 6.988 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.103e-06/0.1044, allocations: 7.938 kB / 0.5161 GB, free: 6.98 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.1044, allocations: 0 / 0.5161 GB, free: 6.98 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002088/0.1046, allocations: 243.3 kB / 0.5163 GB, free: 6.727 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.021e-05/0.1046, allocations: 31.86 kB / 0.5164 GB, free: 6.695 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.439e-05/0.1046, allocations: 0 / 0.5164 GB, free: 6.695 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.093e-05/0.1047, allocations: 0 / 0.5164 GB, free: 6.695 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.08e-05/0.1047, allocations: 15.92 kB / 0.5164 GB, free: 6.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.046e-06/0.1047, allocations: 0 / 0.5164 GB, free: 6.68 MB / 378.7 MB Notification: Performance of sorting global known variables: time 8.175e-05/0.1048, allocations: 149.6 kB / 0.5165 GB, free: 6.535 MB / 378.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1048, allocations: 0 / 0.5165 GB, free: 6.535 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0001699/0.1049, allocations: 47.95 kB / 0.5166 GB, free: 6.488 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 7.157e-05/0.105, allocations: 103.2 kB / 0.5167 GB, free: 6.375 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001451/0.1052, allocations: 95.84 kB / 0.5167 GB, free: 6.281 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.1052, allocations: 0 / 0.5167 GB, free: 6.281 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 3.477e-05/0.1052, allocations: 31.98 kB / 0.5168 GB, free: 6.25 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002497/0.1054, allocations: 40.59 kB / 0.5168 GB, free: 6.207 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004695/0.1059, allocations: 383.4 kB / 0.5172 GB, free: 5.801 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.53e-05/0.106, allocations: 129.2 kB / 0.5173 GB, free: 5.652 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.906e-05/0.106, allocations: 19.44 kB / 0.5173 GB, free: 5.633 MB / 378.7 MB Notification: Performance of SimCode: time 4.61e-07/0.106, allocations: 0 / 0.5173 GB, free: 5.633 MB / 378.7 MB Notification: Performance of Templates: time 0.002635/0.1087, allocations: 2.259 MB / 0.5195 GB, free: 3.383 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 > Bodylight_Bodylight.Population.UniformPopulation.Examples.PredatorPrey.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 5.08098621526733]