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.0009733/0.0009733, allocations: 76.94 kB / 19.93 MB, free: 4.543 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.001104/0.001104, allocations: 172.9 kB / 23.36 MB, free: 1.125 MB / 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.9788/0.9788, allocations: 177.1 MB / 203.8 MB, free: 5.48 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.05943/0.05943, allocations: 12.76 MB / 273 MB, free: 172 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 1.533e-06/1.533e-06, allocations: 0.7656 kB / 293.9 MB, free: 11.98 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.964e-05/2.117e-05, allocations: 3.25 kB / 293.9 MB, free: 11.98 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Population.UniformPopulation.Examples.PredatorPrey): time 0.003343/0.003364, allocations: 2.523 MB / 296.5 MB, free: 10.3 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003187/0.006551, allocations: 2.758 MB / 299.2 MB, free: 8.57 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000107/0.006658, allocations: 7.562 kB / 299.2 MB, free: 8.566 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001167/0.006774, allocations: 32.33 kB / 299.2 MB, free: 8.543 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.0009321/0.007706, allocations: 364.8 kB / 299.6 MB, free: 8.344 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.0006071/0.008313, allocations: 403.9 kB / 300 MB, free: 8.141 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002287/0.008542, allocations: 259.3 kB / 300.3 MB, free: 8.004 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001219/0.008664, allocations: 51.84 kB / 300.3 MB, free: 7.977 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000116/0.00878, allocations: 119.1 kB / 300.4 MB, free: 7.934 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001071/0.008887, allocations: 62.38 kB / 300.5 MB, free: 7.914 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.219e-05/0.008909, allocations: 12.91 kB / 300.5 MB, free: 7.914 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.962e-05/0.008939, allocations: 15.75 kB / 300.5 MB, free: 7.914 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.803e-05/0.008967, allocations: 41.67 kB / 300.5 MB, free: 7.883 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.53e-05/0.009022, allocations: 67.72 kB / 300.6 MB, free: 7.855 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002046/0.009227, allocations: 166.4 kB / 300.8 MB, free: 7.777 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.124e-06/0.009229, allocations: 0 / 300.8 MB, free: 7.777 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.00923, allocations: 0 / 300.8 MB, free: 7.777 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.42e-06/0.009236, allocations: 0 / 300.8 MB, free: 7.777 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.0003824/0.009618, allocations: 416.3 kB / 301.2 MB, free: 7.43 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.159e-05/0.00965, allocations: 13.7 kB / 301.2 MB, free: 7.426 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.954e-05/0.009699, allocations: 26.33 kB / 301.2 MB, free: 7.422 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002275/0.009927, allocations: 211 kB / 301.4 MB, free: 7.25 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.63e-05/0.009943, allocations: 15.06 kB / 301.4 MB, free: 7.242 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.322e-05/0.009966, allocations: 14.69 kB / 301.5 MB, free: 7.238 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001208/0.01009, allocations: 105.8 kB / 301.6 MB, free: 7.18 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.0101, allocations: 3.938 kB / 301.6 MB, free: 7.176 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.168e-06/0.01011, allocations: 9.203 kB / 301.6 MB, free: 7.168 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.01011, allocations: 8.375 kB / 301.6 MB, free: 7.164 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.974e-05/0.01016, allocations: 33.67 kB / 301.6 MB, free: 7.16 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000439/0.0106, allocations: 325 kB / 301.9 MB, free: 6.941 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001182/0.01072, allocations: 66.8 kB / 302 MB, free: 6.91 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.029e-05/0.01075, allocations: 25.61 kB / 302 MB, free: 6.898 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.032e-05/0.01076, allocations: 7.984 kB / 302 MB, free: 6.895 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.648e-05/0.01078, allocations: 39.91 kB / 302.1 MB, free: 6.848 MB / 266.7 MB Notification: Performance of pre-optimization done (n=12): time 1.323e-06/0.01078, allocations: 0 / 302.1 MB, free: 6.848 MB / 266.7 MB Notification: Performance of matching and sorting (n=12): time 0.0001492/0.01093, allocations: 84.95 kB / 302.2 MB, free: 6.812 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.864e-05/0.01095, allocations: 56.78 kB / 302.2 MB, free: 6.746 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001075/0.01105, allocations: 197.4 kB / 302.4 MB, free: 6.613 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.043e-06/0.01106, allocations: 29.7 kB / 302.4 MB, free: 6.578 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.433e-05/0.01111, allocations: 141.1 kB / 302.6 MB, free: 6.457 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.318e-05/0.01113, allocations: 44.19 kB / 302.6 MB, free: 6.422 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.994e-05/0.01117, allocations: 39.11 kB / 302.6 MB, free: 6.395 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.1e-05/0.01121, allocations: 328.4 kB / 303 MB, free: 6.074 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.251e-05/0.01123, allocations: 20.38 kB / 303 MB, free: 6.07 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.865e-05/0.01127, allocations: 49.83 kB / 303 MB, free: 6.035 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.149e-05/0.01134, allocations: 81.36 kB / 303.1 MB, free: 5.992 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.01134, allocations: 0 / 303.1 MB, free: 5.992 MB / 266.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0001087/0.01145, allocations: 97.84 kB / 303.2 MB, free: 5.957 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.148e-05/0.01146, allocations: 5.5 kB / 303.2 MB, free: 5.957 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.01147, allocations: 1.375 kB / 303.2 MB, free: 5.957 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/0.01148, allocations: 2.266 kB / 303.2 MB, free: 5.957 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001214/0.01161, allocations: 41.94 kB / 303.3 MB, free: 5.949 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.958e-06/0.01161, allocations: 6.812 kB / 303.3 MB, free: 5.945 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.662e-05/0.01165, allocations: 15.42 kB / 303.3 MB, free: 5.934 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.354e-06/0.01165, allocations: 8.125 kB / 303.3 MB, free: 5.93 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 5.005e-05/0.0117, allocations: 121.1 kB / 303.4 MB, free: 5.805 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.414e-05/0.01173, allocations: 11.58 kB / 303.4 MB, free: 5.805 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.951e-05/0.01176, allocations: 24.36 kB / 303.4 MB, free: 5.785 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.01176, allocations: 1.375 kB / 303.4 MB, free: 5.785 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.993e-06/0.01176, allocations: 1.375 kB / 303.4 MB, free: 5.785 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.01176, allocations: 0.6094 kB / 303.4 MB, free: 5.785 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001238/0.01189, allocations: 129.1 kB / 303.6 MB, free: 5.684 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.01189, allocations: 4.562 kB / 303.6 MB, free: 5.68 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.676e-05/0.01196, allocations: 20.97 kB / 303.6 MB, free: 5.68 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.285e-06/0.01196, allocations: 1.375 kB / 303.6 MB, free: 5.68 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.448e-06/0.01197, allocations: 0 / 303.6 MB, free: 5.68 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.01197, allocations: 1.984 kB / 303.6 MB, free: 5.68 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.01197, allocations: 1.797 kB / 303.6 MB, free: 5.68 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001294/0.0121, allocations: 197 kB / 303.8 MB, free: 5.535 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.218e-05/0.01213, allocations: 22.73 kB / 303.8 MB, free: 5.52 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.014e-05/0.01215, allocations: 5.375 kB / 303.8 MB, free: 5.516 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.403e-05/0.01222, allocations: 1.375 kB / 303.8 MB, free: 5.516 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.797e-05/0.01224, allocations: 19.78 kB / 303.8 MB, free: 5.504 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.409e-06/0.01224, allocations: 1.375 kB / 303.8 MB, free: 5.504 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.726e-05/0.0123, allocations: 60.3 kB / 303.9 MB, free: 5.484 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.0123, allocations: 1.344 kB / 303.9 MB, free: 5.484 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000225/0.01252, allocations: 46.25 kB / 304 MB, free: 5.473 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.484e-05/0.01259, allocations: 74.98 kB / 304 MB, free: 5.402 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001098/0.0127, allocations: 67.92 kB / 304.1 MB, free: 5.383 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.899e-06/0.0127, allocations: 6.594 kB / 304.1 MB, free: 5.379 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.371e-05/0.01274, allocations: 31.41 kB / 304.1 MB, free: 5.367 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002441/0.01298, allocations: 41.3 kB / 304.2 MB, free: 5.344 MB / 266.7 MB Error: Error parsing unit %: Parse error Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007094/0.01369, allocations: 358.7 kB / 304.5 MB, free: 5.098 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.519e-05/0.01373, allocations: 72.72 kB / 304.6 MB, free: 5.027 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.996e-05/0.01379, allocations: 18.58 kB / 304.6 MB, free: 5.023 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.294e-05/0.01388, allocations: 78.34 kB / 304.7 MB, free: 4.977 MB / 266.7 MB Notification: Performance of SimCode: time 8.81e-07/0.01388, allocations: 0 / 304.7 MB, free: 4.977 MB / 266.7 MB Notification: Performance of Templates: time 0.004298/0.01818, allocations: 1.72 MB / 306.4 MB, free: 4.262 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 -s gbode -gbm=radauIIA3 -lv LOG_STATS > Bodylight_Bodylight.Population.UniformPopulation.Examples.PredatorPrey.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.7418614206835628]