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.001257/0.001257, allocations: 82.05 kB / 19.87 MB, free: 4.617 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.004693/0.004693, allocations: 174 kB / 23.28 MB, free: 1.219 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.9623/0.9623, allocations: 177.1 MB / 203.7 MB, free: 5.465 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.06173/0.06173, allocations: 12.76 MB / 273 MB, free: 76 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.174e-06/2.174e-06, allocations: 0 / 347.2 MB, free: 1.992 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.68e-05/2.897e-05, allocations: 4.562 kB / 347.2 MB, free: 1.988 MB / 314.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Population.UniformPopulation.Examples.PredatorPrey): time 0.004387/0.004416, allocations: 2.472 MB / 349.6 MB, free: 15.51 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.004888/0.009304, allocations: 2.707 MB / 352.3 MB, free: 12.79 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001769/0.009481, allocations: 7.938 kB / 352.3 MB, free: 12.78 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001522/0.009633, allocations: 31.66 kB / 352.4 MB, free: 12.75 MB / 330.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.001257/0.01089, allocations: 377.9 kB / 352.7 MB, free: 12.38 MB / 330.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.001069/0.01196, allocations: 426.6 kB / 353.2 MB, free: 11.96 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003634/0.01232, allocations: 246.8 kB / 353.4 MB, free: 11.71 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001854/0.01251, allocations: 45.06 kB / 353.4 MB, free: 11.67 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002134/0.01272, allocations: 127.7 kB / 353.6 MB, free: 11.55 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001331/0.01285, allocations: 59.75 kB / 353.6 MB, free: 11.49 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 3.353e-05/0.01289, allocations: 16 kB / 353.6 MB, free: 11.47 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.208e-05/0.01292, allocations: 12 kB / 353.7 MB, free: 11.46 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 4.046e-05/0.01296, allocations: 39.83 kB / 353.7 MB, free: 11.42 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 7.98e-05/0.01304, allocations: 67.78 kB / 353.8 MB, free: 11.36 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002864/0.01333, allocations: 167.3 kB / 353.9 MB, free: 11.19 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.01333, allocations: 4 kB / 353.9 MB, free: 11.19 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.01333, allocations: 0 / 353.9 MB, free: 11.19 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.701e-06/0.01334, allocations: 0 / 353.9 MB, free: 11.19 MB / 330.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.0005858/0.01392, allocations: 0.527 MB / 354.5 MB, free: 10.62 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.859e-05/0.01396, allocations: 11.98 kB / 354.5 MB, free: 10.61 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.404e-05/0.01403, allocations: 36.8 kB / 354.5 MB, free: 10.57 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003067/0.01434, allocations: 227.9 kB / 354.7 MB, free: 10.32 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.255e-05/0.01436, allocations: 12.66 kB / 354.7 MB, free: 10.31 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.858e-05/0.01439, allocations: 12.38 kB / 354.8 MB, free: 10.3 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001609/0.01455, allocations: 105.2 kB / 354.9 MB, free: 10.19 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.403e-05/0.01457, allocations: 3.938 kB / 354.9 MB, free: 10.19 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.34e-05/0.01458, allocations: 8 kB / 354.9 MB, free: 10.18 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.115e-06/0.01459, allocations: 4 kB / 354.9 MB, free: 10.18 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.94e-05/0.01467, allocations: 44.67 kB / 354.9 MB, free: 10.13 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006882/0.01536, allocations: 440 kB / 355.3 MB, free: 9.676 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001572/0.01551, allocations: 87.11 kB / 355.4 MB, free: 9.578 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.409e-05/0.01556, allocations: 31.67 kB / 355.5 MB, free: 9.543 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.021e-05/0.01557, allocations: 7.938 kB / 355.5 MB, free: 9.535 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.394e-05/0.01559, allocations: 37.39 kB / 355.5 MB, free: 9.488 MB / 330.7 MB Notification: Performance of pre-optimization done (n=12): time 1.844e-06/0.01559, allocations: 0 / 355.5 MB, free: 9.488 MB / 330.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002216/0.01582, allocations: 109.7 kB / 355.6 MB, free: 9.375 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.231e-05/0.01585, allocations: 59.41 kB / 355.7 MB, free: 9.305 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004559/0.0163, allocations: 254.6 kB / 355.9 MB, free: 9.035 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.467e-05/0.01632, allocations: 29.64 kB / 355.9 MB, free: 9 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001028/0.01642, allocations: 203 kB / 356.1 MB, free: 8.797 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.631e-05/0.01646, allocations: 43.62 kB / 356.2 MB, free: 8.754 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.179e-05/0.01652, allocations: 43.36 kB / 356.2 MB, free: 8.703 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001497/0.01667, allocations: 0.5079 MB / 356.7 MB, free: 8.184 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.195e-05/0.01671, allocations: 15.98 kB / 356.8 MB, free: 8.168 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.172e-05/0.01677, allocations: 58.95 kB / 356.8 MB, free: 8.098 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001061/0.01688, allocations: 74.09 kB / 356.9 MB, free: 8.016 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.01688, allocations: 0 / 356.9 MB, free: 8.016 MB / 330.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0001882/0.01707, allocations: 133.4 kB / 357 MB, free: 7.879 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.458e-05/0.01708, allocations: 8 kB / 357 MB, free: 7.871 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.01709, allocations: 0 / 357 MB, free: 7.871 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.378e-05/0.0171, allocations: 0 / 357 MB, free: 7.871 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001366/0.01724, allocations: 35.98 kB / 357.1 MB, free: 7.836 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.691e-06/0.01724, allocations: 3.984 kB / 357.1 MB, free: 7.832 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.804e-05/0.01731, allocations: 19.83 kB / 357.1 MB, free: 7.812 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.826e-06/0.01732, allocations: 4.062 kB / 357.1 MB, free: 7.809 MB / 330.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 9.488e-05/0.01742, allocations: 172.4 kB / 357.3 MB, free: 7.629 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.251e-05/0.01746, allocations: 27.86 kB / 357.3 MB, free: 7.602 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.346e-05/0.0175, allocations: 21.41 kB / 357.3 MB, free: 7.582 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/0.01751, allocations: 3.984 kB / 357.3 MB, free: 7.578 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.345e-06/0.01751, allocations: 4 kB / 357.3 MB, free: 7.574 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.135e-06/0.01751, allocations: 0 / 357.3 MB, free: 7.574 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002014/0.01771, allocations: 149.1 kB / 357.5 MB, free: 7.402 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.01772, allocations: 0 / 357.5 MB, free: 7.402 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001102/0.01783, allocations: 23.92 kB / 357.5 MB, free: 7.379 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.01783, allocations: 0 / 357.5 MB, free: 7.379 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.352e-05/0.01784, allocations: 8 kB / 357.5 MB, free: 7.371 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.497e-06/0.01785, allocations: 4 kB / 357.5 MB, free: 7.367 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.552e-06/0.01785, allocations: 0 / 357.5 MB, free: 7.367 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002415/0.01809, allocations: 255.7 kB / 357.7 MB, free: 7.098 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.413e-05/0.01814, allocations: 31.77 kB / 357.8 MB, free: 7.066 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.091e-05/0.01816, allocations: 7.984 kB / 357.8 MB, free: 7.059 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.733e-05/0.01824, allocations: 4 kB / 357.8 MB, free: 7.055 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.534e-05/0.01826, allocations: 0 / 357.8 MB, free: 7.055 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.116e-05/0.01827, allocations: 15.98 kB / 357.8 MB, free: 7.039 MB / 330.7 MB Notification: Performance of sorting global known variables: time 9.708e-05/0.01836, allocations: 169.5 kB / 358 MB, free: 6.875 MB / 330.7 MB Notification: Performance of sort global known variables: time 9e-08/0.01836, allocations: 4.031 kB / 358 MB, free: 6.871 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002834/0.01865, allocations: 43.95 kB / 358 MB, free: 6.828 MB / 330.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.0001007/0.01875, allocations: 99.19 kB / 358.1 MB, free: 6.723 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001398/0.01889, allocations: 71.56 kB / 358.2 MB, free: 6.648 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.01889, allocations: 0 / 358.2 MB, free: 6.648 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 4.463e-05/0.01894, allocations: 39.61 kB / 358.2 MB, free: 6.605 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00034/0.01928, allocations: 32.59 kB / 358.2 MB, free: 6.57 MB / 330.7 MB Error: Error parsing unit %: Parse error Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009201/0.0202, allocations: 351.1 kB / 358.6 MB, free: 6.199 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.492e-05/0.02025, allocations: 75.97 kB / 358.7 MB, free: 6.105 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 6.659e-05/0.02032, allocations: 21.41 kB / 358.7 MB, free: 6.086 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001081/0.02042, allocations: 102.2 kB / 358.8 MB, free: 5.984 MB / 330.7 MB Notification: Performance of SimCode: time 4.81e-07/0.02043, allocations: 4 kB / 358.8 MB, free: 5.98 MB / 330.7 MB Notification: Performance of Templates: time 0.004884/0.02531, allocations: 1.716 MB / 360.5 MB, free: 4.305 MB / 330.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.8522299146279693]