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.001367/0.001367, allocations: 81.53 kB / 20.8 MB, free: 3.656 MB / 18.57 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.00148/0.00148, allocations: 169 kB / 24.22 MB, free: 244 kB / 18.57 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 0.9764/0.9764, allocations: 177.1 MB / 204.7 MB, free: 5.469 MB / 186.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.06158/0.06158, allocations: 12.76 MB / 273.9 MB, free: 140 kB / 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: Performance of FrontEnd - loaded program: time 2.184e-06/2.184e-06, allocations: 0 / 294.9 MB, free: 11.9 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.745e-05/2.964e-05, allocations: 6.094 kB / 294.9 MB, free: 11.9 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Population.UniformPopulation.Examples.PredatorPrey): time 0.003271/0.003301, allocations: 2.513 MB / 297.4 MB, free: 10.23 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003319/0.00662, allocations: 2.75 MB / 300.2 MB, free: 8.516 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001178/0.006738, allocations: 12.66 kB / 300.2 MB, free: 8.508 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001238/0.006861, allocations: 27.98 kB / 300.2 MB, free: 8.488 MB / 266.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.00095/0.007811, allocations: 358.1 kB / 300.5 MB, free: 8.297 MB / 266.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.0007858/0.008597, allocations: 404.7 kB / 300.9 MB, free: 8.098 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003085/0.008906, allocations: 246.9 kB / 301.2 MB, free: 7.973 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001257/0.009031, allocations: 55.34 kB / 301.2 MB, free: 7.941 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001317/0.009163, allocations: 123.6 kB / 301.4 MB, free: 7.895 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001073/0.009271, allocations: 66.72 kB / 301.4 MB, free: 7.871 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.42e-05/0.009295, allocations: 13.69 kB / 301.4 MB, free: 7.871 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.561e-05/0.00932, allocations: 14.38 kB / 301.5 MB, free: 7.871 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.811e-05/0.009348, allocations: 37.73 kB / 301.5 MB, free: 7.844 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.528e-05/0.009404, allocations: 63.95 kB / 301.6 MB, free: 7.82 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002201/0.009624, allocations: 178.5 kB / 301.7 MB, free: 7.73 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.009627, allocations: 0 / 301.7 MB, free: 7.73 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.009628, allocations: 0 / 301.7 MB, free: 7.73 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.811e-06/0.009634, allocations: 1.125 kB / 301.7 MB, free: 7.73 MB / 266.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.0004193/0.01005, allocations: 406.9 kB / 302.1 MB, free: 7.391 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.043e-05/0.01008, allocations: 13.52 kB / 302.1 MB, free: 7.387 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.854e-05/0.01013, allocations: 30.95 kB / 302.2 MB, free: 7.379 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002101/0.01034, allocations: 212.9 kB / 302.4 MB, free: 7.203 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.604e-05/0.01036, allocations: 16.3 kB / 302.4 MB, free: 7.195 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.406e-05/0.01038, allocations: 15.03 kB / 302.4 MB, free: 7.191 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001294/0.01051, allocations: 108.2 kB / 302.5 MB, free: 7.129 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.136e-05/0.01052, allocations: 6.172 kB / 302.5 MB, free: 7.125 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.607e-06/0.01053, allocations: 5.469 kB / 302.5 MB, free: 7.121 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.185e-06/0.01054, allocations: 8.125 kB / 302.5 MB, free: 7.117 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.001e-05/0.01059, allocations: 33.81 kB / 302.6 MB, free: 7.113 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004242/0.01101, allocations: 320 kB / 302.9 MB, free: 6.898 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001041/0.01112, allocations: 72.53 kB / 302.9 MB, free: 6.863 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.69e-05/0.01115, allocations: 26.05 kB / 303 MB, free: 6.852 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.027e-06/0.01115, allocations: 2.75 kB / 303 MB, free: 6.852 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.587e-05/0.01117, allocations: 36.53 kB / 303 MB, free: 6.809 MB / 266.7 MB Notification: Performance of pre-optimization done (n=12): time 1.283e-06/0.01117, allocations: 0 / 303 MB, free: 6.809 MB / 266.7 MB Notification: Performance of matching and sorting (n=12): time 0.000141/0.01131, allocations: 87.59 kB / 303.1 MB, free: 6.77 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.974e-05/0.01133, allocations: 54.16 kB / 303.1 MB, free: 6.707 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000104/0.01144, allocations: 204.7 kB / 303.3 MB, free: 6.566 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.813e-06/0.01144, allocations: 27.08 kB / 303.4 MB, free: 6.535 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.238e-05/0.01149, allocations: 143.7 kB / 303.5 MB, free: 6.41 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.97e-05/0.01151, allocations: 44.56 kB / 303.6 MB, free: 6.375 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.128e-05/0.01155, allocations: 42.45 kB / 303.6 MB, free: 6.344 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 3.739e-05/0.01158, allocations: 334.3 kB / 303.9 MB, free: 6.02 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.025e-05/0.0116, allocations: 14.3 kB / 303.9 MB, free: 6.02 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.177e-05/0.01165, allocations: 49.67 kB / 304 MB, free: 5.988 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.569e-05/0.01171, allocations: 76.77 kB / 304.1 MB, free: 5.949 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/0.01171, allocations: 0.6094 kB / 304.1 MB, free: 5.949 MB / 266.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0001069/0.01182, allocations: 106.7 kB / 304.2 MB, free: 5.906 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.218e-05/0.01183, allocations: 5.5 kB / 304.2 MB, free: 5.906 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.01184, allocations: 0 / 304.2 MB, free: 5.906 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.347e-06/0.01185, allocations: 2.031 kB / 304.2 MB, free: 5.906 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001169/0.01196, allocations: 41.52 kB / 304.2 MB, free: 5.902 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.166e-06/0.01197, allocations: 1.375 kB / 304.2 MB, free: 5.902 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.777e-05/0.01201, allocations: 16.02 kB / 304.2 MB, free: 5.891 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.889e-06/0.01201, allocations: 2.75 kB / 304.2 MB, free: 5.891 MB / 266.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 4.298e-05/0.01205, allocations: 120.5 kB / 304.4 MB, free: 5.766 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.279e-05/0.01208, allocations: 17.88 kB / 304.4 MB, free: 5.762 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.833e-05/0.0121, allocations: 21.66 kB / 304.4 MB, free: 5.742 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.305e-06/0.01211, allocations: 2.75 kB / 304.4 MB, free: 5.742 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.504e-06/0.01211, allocations: 0 / 304.4 MB, free: 5.742 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.01211, allocations: 3.141 kB / 304.4 MB, free: 5.742 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001283/0.01224, allocations: 130 kB / 304.5 MB, free: 5.641 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.634e-06/0.01224, allocations: 0 / 304.5 MB, free: 5.641 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.944e-05/0.01231, allocations: 22.48 kB / 304.5 MB, free: 5.637 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.01231, allocations: 1.719 kB / 304.6 MB, free: 5.637 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.729e-06/0.01232, allocations: 4 kB / 304.6 MB, free: 5.633 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.345e-06/0.01233, allocations: 4.109 kB / 304.6 MB, free: 5.633 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.01233, allocations: 1.797 kB / 304.6 MB, free: 5.633 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001313/0.01246, allocations: 193.1 kB / 304.7 MB, free: 5.488 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.198e-05/0.01249, allocations: 25.33 kB / 304.8 MB, free: 5.473 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.294e-05/0.0125, allocations: 1.219 kB / 304.8 MB, free: 5.473 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.908e-05/0.01254, allocations: 5.281 kB / 304.8 MB, free: 5.469 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.509e-05/0.01256, allocations: 5.484 kB / 304.8 MB, free: 5.469 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.028e-06/0.01256, allocations: 2.281 kB / 304.8 MB, free: 5.469 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.493e-05/0.01261, allocations: 65.56 kB / 304.9 MB, free: 5.445 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01261, allocations: 1.25 kB / 304.9 MB, free: 5.445 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001485/0.01276, allocations: 46.78 kB / 304.9 MB, free: 5.434 MB / 266.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 6.907e-05/0.01283, allocations: 82.8 kB / 305 MB, free: 5.355 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001027/0.01293, allocations: 67.83 kB / 305 MB, free: 5.336 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.01293, allocations: 2.688 kB / 305 MB, free: 5.336 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.731e-05/0.01296, allocations: 30.86 kB / 305.1 MB, free: 5.324 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001947/0.01315, allocations: 43.06 kB / 305.1 MB, free: 5.301 MB / 266.7 MB Error: Error parsing unit %: Parse error Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007997/0.01395, allocations: 346.3 kB / 305.5 MB, free: 5.062 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.375e-05/0.014, allocations: 75.61 kB / 305.5 MB, free: 4.992 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.203e-05/0.01407, allocations: 22.36 kB / 305.6 MB, free: 4.984 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.792e-05/0.01416, allocations: 78 kB / 305.6 MB, free: 4.938 MB / 266.7 MB Notification: Performance of SimCode: time 6.61e-07/0.01416, allocations: 0 / 305.6 MB, free: 4.938 MB / 266.7 MB Notification: Performance of Templates: time 0.004078/0.01824, allocations: 1.715 MB / 307.3 MB, free: 4.207 MB / 266.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: 2.85422769933939]