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.0009742/0.0009742, allocations: 93.06 kB / 19.65 MB, free: 280 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.001028/0.001028, allocations: 173 kB / 23.03 MB, free: 1.547 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.9196/0.9196, allocations: 177.1 MB / 203.4 MB, free: 5.648 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.05785/0.05785, allocations: 12.75 MB / 272.7 MB, free: 292 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.513e-06/1.513e-06, allocations: 3.938 kB / 346.7 MB, free: 1.262 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.261e-05/2.413e-05, allocations: 6.25 kB / 346.7 MB, free: 1.254 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Population.UniformPopulation.Examples.PredatorPrey): time 0.002862/0.002886, allocations: 2.509 MB / 349.2 MB, free: 14.73 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003974/0.00686, allocations: 2.789 MB / 352 MB, free: 11.93 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001438/0.007004, allocations: 11.88 kB / 352 MB, free: 11.92 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001286/0.007133, allocations: 27.67 kB / 352 MB, free: 11.89 MB / 282.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.0009782/0.008111, allocations: 381.9 kB / 352.4 MB, free: 11.52 MB / 282.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.0007009/0.008812, allocations: 418.7 kB / 352.8 MB, free: 11.11 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002604/0.009072, allocations: 258.6 kB / 353.1 MB, free: 10.86 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001381/0.00921, allocations: 53.05 kB / 353.1 MB, free: 10.8 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001082/0.009319, allocations: 119.7 kB / 353.2 MB, free: 10.68 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.989e-05/0.009419, allocations: 67.73 kB / 353.3 MB, free: 10.62 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.286e-05/0.009441, allocations: 12 kB / 353.3 MB, free: 10.61 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.892e-05/0.00946, allocations: 16 kB / 353.3 MB, free: 10.59 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.861e-05/0.009489, allocations: 31.86 kB / 353.4 MB, free: 10.56 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.865e-05/0.009548, allocations: 71.77 kB / 353.4 MB, free: 10.49 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002224/0.00977, allocations: 171.4 kB / 353.6 MB, free: 10.32 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.009773, allocations: 0 / 353.6 MB, free: 10.32 MB / 282.7 MB Notification: Performance of FrontEnd: time 8.71e-07/0.009774, allocations: 0 / 353.6 MB, free: 10.32 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.999e-06/0.009779, allocations: 0 / 353.6 MB, free: 10.32 MB / 282.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.0006059/0.01039, allocations: 0.5231 MB / 354.1 MB, free: 9.758 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.079e-05/0.01043, allocations: 15.98 kB / 354.1 MB, free: 9.742 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.123e-05/0.0105, allocations: 36.75 kB / 354.2 MB, free: 9.707 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003103/0.01081, allocations: 224.1 kB / 354.4 MB, free: 9.461 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.949e-05/0.01083, allocations: 12.66 kB / 354.4 MB, free: 9.449 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.2e-05/0.01086, allocations: 16.38 kB / 354.4 MB, free: 9.434 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001937/0.01105, allocations: 113.2 kB / 354.5 MB, free: 9.316 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.258e-05/0.01107, allocations: 3.938 kB / 354.5 MB, free: 9.312 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.594e-05/0.01108, allocations: 8 kB / 354.5 MB, free: 9.305 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.664e-06/0.01109, allocations: 0 / 354.5 MB, free: 9.305 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000446/0.01153, allocations: 52.75 kB / 354.6 MB, free: 9.254 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007248/0.01226, allocations: 479.3 kB / 355.1 MB, free: 8.75 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001733/0.01243, allocations: 87.12 kB / 355.1 MB, free: 8.652 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.725e-05/0.01249, allocations: 35.67 kB / 355.2 MB, free: 8.613 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.018e-05/0.0125, allocations: 0 / 355.2 MB, free: 8.613 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.616e-05/0.01253, allocations: 45.33 kB / 355.2 MB, free: 8.559 MB / 282.7 MB Notification: Performance of pre-optimization done (n=12): time 1.272e-06/0.01253, allocations: 0 / 355.2 MB, free: 8.559 MB / 282.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002493/0.01278, allocations: 113.5 kB / 355.3 MB, free: 8.441 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.312e-05/0.01281, allocations: 59.34 kB / 355.4 MB, free: 8.371 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001842/0.01299, allocations: 258.7 kB / 355.6 MB, free: 8.098 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.287e-05/0.01301, allocations: 25.7 kB / 355.7 MB, free: 8.066 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001022/0.01311, allocations: 203 kB / 355.9 MB, free: 7.863 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.302e-05/0.01314, allocations: 43.64 kB / 355.9 MB, free: 7.82 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.905e-05/0.0132, allocations: 43.38 kB / 356 MB, free: 7.77 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001313/0.01333, allocations: 0.5001 MB / 356.5 MB, free: 7.258 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.141e-05/0.01338, allocations: 27.92 kB / 356.5 MB, free: 7.23 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.163e-05/0.01346, allocations: 61.22 kB / 356.5 MB, free: 7.16 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001166/0.01357, allocations: 89.98 kB / 356.6 MB, free: 7.062 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.01357, allocations: 0 / 356.6 MB, free: 7.062 MB / 282.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0001926/0.01377, allocations: 141.4 kB / 356.8 MB, free: 6.918 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.649e-05/0.01378, allocations: 11.98 kB / 356.8 MB, free: 6.906 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.01379, allocations: 0 / 356.8 MB, free: 6.906 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.588e-05/0.0138, allocations: 0 / 356.8 MB, free: 6.906 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001296/0.01393, allocations: 35.92 kB / 356.8 MB, free: 6.871 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.262e-06/0.01394, allocations: 4 kB / 356.8 MB, free: 6.867 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.996e-05/0.014, allocations: 19.83 kB / 356.8 MB, free: 6.848 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.215e-05/0.01401, allocations: 15.98 kB / 356.9 MB, free: 6.832 MB / 282.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 8.234e-05/0.0141, allocations: 164.5 kB / 357 MB, free: 6.66 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.56e-05/0.01413, allocations: 19.91 kB / 357 MB, free: 6.641 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.773e-05/0.01417, allocations: 21.45 kB / 357.1 MB, free: 6.617 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-06/0.01417, allocations: 4 kB / 357.1 MB, free: 6.613 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.01418, allocations: 0 / 357.1 MB, free: 6.613 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.01418, allocations: 0 / 357.1 MB, free: 6.613 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001969/0.01438, allocations: 192.5 kB / 357.2 MB, free: 6.391 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.01438, allocations: 0 / 357.2 MB, free: 6.391 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.256e-05/0.01447, allocations: 19.98 kB / 357.3 MB, free: 6.371 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.01447, allocations: 8 kB / 357.3 MB, free: 6.363 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.691e-05/0.01449, allocations: 7.938 kB / 357.3 MB, free: 6.355 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.163e-06/0.01449, allocations: 0 / 357.3 MB, free: 6.355 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.01449, allocations: 3.938 kB / 357.3 MB, free: 6.352 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000242/0.01474, allocations: 267.7 kB / 357.5 MB, free: 6.07 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.672e-05/0.01478, allocations: 27.83 kB / 357.6 MB, free: 6.043 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.927e-05/0.0148, allocations: 4 kB / 357.6 MB, free: 6.039 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.48e-05/0.01487, allocations: 4 kB / 357.6 MB, free: 6.035 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.925e-05/0.01489, allocations: 3.984 kB / 357.6 MB, free: 6.031 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.001e-06/0.01489, allocations: 4 kB / 357.6 MB, free: 6.027 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001045/0.015, allocations: 189.5 kB / 357.8 MB, free: 5.844 MB / 282.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.015, allocations: 0 / 357.8 MB, free: 5.844 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002497/0.01525, allocations: 47.95 kB / 357.8 MB, free: 5.797 MB / 282.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 8.831e-05/0.01533, allocations: 99.12 kB / 357.9 MB, free: 5.691 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000162/0.0155, allocations: 80.08 kB / 358 MB, free: 5.609 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.0155, allocations: 0 / 358 MB, free: 5.609 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 4.58e-05/0.01554, allocations: 43.59 kB / 358 MB, free: 5.562 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003423/0.01589, allocations: 43.64 kB / 358.1 MB, free: 5.52 MB / 282.7 MB Error: Error parsing unit %: Parse error Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009324/0.01682, allocations: 342.8 kB / 358.4 MB, free: 5.152 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.348e-05/0.01687, allocations: 75.98 kB / 358.5 MB, free: 5.059 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 6.292e-05/0.01694, allocations: 17.47 kB / 358.5 MB, free: 5.043 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.424e-05/0.01698, allocations: 28.5 kB / 358.5 MB, free: 5.016 MB / 282.7 MB Notification: Performance of SimCode: time 1.042e-06/0.01698, allocations: 0 / 358.5 MB, free: 5.016 MB / 282.7 MB Notification: Performance of Templates: time 0.004229/0.02121, allocations: 1.646 MB / 360.2 MB, free: 3.398 MB / 282.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.608176421839744]