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.001176/0.001176, allocations: 88.52 kB / 19.93 MB, free: 4.605 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.0009019/0.0009019, allocations: 173.9 kB / 23.21 MB, free: 1.328 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.9818/0.9818, allocations: 177.1 MB / 203.5 MB, free: 5.746 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.05433/0.05433, allocations: 12.74 MB / 272.7 MB, free: 0.5 MB / 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.032e-06/1.032e-06, allocations: 0 / 403.1 MB, free: 8.891 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.444e-05/1.547e-05, allocations: 5.375 kB / 403.1 MB, free: 8.887 MB / 330.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Population.UniformPopulation.Examples.PredatorPrey): time 0.002621/0.002636, allocations: 2.363 MB / 405.5 MB, free: 6.512 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.002519/0.005156, allocations: 2.683 MB / 408.1 MB, free: 3.816 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.656e-05/0.005252, allocations: 7.938 kB / 408.1 MB, free: 3.809 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001083/0.00536, allocations: 23.67 kB / 408.2 MB, free: 3.785 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.0006529/0.006013, allocations: 385.2 kB / 408.5 MB, free: 3.41 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.0004636/0.006477, allocations: 429.7 kB / 409 MB, free: 2.992 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002021/0.006679, allocations: 250.8 kB / 409.2 MB, free: 2.746 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00012/0.006799, allocations: 51.64 kB / 409.3 MB, free: 2.699 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.09e-05/0.00689, allocations: 119.7 kB / 409.4 MB, free: 2.582 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.785e-05/0.006978, allocations: 67.73 kB / 409.4 MB, free: 2.516 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 1.745e-05/0.006995, allocations: 12 kB / 409.5 MB, free: 2.504 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.044e-05/0.007016, allocations: 16 kB / 409.5 MB, free: 2.488 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 2.9e-05/0.007045, allocations: 39.83 kB / 409.5 MB, free: 2.449 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 5.721e-05/0.007102, allocations: 63.78 kB / 409.6 MB, free: 2.387 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001996/0.007302, allocations: 243 kB / 409.8 MB, free: 2.148 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.683e-06/0.007303, allocations: 4 kB / 409.8 MB, free: 2.145 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.007304, allocations: 0 / 409.8 MB, free: 2.145 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.127e-06/0.007309, allocations: 0 / 409.8 MB, free: 2.145 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.0004312/0.00774, allocations: 429.5 kB / 410.2 MB, free: 1.691 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.229e-05/0.007772, allocations: 11.98 kB / 410.2 MB, free: 1.68 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.721e-05/0.007809, allocations: 24.8 kB / 410.3 MB, free: 1.656 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002232/0.008032, allocations: 213.1 kB / 410.5 MB, free: 1.422 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.856e-05/0.008051, allocations: 12.66 kB / 410.5 MB, free: 1.41 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.156e-05/0.008083, allocations: 24.31 kB / 410.5 MB, free: 1.387 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003916/0.008474, allocations: 120.5 kB / 410.6 MB, free: 1.266 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.101e-05/0.008485, allocations: 3.938 kB / 410.6 MB, free: 1.262 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.161e-05/0.008497, allocations: 4 kB / 410.6 MB, free: 1.258 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.68e-06/0.008503, allocations: 4 kB / 410.6 MB, free: 1.254 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001039/0.008606, allocations: 76.75 kB / 410.7 MB, free: 1.18 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005177/0.009124, allocations: 432.2 kB / 411.1 MB, free: 0.7266 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001532/0.009277, allocations: 106.6 kB / 411.2 MB, free: 0.6133 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.67e-05/0.009334, allocations: 44.84 kB / 411.3 MB, free: 0.5664 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.364e-06/0.009341, allocations: 0 / 411.3 MB, free: 0.5664 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.759e-05/0.009359, allocations: 34.56 kB / 411.3 MB, free: 0.5234 MB / 330.7 MB Notification: Performance of pre-optimization done (n=12): time 7.72e-07/0.00936, allocations: 0 / 411.3 MB, free: 0.5234 MB / 330.7 MB Notification: Performance of matching and sorting (n=12): time 0.0001995/0.009559, allocations: 137.5 kB / 411.5 MB, free: 392 kB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.714e-05/0.009586, allocations: 55.41 kB / 411.5 MB, free: 324 kB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001299/0.009716, allocations: 212.1 kB / 411.7 MB, free: 100 kB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.172e-05/0.009728, allocations: 29.7 kB / 411.7 MB, free: 64 kB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.1324/0.1421, allocations: 143.9 kB / 411.9 MB, free: 21.94 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.494e-05/0.1422, allocations: 43.41 kB / 411.9 MB, free: 21.93 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.194e-05/0.1422, allocations: 45.52 kB / 412 MB, free: 21.91 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.274e-05/0.1423, allocations: 332 kB / 412.3 MB, free: 21.6 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.032e-05/0.1423, allocations: 37.62 kB / 412.3 MB, free: 21.6 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.312e-05/0.1424, allocations: 60.86 kB / 412.4 MB, free: 21.58 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001066/0.1425, allocations: 100.3 kB / 412.5 MB, free: 21.55 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.1425, allocations: 3.656 kB / 412.5 MB, free: 21.55 MB / 330.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0001853/0.1427, allocations: 162.4 kB / 412.7 MB, free: 21.5 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.714e-05/0.1427, allocations: 9.812 kB / 412.7 MB, free: 21.5 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.613e-06/0.1427, allocations: 1.156 kB / 412.7 MB, free: 21.5 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.757e-05/0.1427, allocations: 1.531 kB / 412.7 MB, free: 21.5 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001241/0.1428, allocations: 35.3 kB / 412.7 MB, free: 21.5 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.682e-06/0.1429, allocations: 5.297 kB / 412.7 MB, free: 21.5 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.754e-05/0.1429, allocations: 22.3 kB / 412.7 MB, free: 21.48 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.476e-06/0.1429, allocations: 5.375 kB / 412.7 MB, free: 21.48 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 7.924e-05/0.143, allocations: 127.5 kB / 412.9 MB, free: 21.36 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.67e-05/0.143, allocations: 20.53 kB / 412.9 MB, free: 21.35 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.583e-05/0.1431, allocations: 20.8 kB / 412.9 MB, free: 21.34 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.035e-06/0.1431, allocations: 5.031 kB / 412.9 MB, free: 21.34 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.1431, allocations: 1.312 kB / 412.9 MB, free: 21.34 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/0.1431, allocations: 1.781 kB / 412.9 MB, free: 21.34 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001548/0.1432, allocations: 183.8 kB / 413.1 MB, free: 21.19 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.1432, allocations: 0 / 413.1 MB, free: 21.19 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.928e-05/0.1433, allocations: 24.5 kB / 413.1 MB, free: 21.18 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.433e-06/0.1433, allocations: 1.219 kB / 413.1 MB, free: 21.18 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.887e-06/0.1433, allocations: 10.19 kB / 413.1 MB, free: 21.18 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.1433, allocations: 0 / 413.1 MB, free: 21.18 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.1433, allocations: 1.375 kB / 413.1 MB, free: 21.18 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002064/0.1435, allocations: 243.2 kB / 413.4 MB, free: 21 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.775e-05/0.1436, allocations: 32.55 kB / 413.4 MB, free: 20.98 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.698e-05/0.1436, allocations: 6.156 kB / 413.4 MB, free: 20.98 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.396e-05/0.1436, allocations: 1.094 kB / 413.4 MB, free: 20.98 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.974e-05/0.1437, allocations: 17.84 kB / 413.4 MB, free: 20.97 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.459e-06/0.1437, allocations: 6.109 kB / 413.4 MB, free: 20.97 MB / 330.7 MB Notification: Performance of sorting global known variables: time 8.182e-05/0.1437, allocations: 146.2 kB / 413.6 MB, free: 20.88 MB / 330.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1437, allocations: 0 / 413.6 MB, free: 20.88 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0001977/0.1439, allocations: 50.02 kB / 413.6 MB, free: 20.87 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 6.619e-05/0.144, allocations: 94.36 kB / 413.7 MB, free: 20.78 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001453/0.1442, allocations: 93.61 kB / 413.8 MB, free: 20.75 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.442e-06/0.1442, allocations: 0 / 413.8 MB, free: 20.75 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 3.993e-05/0.1442, allocations: 37.8 kB / 413.8 MB, free: 20.74 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002574/0.1444, allocations: 35.62 kB / 413.9 MB, free: 20.72 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004788/0.1449, allocations: 372.4 kB / 414.2 MB, free: 20.46 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.034e-05/0.145, allocations: 123.5 kB / 414.4 MB, free: 20.39 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.029e-05/0.145, allocations: 21.33 kB / 414.4 MB, free: 20.38 MB / 330.7 MB Notification: Performance of SimCode: time 5.21e-07/0.145, allocations: 0 / 414.4 MB, free: 20.38 MB / 330.7 MB Notification: Performance of Templates: time 0.003187/0.1482, allocations: 2.262 MB / 416.6 MB, free: 20.18 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 > Bodylight_Bodylight.Population.UniformPopulation.Examples.PredatorPrey.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.608461739961058]