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.002119/0.002119, allocations: 80.44 kB / 19.17 MB, free: 0.7461 MB / 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.002756/0.002756, allocations: 165.9 kB / 22.45 MB, free: 2.109 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 1.764/1.764, allocations: 177.1 MB / 202.8 MB, free: 5.594 MB / 186.7 MB " [Timeout remaining time 178] 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.09423/0.09423, allocations: 12.73 MB / 271.9 MB, free: 356 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.014e-06/2.014e-06, allocations: 0 / 403.1 MB, free: 8.105 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.08e-05/3.281e-05, allocations: 6.219 kB / 403.1 MB, free: 8.098 MB / 330.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Population.UniformPopulation.Examples.PredatorPrey): time 0.004337/0.00437, allocations: 2.377 MB / 405.5 MB, free: 5.715 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.004868/0.009238, allocations: 2.676 MB / 408.2 MB, free: 3.027 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001305/0.009369, allocations: 15.88 kB / 408.2 MB, free: 3.012 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001385/0.009507, allocations: 27.72 kB / 408.2 MB, free: 2.984 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.001309/0.01082, allocations: 378 kB / 408.6 MB, free: 2.613 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.0009447/0.01176, allocations: 426.2 kB / 409 MB, free: 2.199 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003452/0.01211, allocations: 254.7 kB / 409.2 MB, free: 1.949 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000151/0.01226, allocations: 51.81 kB / 409.3 MB, free: 1.902 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000161/0.01242, allocations: 123.7 kB / 409.4 MB, free: 1.781 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001387/0.01256, allocations: 63.73 kB / 409.5 MB, free: 1.719 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 3.143e-05/0.01259, allocations: 16 kB / 409.5 MB, free: 1.703 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.243e-05/0.01262, allocations: 12 kB / 409.5 MB, free: 1.691 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 4.399e-05/0.01267, allocations: 31.86 kB / 409.5 MB, free: 1.66 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 9.478e-05/0.01276, allocations: 75.77 kB / 409.6 MB, free: 1.586 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003335/0.01309, allocations: 231.2 kB / 409.8 MB, free: 1.359 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.636e-06/0.0131, allocations: 0 / 409.8 MB, free: 1.359 MB / 330.7 MB Notification: Performance of FrontEnd: time 8.31e-07/0.0131, allocations: 0 / 409.8 MB, free: 1.359 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.14e-06/0.0131, allocations: 0 / 409.8 MB, free: 1.359 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.0006966/0.0138, allocations: 437.4 kB / 410.2 MB, free: 0.8984 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.01384, allocations: 11.98 kB / 410.3 MB, free: 0.8867 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.826e-05/0.0139, allocations: 24.8 kB / 410.3 MB, free: 0.8633 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004191/0.01432, allocations: 209.1 kB / 410.5 MB, free: 0.6328 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.339e-05/0.01434, allocations: 16.66 kB / 410.5 MB, free: 0.6172 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.151e-05/0.01437, allocations: 12.38 kB / 410.5 MB, free: 0.6055 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002446/0.01462, allocations: 124.5 kB / 410.6 MB, free: 492 kB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.704e-05/0.01463, allocations: 3.938 kB / 410.6 MB, free: 488 kB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.674e-05/0.01465, allocations: 4 kB / 410.6 MB, free: 484 kB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.236e-06/0.01466, allocations: 8 kB / 410.7 MB, free: 476 kB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001615/0.01482, allocations: 80.73 kB / 410.7 MB, free: 396 kB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2531/0.2679, allocations: 420.8 kB / 411.1 MB, free: 22.13 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003061/0.2683, allocations: 114.3 kB / 411.3 MB, free: 22.11 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.64e-05/0.2684, allocations: 41.34 kB / 411.3 MB, free: 22.1 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.564e-05/0.2684, allocations: 1.281 kB / 411.3 MB, free: 22.1 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.459e-05/0.2684, allocations: 33.36 kB / 411.3 MB, free: 22.06 MB / 330.7 MB Notification: Performance of pre-optimization done (n=12): time 2.175e-06/0.2684, allocations: 6.062 kB / 411.3 MB, free: 22.06 MB / 330.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003524/0.2687, allocations: 139.1 kB / 411.5 MB, free: 22.03 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.458e-05/0.2688, allocations: 52.5 kB / 411.5 MB, free: 21.97 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002338/0.269, allocations: 211.1 kB / 411.7 MB, free: 21.86 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.538e-05/0.269, allocations: 29.58 kB / 411.8 MB, free: 21.83 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.739e-05/0.2691, allocations: 149.7 kB / 411.9 MB, free: 21.74 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.756e-05/0.2692, allocations: 43.05 kB / 411.9 MB, free: 21.72 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.745e-05/0.2692, allocations: 43.64 kB / 412 MB, free: 21.7 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.455e-05/0.2693, allocations: 329.3 kB / 412.3 MB, free: 21.38 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.602e-05/0.2694, allocations: 38.45 kB / 412.3 MB, free: 21.36 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.619e-05/0.2695, allocations: 63.67 kB / 412.4 MB, free: 21.32 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001516/0.2696, allocations: 105.5 kB / 412.5 MB, free: 21.26 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.2696, allocations: 0 / 412.5 MB, free: 21.26 MB / 330.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002488/0.2699, allocations: 163.2 kB / 412.7 MB, free: 21.18 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.898e-05/0.2699, allocations: 5.844 kB / 412.7 MB, free: 21.18 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.2699, allocations: 1.766 kB / 412.7 MB, free: 21.18 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.97e-05/0.2699, allocations: 4.812 kB / 412.7 MB, free: 21.18 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001762/0.2701, allocations: 34.72 kB / 412.7 MB, free: 21.18 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.554e-06/0.2701, allocations: 3.938 kB / 412.7 MB, free: 21.18 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001002/0.2702, allocations: 19.31 kB / 412.7 MB, free: 21.18 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.128e-05/0.2702, allocations: 4.875 kB / 412.7 MB, free: 21.18 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.669e-05/0.2703, allocations: 139.2 kB / 412.9 MB, free: 21.04 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.168e-05/0.2703, allocations: 19.83 kB / 412.9 MB, free: 21.03 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.177e-05/0.2704, allocations: 24.45 kB / 412.9 MB, free: 21.02 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.057e-06/0.2704, allocations: 4.688 kB / 412.9 MB, free: 21.02 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.2704, allocations: 1.656 kB / 412.9 MB, free: 21.02 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.2704, allocations: 1.406 kB / 412.9 MB, free: 21.02 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002328/0.2706, allocations: 178.2 kB / 413.1 MB, free: 20.87 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.2706, allocations: 0 / 413.1 MB, free: 20.87 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001231/0.2708, allocations: 18.33 kB / 413.1 MB, free: 20.87 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/0.2708, allocations: 1.375 kB / 413.1 MB, free: 20.87 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.187e-05/0.2708, allocations: 4.656 kB / 413.1 MB, free: 20.87 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.2708, allocations: 5.156 kB / 413.1 MB, free: 20.86 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.2708, allocations: 3 kB / 413.1 MB, free: 20.86 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002792/0.2711, allocations: 250.8 kB / 413.4 MB, free: 20.68 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.479e-05/0.2711, allocations: 25.05 kB / 413.4 MB, free: 20.67 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.808e-05/0.2712, allocations: 6.078 kB / 413.4 MB, free: 20.67 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.999e-05/0.2713, allocations: 5.156 kB / 413.4 MB, free: 20.66 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.558e-05/0.2713, allocations: 7.125 kB / 413.4 MB, free: 20.66 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.364e-06/0.2713, allocations: 5.781 kB / 413.4 MB, free: 20.66 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001252/0.2714, allocations: 148.7 kB / 413.6 MB, free: 20.57 MB / 330.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2714, allocations: 3.812 kB / 413.6 MB, free: 20.57 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002791/0.2717, allocations: 47.3 kB / 413.6 MB, free: 20.55 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 9.788e-05/0.2718, allocations: 98.36 kB / 413.7 MB, free: 20.46 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002041/0.272, allocations: 90.22 kB / 413.8 MB, free: 20.43 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.272, allocations: 0 / 413.8 MB, free: 20.43 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.967e-05/0.2721, allocations: 38.25 kB / 413.8 MB, free: 20.42 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003932/0.2724, allocations: 34.33 kB / 413.9 MB, free: 20.41 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007281/0.2732, allocations: 352.6 kB / 414.2 MB, free: 20.17 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001299/0.2733, allocations: 127.9 kB / 414.3 MB, free: 20.09 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 7.999e-05/0.2734, allocations: 15.38 kB / 414.4 MB, free: 20.09 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.341e-05/0.2734, allocations: 19.16 kB / 414.4 MB, free: 20.08 MB / 330.7 MB Notification: Performance of SimCode: time 4.31e-07/0.2734, allocations: 0 / 414.4 MB, free: 20.08 MB / 330.7 MB Notification: Performance of Templates: time 0.005848/0.2793, allocations: 1.564 MB / 415.9 MB, free: 19.89 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: 5.57820288091898]