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.001139/0.001139, allocations: 80.88 kB / 19.94 MB, free: 4.551 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.001417/0.001417, allocations: 177 kB / 23.36 MB, free: 1.137 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.9538/0.9538, allocations: 177.2 MB / 203.8 MB, free: 5.445 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.08652/0.08652, allocations: 12.77 MB / 273 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 1.994e-06/1.994e-06, allocations: 0.9062 kB / 293.9 MB, free: 12.02 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.135e-05/1.335e-05, allocations: 2.312 kB / 293.9 MB, free: 12.02 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Population.UniformPopulation.Examples.PredatorPrey): time 0.002418/0.002432, allocations: 2.483 MB / 296.4 MB, free: 10.36 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002951/0.005383, allocations: 2.75 MB / 299.1 MB, free: 8.633 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001076/0.00549, allocations: 17.78 kB / 299.1 MB, free: 8.621 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001119/0.005602, allocations: 30.73 kB / 299.2 MB, free: 8.598 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.0008376/0.00644, allocations: 373.9 kB / 299.5 MB, free: 8.414 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.000642/0.007082, allocations: 432.4 kB / 300 MB, free: 8.207 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004313/0.007513, allocations: 251.1 kB / 300.2 MB, free: 8.078 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001428/0.007656, allocations: 52.58 kB / 300.3 MB, free: 8.051 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001441/0.0078, allocations: 121.7 kB / 300.4 MB, free: 8.004 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001261/0.007926, allocations: 66.2 kB / 300.4 MB, free: 7.98 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.519e-05/0.007951, allocations: 13.31 kB / 300.4 MB, free: 7.98 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.643e-05/0.007978, allocations: 19.72 kB / 300.5 MB, free: 7.977 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.558e-05/0.008013, allocations: 31.03 kB / 300.5 MB, free: 7.957 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.624e-05/0.00808, allocations: 70.69 kB / 300.6 MB, free: 7.926 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002803/0.00836, allocations: 170.5 kB / 300.7 MB, free: 7.844 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.008365, allocations: 0 / 300.7 MB, free: 7.844 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.008366, allocations: 0 / 300.7 MB, free: 7.844 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.511e-06/0.008371, allocations: 0 / 300.7 MB, free: 7.844 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.0004407/0.008812, allocations: 413.4 kB / 301.1 MB, free: 7.5 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.235e-05/0.008845, allocations: 13.73 kB / 301.2 MB, free: 7.496 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.64e-05/0.008891, allocations: 30.09 kB / 301.2 MB, free: 7.488 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002324/0.009123, allocations: 205.9 kB / 301.4 MB, free: 7.32 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.643e-05/0.00914, allocations: 11.55 kB / 301.4 MB, free: 7.316 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.584e-05/0.009166, allocations: 19.06 kB / 301.4 MB, free: 7.309 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001295/0.009295, allocations: 110.6 kB / 301.5 MB, free: 7.246 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/0.009306, allocations: 7.938 kB / 301.5 MB, free: 7.238 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.228e-06/0.009315, allocations: 5.156 kB / 301.5 MB, free: 7.234 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.971e-06/0.009321, allocations: 2.656 kB / 301.5 MB, free: 7.234 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.81e-05/0.009369, allocations: 34.52 kB / 301.6 MB, free: 7.23 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004352/0.009805, allocations: 316.3 kB / 301.9 MB, free: 7.02 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001147/0.009919, allocations: 75.02 kB / 302 MB, free: 6.98 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.723e-05/0.009947, allocations: 21.62 kB / 302 MB, free: 6.973 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.421e-05/0.009961, allocations: 7.688 kB / 302 MB, free: 6.969 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.619e-05/0.009977, allocations: 39.88 kB / 302 MB, free: 6.922 MB / 266.7 MB Notification: Performance of pre-optimization done (n=12): time 1.643e-06/0.009979, allocations: 0 / 302 MB, free: 6.922 MB / 266.7 MB Notification: Performance of matching and sorting (n=12): time 0.0001446/0.01012, allocations: 90.02 kB / 302.1 MB, free: 6.883 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.181e-05/0.01014, allocations: 52.78 kB / 302.2 MB, free: 6.82 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001121/0.01026, allocations: 200.3 kB / 302.4 MB, free: 6.68 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.194e-05/0.01027, allocations: 31.08 kB / 302.4 MB, free: 6.645 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.583e-05/0.01032, allocations: 139.6 kB / 302.5 MB, free: 6.523 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.017e-05/0.01036, allocations: 44.38 kB / 302.6 MB, free: 6.488 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.336e-05/0.0104, allocations: 38.83 kB / 302.6 MB, free: 6.461 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.013e-05/0.01044, allocations: 338 kB / 302.9 MB, free: 6.133 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.569e-05/0.01046, allocations: 14.72 kB / 302.9 MB, free: 6.133 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.618e-05/0.0105, allocations: 42.41 kB / 303 MB, free: 6.105 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.652e-05/0.01057, allocations: 73.59 kB / 303.1 MB, free: 6.07 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.01057, allocations: 1.375 kB / 303.1 MB, free: 6.07 MB / 266.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000109/0.01068, allocations: 101.5 kB / 303.2 MB, free: 6.031 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.325e-05/0.01069, allocations: 5.5 kB / 303.2 MB, free: 6.031 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-06/0.0107, allocations: 0 / 303.2 MB, free: 6.031 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.397e-05/0.01071, allocations: 10.81 kB / 303.2 MB, free: 6.023 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.964e-05/0.01081, allocations: 39.56 kB / 303.2 MB, free: 6.016 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.399e-06/0.01081, allocations: 3.875 kB / 303.2 MB, free: 6.016 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.947e-05/0.01085, allocations: 15.95 kB / 303.2 MB, free: 6.004 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.071e-06/0.01086, allocations: 6.75 kB / 303.2 MB, free: 6 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.347e-05/0.01091, allocations: 126.5 kB / 303.4 MB, free: 5.871 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.322e-05/0.01094, allocations: 11.62 kB / 303.4 MB, free: 5.871 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.07e-05/0.01097, allocations: 20.27 kB / 303.4 MB, free: 5.855 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.01097, allocations: 1.375 kB / 303.4 MB, free: 5.855 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.114e-06/0.01097, allocations: 0.6562 kB / 303.4 MB, free: 5.855 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.01097, allocations: 6.219 kB / 303.4 MB, free: 5.852 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000132/0.01111, allocations: 129.5 kB / 303.5 MB, free: 5.75 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/0.01111, allocations: 0.8906 kB / 303.5 MB, free: 5.75 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001011/0.01121, allocations: 26 kB / 303.6 MB, free: 5.742 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.01121, allocations: 1.125 kB / 303.6 MB, free: 5.742 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.36e-05/0.01123, allocations: 0.9688 kB / 303.6 MB, free: 5.742 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/0.01123, allocations: 0 / 303.6 MB, free: 5.742 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.01123, allocations: 1.812 kB / 303.6 MB, free: 5.742 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000166/0.0114, allocations: 190 kB / 303.7 MB, free: 5.605 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.811e-05/0.01143, allocations: 22.28 kB / 303.8 MB, free: 5.59 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.508e-05/0.01145, allocations: 5.344 kB / 303.8 MB, free: 5.586 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.633e-05/0.01149, allocations: 5.25 kB / 303.8 MB, free: 5.582 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.374e-05/0.01151, allocations: 13.89 kB / 303.8 MB, free: 5.574 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.658e-06/0.01151, allocations: 1.25 kB / 303.8 MB, free: 5.574 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.203e-05/0.01157, allocations: 63.83 kB / 303.9 MB, free: 5.555 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01157, allocations: 0 / 303.9 MB, free: 5.555 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001575/0.01172, allocations: 43.03 kB / 303.9 MB, free: 5.547 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 7.87e-05/0.0118, allocations: 75.08 kB / 304 MB, free: 5.473 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001125/0.01191, allocations: 71.94 kB / 304 MB, free: 5.453 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.589e-06/0.01192, allocations: 5.5 kB / 304 MB, free: 5.449 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.719e-05/0.01195, allocations: 32.33 kB / 304.1 MB, free: 5.434 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002099/0.01216, allocations: 39.89 kB / 304.1 MB, free: 5.414 MB / 266.7 MB Error: Error parsing unit %: Parse error Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006361/0.01279, allocations: 341.5 kB / 304.4 MB, free: 5.18 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.587e-05/0.01283, allocations: 76.27 kB / 304.5 MB, free: 5.109 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.086e-05/0.01288, allocations: 19.3 kB / 304.5 MB, free: 5.105 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.898e-05/0.01295, allocations: 81.47 kB / 304.6 MB, free: 5.055 MB / 266.7 MB Notification: Performance of SimCode: time 7.52e-07/0.01295, allocations: 3.938 kB / 304.6 MB, free: 5.051 MB / 266.7 MB Notification: Performance of Templates: time 0.003493/0.01644, allocations: 1.729 MB / 306.4 MB, free: 4.34 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.8434945889748633]