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.001335/0.001335, allocations: 77.09 kB / 20.66 MB, free: 3.844 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.001371/0.001371, allocations: 169 kB / 24.06 MB, free: 456 kB / 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 1.113/1.113, allocations: 177.1 MB / 204.5 MB, free: 5.504 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.08087/0.08087, allocations: 12.77 MB / 273.8 MB, free: 116 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.563e-06/1.563e-06, allocations: 0 / 347.1 MB, free: 1.773 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.298e-05/2.455e-05, allocations: 2.312 kB / 347.1 MB, free: 1.77 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Population.UniformPopulation.Examples.PredatorPrey): time 0.003808/0.003832, allocations: 2.483 MB / 349.6 MB, free: 15.27 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.004876/0.008708, allocations: 2.691 MB / 352.3 MB, free: 12.57 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001797/0.008888, allocations: 11.88 kB / 352.3 MB, free: 12.56 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001639/0.009052, allocations: 31.66 kB / 352.3 MB, free: 12.53 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.001313/0.01037, allocations: 381.9 kB / 352.7 MB, free: 12.15 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.001079/0.01144, allocations: 414.7 kB / 353.1 MB, free: 11.75 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003728/0.01182, allocations: 254.7 kB / 353.4 MB, free: 11.5 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001809/0.012, allocations: 60.98 kB / 353.4 MB, free: 11.43 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000191/0.01219, allocations: 115.7 kB / 353.5 MB, free: 11.32 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001424/0.01233, allocations: 67.73 kB / 353.6 MB, free: 11.25 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.161e-05/0.01236, allocations: 12 kB / 353.6 MB, free: 11.24 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.361e-05/0.0124, allocations: 16 kB / 353.6 MB, free: 11.23 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.229e-05/0.01244, allocations: 39.83 kB / 353.7 MB, free: 11.19 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.595e-05/0.01251, allocations: 63.78 kB / 353.7 MB, free: 11.12 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003035/0.01282, allocations: 171.4 kB / 353.9 MB, free: 10.96 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.848e-06/0.01282, allocations: 0 / 353.9 MB, free: 10.96 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.263e-06/0.01282, allocations: 0 / 353.9 MB, free: 10.96 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.831e-06/0.01283, allocations: 0 / 353.9 MB, free: 10.96 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.000628/0.01346, allocations: 0.5232 MB / 354.4 MB, free: 10.39 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.083e-05/0.0135, allocations: 15.98 kB / 354.4 MB, free: 10.38 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.01e-05/0.01357, allocations: 36.75 kB / 354.5 MB, free: 10.34 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003287/0.0139, allocations: 224.1 kB / 354.7 MB, free: 10.1 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.189e-05/0.01392, allocations: 12.66 kB / 354.7 MB, free: 10.09 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.366e-05/0.01395, allocations: 16.38 kB / 354.7 MB, free: 10.07 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001839/0.01414, allocations: 105.2 kB / 354.8 MB, free: 9.961 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.561e-05/0.01415, allocations: 3.938 kB / 354.8 MB, free: 9.957 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.404e-05/0.01417, allocations: 4 kB / 354.8 MB, free: 9.953 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.366e-06/0.01417, allocations: 4 kB / 354.8 MB, free: 9.949 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.412e-05/0.01426, allocations: 48.73 kB / 354.9 MB, free: 9.902 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000688/0.01495, allocations: 439.9 kB / 355.3 MB, free: 9.445 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00015/0.0151, allocations: 83.09 kB / 355.4 MB, free: 9.352 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.429e-05/0.01514, allocations: 35.61 kB / 355.4 MB, free: 9.312 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.051e-05/0.01515, allocations: 3.938 kB / 355.4 MB, free: 9.309 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.733e-05/0.01518, allocations: 37.39 kB / 355.5 MB, free: 9.262 MB / 282.7 MB Notification: Performance of pre-optimization done (n=12): time 2.484e-06/0.01518, allocations: 0 / 355.5 MB, free: 9.262 MB / 282.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002251/0.01541, allocations: 105.5 kB / 355.6 MB, free: 9.152 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.071e-05/0.01544, allocations: 59.34 kB / 355.6 MB, free: 9.082 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000185/0.01562, allocations: 254.6 kB / 355.9 MB, free: 8.812 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.56e-05/0.01564, allocations: 33.7 kB / 355.9 MB, free: 8.773 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001052/0.01574, allocations: 195 kB / 356.1 MB, free: 8.578 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.798e-05/0.01578, allocations: 47.62 kB / 356.1 MB, free: 8.531 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.54e-05/0.01585, allocations: 43.36 kB / 356.2 MB, free: 8.48 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001498/0.016, allocations: 0.504 MB / 356.7 MB, free: 7.965 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.667e-05/0.01603, allocations: 19.92 kB / 356.7 MB, free: 7.945 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.987e-05/0.01609, allocations: 56.84 kB / 356.8 MB, free: 7.879 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001017/0.01619, allocations: 77.78 kB / 356.8 MB, free: 7.793 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.0162, allocations: 0 / 356.8 MB, free: 7.793 MB / 282.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0001891/0.01639, allocations: 141.4 kB / 357 MB, free: 7.648 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.539e-05/0.0164, allocations: 4 kB / 357 MB, free: 7.645 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.01641, allocations: 0 / 357 MB, free: 7.645 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.475e-05/0.01642, allocations: 4 kB / 357 MB, free: 7.641 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001185/0.01654, allocations: 31.98 kB / 357 MB, free: 7.609 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.377e-06/0.01654, allocations: 0 / 357 MB, free: 7.609 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.329e-05/0.01659, allocations: 15.89 kB / 357 MB, free: 7.594 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.011e-05/0.0166, allocations: 16.05 kB / 357.1 MB, free: 7.578 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 7.796e-05/0.01667, allocations: 172.5 kB / 357.2 MB, free: 7.398 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.718e-05/0.0167, allocations: 15.91 kB / 357.2 MB, free: 7.383 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.354e-05/0.01674, allocations: 17.47 kB / 357.3 MB, free: 7.363 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.01674, allocations: 4 kB / 357.3 MB, free: 7.359 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.994e-06/0.01674, allocations: 0 / 357.3 MB, free: 7.359 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.01675, allocations: 3.984 kB / 357.3 MB, free: 7.355 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001456/0.01689, allocations: 157 kB / 357.4 MB, free: 7.176 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.01689, allocations: 0 / 357.4 MB, free: 7.176 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.906e-05/0.01696, allocations: 19.98 kB / 357.4 MB, free: 7.156 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.01697, allocations: 7.938 kB / 357.4 MB, free: 7.148 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.318e-05/0.01698, allocations: 8 kB / 357.5 MB, free: 7.141 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.51e-07/0.01698, allocations: 3.938 kB / 357.5 MB, free: 7.137 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.01698, allocations: 0 / 357.5 MB, free: 7.137 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001889/0.01717, allocations: 268.1 kB / 357.7 MB, free: 6.855 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.695e-05/0.01721, allocations: 19.89 kB / 357.7 MB, free: 6.836 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.447e-05/0.01722, allocations: 4 kB / 357.7 MB, free: 6.832 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.362e-05/0.01726, allocations: 0 / 357.7 MB, free: 6.832 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.664e-05/0.01728, allocations: 11.98 kB / 357.8 MB, free: 6.82 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.697e-06/0.01729, allocations: 0 / 357.8 MB, free: 6.82 MB / 282.7 MB Notification: Performance of sorting global known variables: time 7.116e-05/0.01736, allocations: 177.5 kB / 357.9 MB, free: 6.648 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01736, allocations: 4.031 kB / 357.9 MB, free: 6.645 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001839/0.01754, allocations: 51.89 kB / 358 MB, free: 6.594 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.734e-05/0.01762, allocations: 95.19 kB / 358.1 MB, free: 6.492 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 9.919e-05/0.01772, allocations: 75.52 kB / 358.1 MB, free: 6.414 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.01772, allocations: 0 / 358.1 MB, free: 6.414 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 2.802e-05/0.01775, allocations: 35.61 kB / 358.2 MB, free: 6.375 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002567/0.01801, allocations: 47.33 kB / 358.2 MB, free: 6.328 MB / 282.7 MB Error: Error parsing unit %: Parse error Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007201/0.01873, allocations: 368.7 kB / 358.6 MB, free: 5.93 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.781e-05/0.0188, allocations: 125.2 kB / 358.7 MB, free: 5.789 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.32e-05/0.0189, allocations: 102.2 kB / 358.8 MB, free: 5.688 MB / 282.7 MB Notification: Performance of SimCode: time 1.103e-06/0.0189, allocations: 0 / 358.8 MB, free: 5.688 MB / 282.7 MB Notification: Performance of Templates: time 0.002697/0.02159, allocations: 2.259 MB / 361.1 MB, free: 3.438 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 > Bodylight_Bodylight.Population.UniformPopulation.Examples.PredatorPrey.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.8530153310857713]