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.0009445/0.0009445, allocations: 77.95 kB / 20.66 MB, free: 3.832 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.0009709/0.0009709, allocations: 165 kB / 24.05 MB, free: 452 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 0.929/0.929, allocations: 177.1 MB / 204.5 MB, free: 5.484 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.05631/0.05631, allocations: 12.76 MB / 273.8 MB, free: 104 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 9.82e-07/9.82e-07, allocations: 0 / 347.9 MB, free: 2 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.293e-05/1.392e-05, allocations: 2.312 kB / 347.9 MB, free: 1.996 MB / 314.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Population.UniformPopulation.Examples.PredatorPrey): time 0.002377/0.002391, allocations: 2.48 MB / 350.4 MB, free: 15.51 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.002726/0.005117, allocations: 2.699 MB / 353.1 MB, free: 12.79 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001086/0.005226, allocations: 11.94 kB / 353.1 MB, free: 12.78 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001073/0.005333, allocations: 27.67 kB / 353.2 MB, free: 12.75 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.0007768/0.00611, allocations: 385.9 kB / 353.5 MB, free: 12.38 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.0005766/0.006686, allocations: 418.7 kB / 353.9 MB, free: 11.96 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002194/0.006906, allocations: 250.7 kB / 354.2 MB, free: 11.72 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001091/0.007015, allocations: 53.05 kB / 354.2 MB, free: 11.67 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.083e-05/0.007106, allocations: 115.7 kB / 354.4 MB, free: 11.55 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001061/0.007212, allocations: 71.73 kB / 354.4 MB, free: 11.48 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 1.782e-05/0.00723, allocations: 12 kB / 354.4 MB, free: 11.47 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.816e-05/0.007248, allocations: 16 kB / 354.5 MB, free: 11.46 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 2.702e-05/0.007275, allocations: 35.84 kB / 354.5 MB, free: 11.42 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 5.023e-05/0.007325, allocations: 75.77 kB / 354.6 MB, free: 11.35 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001656/0.007491, allocations: 163.3 kB / 354.7 MB, free: 11.19 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.823e-06/0.007492, allocations: 0 / 354.7 MB, free: 11.19 MB / 330.7 MB Notification: Performance of FrontEnd: time 6.41e-07/0.007493, allocations: 0 / 354.7 MB, free: 11.19 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.687e-06/0.007497, allocations: 4 kB / 354.7 MB, free: 11.18 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.0004087/0.007905, allocations: 0.527 MB / 355.2 MB, free: 10.62 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.732e-05/0.007933, allocations: 11.98 kB / 355.3 MB, free: 10.61 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.142e-05/0.007974, allocations: 32.8 kB / 355.3 MB, free: 10.57 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002095/0.008184, allocations: 223.9 kB / 355.5 MB, free: 10.33 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.312e-05/0.008197, allocations: 8.656 kB / 355.5 MB, free: 10.32 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.191e-05/0.008219, allocations: 20.38 kB / 355.5 MB, free: 10.3 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001077/0.008326, allocations: 101.2 kB / 355.6 MB, free: 10.2 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.008337, allocations: 3.938 kB / 355.6 MB, free: 10.19 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.086e-05/0.008347, allocations: 12 kB / 355.7 MB, free: 10.18 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/0.008353, allocations: 0 / 355.7 MB, free: 10.18 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.62e-05/0.008399, allocations: 44.69 kB / 355.7 MB, free: 10.14 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004738/0.008873, allocations: 436 kB / 356.1 MB, free: 9.684 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001243/0.008997, allocations: 82.95 kB / 356.2 MB, free: 9.59 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.266e-05/0.00903, allocations: 31.77 kB / 356.2 MB, free: 9.555 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.326e-05/0.009043, allocations: 7.938 kB / 356.2 MB, free: 9.547 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.988e-05/0.009063, allocations: 37.39 kB / 356.3 MB, free: 9.5 MB / 330.7 MB Notification: Performance of pre-optimization done (n=12): time 1.032e-06/0.009064, allocations: 0 / 356.3 MB, free: 9.5 MB / 330.7 MB Notification: Performance of matching and sorting (n=12): time 0.0001698/0.009234, allocations: 105.9 kB / 356.4 MB, free: 9.391 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.877e-05/0.009262, allocations: 51.41 kB / 356.4 MB, free: 9.328 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001395/0.009402, allocations: 258.6 kB / 356.7 MB, free: 9.055 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.534e-05/0.009417, allocations: 37.58 kB / 356.7 MB, free: 9.012 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.044e-05/0.009498, allocations: 199 kB / 356.9 MB, free: 8.812 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.745e-05/0.009525, allocations: 47.62 kB / 357 MB, free: 8.766 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.648e-05/0.009572, allocations: 43.34 kB / 357 MB, free: 8.715 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001285/0.0097, allocations: 0.5001 MB / 357.5 MB, free: 8.203 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.614e-05/0.009726, allocations: 27.97 kB / 357.5 MB, free: 8.176 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.821e-05/0.009775, allocations: 54.95 kB / 357.6 MB, free: 8.109 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.351e-05/0.009848, allocations: 78.06 kB / 357.7 MB, free: 8.023 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.00985, allocations: 0 / 357.7 MB, free: 8.023 MB / 330.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0001285/0.009979, allocations: 137.4 kB / 357.8 MB, free: 7.883 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.095e-05/0.00999, allocations: 4 kB / 357.8 MB, free: 7.879 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.009995, allocations: 0 / 357.8 MB, free: 7.879 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.606e-06/0.01, allocations: 4 kB / 357.8 MB, free: 7.875 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.214e-05/0.0101, allocations: 32.05 kB / 357.8 MB, free: 7.844 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.896e-06/0.0101, allocations: 4 kB / 357.8 MB, free: 7.84 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.251e-05/0.01014, allocations: 19.83 kB / 357.9 MB, free: 7.82 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.763e-06/0.01015, allocations: 4 kB / 357.9 MB, free: 7.816 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 8.249e-05/0.01023, allocations: 172.5 kB / 358 MB, free: 7.637 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.557e-05/0.01026, allocations: 19.86 kB / 358.1 MB, free: 7.617 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.051e-05/0.01029, allocations: 25.45 kB / 358.1 MB, free: 7.594 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.01029, allocations: 0 / 358.1 MB, free: 7.594 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.01029, allocations: 4 kB / 358.1 MB, free: 7.59 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.01029, allocations: 0 / 358.1 MB, free: 7.59 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001335/0.01043, allocations: 153.1 kB / 358.2 MB, free: 7.414 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.01043, allocations: 4 kB / 358.2 MB, free: 7.41 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.93e-05/0.01049, allocations: 23.94 kB / 358.3 MB, free: 7.387 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.01049, allocations: 7.984 kB / 358.3 MB, free: 7.379 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.167e-06/0.0105, allocations: 0 / 358.3 MB, free: 7.379 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.21e-07/0.0105, allocations: 0 / 358.3 MB, free: 7.379 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.0105, allocations: 0 / 358.3 MB, free: 7.379 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001665/0.01067, allocations: 271.7 kB / 358.5 MB, free: 7.094 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.386e-05/0.0107, allocations: 27.83 kB / 358.6 MB, free: 7.066 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.296e-05/0.01072, allocations: 0 / 358.6 MB, free: 7.066 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.967e-05/0.01075, allocations: 0 / 358.6 MB, free: 7.066 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.511e-05/0.01077, allocations: 16.02 kB / 358.6 MB, free: 7.051 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.096e-06/0.01077, allocations: 0 / 358.6 MB, free: 7.051 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.206e-05/0.01084, allocations: 177.5 kB / 358.7 MB, free: 6.879 MB / 330.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01084, allocations: 0 / 358.7 MB, free: 6.879 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0001661/0.011, allocations: 39.95 kB / 358.8 MB, free: 6.84 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.312e-05/0.01106, allocations: 99.17 kB / 358.9 MB, free: 6.734 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001066/0.01117, allocations: 75.52 kB / 359 MB, free: 6.656 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.01117, allocations: 4 kB / 359 MB, free: 6.652 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 2.783e-05/0.0112, allocations: 31.61 kB / 359 MB, free: 6.617 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000239/0.01144, allocations: 48.7 kB / 359 MB, free: 6.566 MB / 330.7 MB Error: Error parsing unit %: Parse error Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006148/0.01205, allocations: 338.9 kB / 359.4 MB, free: 6.207 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.1e-05/0.0121, allocations: 75.98 kB / 359.4 MB, free: 6.113 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 4.401e-05/0.01214, allocations: 17.48 kB / 359.5 MB, free: 6.098 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.469e-05/0.01221, allocations: 102.2 kB / 359.6 MB, free: 5.996 MB / 330.7 MB Notification: Performance of SimCode: time 5.41e-07/0.01221, allocations: 0 / 359.6 MB, free: 5.996 MB / 330.7 MB Notification: Performance of Templates: time 0.003188/0.0154, allocations: 1.759 MB / 361.3 MB, free: 4.273 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: 2.6849748250097036]