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.001112/0.001112, allocations: 93.06 kB / 19.65 MB, free: 276 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.0009006/0.0009006, allocations: 173 kB / 23.02 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.8976/0.8976, allocations: 177.1 MB / 203.4 MB, free: 5.652 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.05518/0.05518, allocations: 12.76 MB / 272.7 MB, free: 300 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.473e-06/1.473e-06, allocations: 0 / 346.7 MB, free: 1.242 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.795e-05/1.943e-05, allocations: 4.844 kB / 346.7 MB, free: 1.238 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Population.UniformPopulation.Examples.PredatorPrey): time 0.002424/0.002443, allocations: 2.507 MB / 349.2 MB, free: 14.72 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00304/0.005484, allocations: 2.789 MB / 352 MB, free: 11.92 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001187/0.005602, allocations: 11.88 kB / 352 MB, free: 11.91 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001392/0.005742, allocations: 27.66 kB / 352 MB, free: 11.88 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.001107/0.006848, allocations: 385.9 kB / 352.4 MB, free: 11.5 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.000524/0.007372, allocations: 418.7 kB / 352.8 MB, free: 11.09 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002312/0.007603, allocations: 250.7 kB / 353.1 MB, free: 10.84 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001388/0.007742, allocations: 53 kB / 353.1 MB, free: 10.79 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001011/0.007843, allocations: 119.7 kB / 353.2 MB, free: 10.67 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001052/0.007949, allocations: 67.73 kB / 353.3 MB, free: 10.61 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.221e-05/0.007971, allocations: 12 kB / 353.3 MB, free: 10.59 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.468e-05/0.007995, allocations: 16 kB / 353.3 MB, free: 10.58 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.377e-05/0.008029, allocations: 35.84 kB / 353.4 MB, free: 10.54 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.841e-05/0.008098, allocations: 79.77 kB / 353.4 MB, free: 10.46 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002627/0.00836, allocations: 159.4 kB / 353.6 MB, free: 10.31 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.008366, allocations: 4 kB / 353.6 MB, free: 10.3 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.91e-07/0.008367, allocations: 0 / 353.6 MB, free: 10.3 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.974e-06/0.008374, allocations: 0 / 353.6 MB, free: 10.3 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.0005768/0.00895, allocations: 0.5232 MB / 354.1 MB, free: 9.742 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.008995, allocations: 11.98 kB / 354.1 MB, free: 9.73 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.023e-05/0.009056, allocations: 36.75 kB / 354.2 MB, free: 9.695 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002676/0.009323, allocations: 224.1 kB / 354.4 MB, free: 9.449 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.833e-05/0.009342, allocations: 8.656 kB / 354.4 MB, free: 9.441 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.887e-05/0.00937, allocations: 24.36 kB / 354.4 MB, free: 9.418 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001557/0.009526, allocations: 109.2 kB / 354.5 MB, free: 9.305 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.328e-05/0.009539, allocations: 7.938 kB / 354.5 MB, free: 9.297 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.325e-05/0.009553, allocations: 4 kB / 354.5 MB, free: 9.293 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.608e-06/0.009562, allocations: 8 kB / 354.5 MB, free: 9.285 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.191e-05/0.009644, allocations: 44.81 kB / 354.6 MB, free: 9.242 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005859/0.01023, allocations: 475.3 kB / 355.1 MB, free: 8.742 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001526/0.01038, allocations: 95.12 kB / 355.1 MB, free: 8.637 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.444e-05/0.01043, allocations: 31.67 kB / 355.2 MB, free: 8.602 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.297e-06/0.01044, allocations: 0 / 355.2 MB, free: 8.602 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.17e-05/0.01046, allocations: 41.33 kB / 355.2 MB, free: 8.551 MB / 282.7 MB Notification: Performance of pre-optimization done (n=12): time 1.563e-06/0.01046, allocations: 4 kB / 355.2 MB, free: 8.547 MB / 282.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002068/0.01067, allocations: 121.5 kB / 355.3 MB, free: 8.422 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.243e-05/0.0107, allocations: 55.34 kB / 355.4 MB, free: 8.355 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001514/0.01085, allocations: 254.7 kB / 355.6 MB, free: 8.086 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.472e-05/0.01087, allocations: 33.7 kB / 355.7 MB, free: 8.047 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.513e-05/0.01095, allocations: 195 kB / 355.9 MB, free: 7.852 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.707e-05/0.01098, allocations: 43.66 kB / 355.9 MB, free: 7.809 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.453e-05/0.01102, allocations: 43.36 kB / 356 MB, free: 7.758 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001324/0.01115, allocations: 0.5001 MB / 356.5 MB, free: 7.246 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.852e-05/0.01119, allocations: 23.92 kB / 356.5 MB, free: 7.223 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.161e-05/0.01125, allocations: 67.55 kB / 356.5 MB, free: 7.145 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.477e-05/0.01135, allocations: 80.77 kB / 356.6 MB, free: 7.055 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-06/0.01135, allocations: 0 / 356.6 MB, free: 7.055 MB / 282.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0001531/0.0115, allocations: 148.5 kB / 356.8 MB, free: 6.906 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.372e-05/0.01152, allocations: 4 kB / 356.8 MB, free: 6.902 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.01152, allocations: 0 / 356.8 MB, free: 6.902 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.625e-05/0.01154, allocations: 4 kB / 356.8 MB, free: 6.898 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001142/0.01165, allocations: 39.92 kB / 356.8 MB, free: 6.859 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.496e-06/0.01166, allocations: 8.047 kB / 356.8 MB, free: 6.852 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.894e-05/0.0117, allocations: 15.83 kB / 356.8 MB, free: 6.836 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.216e-05/0.01171, allocations: 11.94 kB / 356.8 MB, free: 6.824 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.46e-05/0.0118, allocations: 168.5 kB / 357 MB, free: 6.648 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.336e-05/0.01182, allocations: 23.91 kB / 357 MB, free: 6.625 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.475e-05/0.01186, allocations: 21.47 kB / 357.1 MB, free: 6.602 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.01186, allocations: 0 / 357.1 MB, free: 6.602 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/0.01186, allocations: 0 / 357.1 MB, free: 6.602 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.01187, allocations: 3.984 kB / 357.1 MB, free: 6.598 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001506/0.01202, allocations: 192.5 kB / 357.3 MB, free: 6.375 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.51e-07/0.01202, allocations: 4 kB / 357.3 MB, free: 6.371 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.467e-05/0.01209, allocations: 16 kB / 357.3 MB, free: 6.355 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.01209, allocations: 0 / 357.3 MB, free: 6.355 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.61e-05/0.01211, allocations: 3.938 kB / 357.3 MB, free: 6.352 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.01211, allocations: 3.984 kB / 357.3 MB, free: 6.348 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.01212, allocations: 4 kB / 357.3 MB, free: 6.344 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002056/0.01232, allocations: 276.1 kB / 357.6 MB, free: 6.055 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.561e-05/0.01236, allocations: 23.83 kB / 357.6 MB, free: 6.031 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.595e-05/0.01237, allocations: 4 kB / 357.6 MB, free: 6.027 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.939e-05/0.01241, allocations: 4 kB / 357.6 MB, free: 6.023 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.036e-05/0.01243, allocations: 7.984 kB / 357.6 MB, free: 6.016 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.316e-06/0.01244, allocations: 4.031 kB / 357.6 MB, free: 6.012 MB / 282.7 MB Notification: Performance of sorting global known variables: time 8.243e-05/0.01252, allocations: 181.5 kB / 357.8 MB, free: 5.836 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01252, allocations: 0 / 357.8 MB, free: 5.836 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001647/0.01268, allocations: 43.95 kB / 357.8 MB, free: 5.793 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 7.228e-05/0.01276, allocations: 107.1 kB / 357.9 MB, free: 5.68 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001411/0.0129, allocations: 81.03 kB / 358 MB, free: 5.598 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.654e-06/0.0129, allocations: 0 / 358 MB, free: 5.598 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 3.581e-05/0.01293, allocations: 39.72 kB / 358 MB, free: 5.555 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002726/0.01321, allocations: 36.78 kB / 358.1 MB, free: 5.516 MB / 282.7 MB Error: Error parsing unit %: Parse error Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008325/0.01404, allocations: 354.7 kB / 358.4 MB, free: 5.137 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.811e-05/0.0141, allocations: 71.98 kB / 358.5 MB, free: 5.047 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 4.875e-05/0.01415, allocations: 17.48 kB / 358.5 MB, free: 5.031 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.498e-05/0.01419, allocations: 20.5 kB / 358.5 MB, free: 5.012 MB / 282.7 MB Notification: Performance of SimCode: time 9.12e-07/0.01419, allocations: 0 / 358.5 MB, free: 5.012 MB / 282.7 MB Notification: Performance of Templates: time 0.003998/0.01819, allocations: 1.653 MB / 360.2 MB, free: 3.391 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.742521084845066]