Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Physiolibrary_Physiolibrary.Population.Examples.PredatorPrey.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo", uses=false) Using package Physiolibrary with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo) Running command: translateModel(Physiolibrary.Population.Examples.PredatorPrey,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Population.Examples.PredatorPrey") translateModel(Physiolibrary.Population.Examples.PredatorPrey,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Population.Examples.PredatorPrey") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.0798/0.0798, allocations: 15.29 MB / 30.79 MB, free: 4.074 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009453/0.0009454, allocations: 105.4 kB / 35.78 MB, free: 3.27 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001126/0.001126, allocations: 197 kB / 40.88 MB, free: 7.199 MB / 34.91 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.313/1.313, allocations: 222.9 MB / 268.7 MB, free: 6.895 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1268/0.1268, allocations: 23.36 MB / 346.4 MB, free: 0.7305 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00192/0.00192, allocations: 123.8 kB / 418.2 MB, free: 30.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09628/0.09821, allocations: 59.36 MB / 477.6 MB, free: 3.008 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Population.Examples.PredatorPrey): time 0.003263/0.1015, allocations: 2.307 MB / 479.9 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002927/0.1018, allocations: 147.5 kB / 480 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.417e-05/0.1019, allocations: 4 kB / 480 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001128/0.102, allocations: 19.73 kB / 480 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.621e-05/0.1021, allocations: 63.47 kB / 480.1 MB, free: 464 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000122/0.1023, allocations: 35.91 kB / 480.1 MB, free: 428 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001824/0.1025, allocations: 171.1 kB / 480.3 MB, free: 256 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001481/0.1026, allocations: 69.92 kB / 480.4 MB, free: 188 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.102e-05/0.1027, allocations: 55.8 kB / 480.4 MB, free: 132 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001066/0.1028, allocations: 71.64 kB / 480.5 MB, free: 60 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.37e-05/0.1028, allocations: 12 kB / 480.5 MB, free: 48 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.656e-05/0.1029, allocations: 12 kB / 480.5 MB, free: 36 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.892e-05/0.1029, allocations: 23.92 kB / 480.5 MB, free: 12 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.237e-05/0.103, allocations: 83.7 kB / 480.6 MB, free: 15.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001512/0.1032, allocations: 151.5 kB / 480.8 MB, free: 15.78 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.73e-06/0.1032, allocations: 8 kB / 480.8 MB, free: 15.77 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1032, allocations: 0 / 480.8 MB, free: 15.77 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.92e-06/0.1032, allocations: 0 / 480.8 MB, free: 15.77 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.000508/0.1037, allocations: 435 kB / 481.2 MB, free: 15.3 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.006e-05/0.1037, allocations: 8.031 kB / 481.2 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.954e-05/0.1038, allocations: 16.75 kB / 481.2 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001875/0.104, allocations: 216 kB / 481.4 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.467e-05/0.104, allocations: 8.375 kB / 481.4 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.629e-05/0.104, allocations: 20.36 kB / 481.5 MB, free: 15 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001979/0.1042, allocations: 110.2 kB / 481.6 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.2e-05/0.1043, allocations: 192 / 481.6 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.764e-05/0.1043, allocations: 7.938 kB / 481.6 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.696e-06/0.1043, allocations: 7.938 kB / 481.6 MB, free: 14.87 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001292/0.1044, allocations: 71.97 kB / 481.7 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006026/0.105, allocations: 460.2 kB / 482.1 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001928/0.1052, allocations: 110.6 kB / 482.2 MB, free: 14.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.452e-05/0.1053, allocations: 48.89 kB / 482.3 MB, free: 14.13 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.089e-05/0.1053, allocations: 0 / 482.3 MB, free: 14.13 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.347e-05/0.1054, allocations: 42.44 kB / 482.3 MB, free: 14.08 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 9.91e-07/0.1054, allocations: 4 kB / 482.3 MB, free: 14.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0002749/0.1057, allocations: 133.8 kB / 482.4 MB, free: 13.94 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.056e-05/0.1057, allocations: 51.41 kB / 482.5 MB, free: 13.88 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001272/0.1058, allocations: 153.3 kB / 482.6 MB, free: 13.71 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.607e-05/0.1059, allocations: 25.7 kB / 482.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.807e-05/0.1059, allocations: 127.7 kB / 482.8 MB, free: 13.55 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.383e-05/0.106, allocations: 43.38 kB / 482.8 MB, free: 13.51 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.731e-05/0.106, allocations: 29.7 kB / 482.9 MB, free: 13.48 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001018/0.1061, allocations: 326.8 kB / 483.2 MB, free: 13.15 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.462e-05/0.1062, allocations: 31.98 kB / 483.2 MB, free: 13.12 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.443e-05/0.1063, allocations: 38.11 kB / 483.3 MB, free: 13.08 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003783/0.1067, allocations: 159 kB / 483.4 MB, free: 12.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-06/0.1067, allocations: 0 / 483.4 MB, free: 12.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0001904/0.1069, allocations: 133.4 kB / 483.5 MB, free: 12.79 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.319e-05/0.1069, allocations: 11.94 kB / 483.5 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.958e-06/0.1069, allocations: 0 / 483.5 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.356e-05/0.1069, allocations: 7.984 kB / 483.6 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001362/0.1071, allocations: 23.94 kB / 483.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.402e-06/0.1071, allocations: 4 kB / 483.6 MB, free: 12.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.143e-05/0.1071, allocations: 7.906 kB / 483.6 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.237e-06/0.1072, allocations: 7.984 kB / 483.6 MB, free: 12.73 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: predator.population:VARIABLE(flow=false min = 0.0 start = predator.population_start unit = "1" fixed = true nominal = predator.NominalPopulation ) type: Real prey.population:VARIABLE(flow=false min = 0.0 start = prey.population_start unit = "1" fixed = true nominal = prey.NominalPopulation ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (18): * Single equations (assignments): 18 * 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 0.0002025/0.1074, allocations: 133.7 kB / 483.7 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.528e-05/0.1074, allocations: 15.84 kB / 483.7 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.058e-05/0.1075, allocations: 16.7 kB / 483.8 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.1075, allocations: 4 kB / 483.8 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.1075, allocations: 0 / 483.8 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.66e-06/0.1075, allocations: 0 / 483.8 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002391/0.1077, allocations: 241.4 kB / 484 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.1077, allocations: 0 / 484 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001168/0.1079, allocations: 23.98 kB / 484 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.307e-06/0.1079, allocations: 7.938 kB / 484 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.178e-05/0.1079, allocations: 8 kB / 484 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-06/0.1079, allocations: 0 / 484 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.013e-06/0.1079, allocations: 3.984 kB / 484 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002719/0.1082, allocations: 247.3 kB / 484.3 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.262e-05/0.1082, allocations: 92.89 kB / 484.4 MB, free: 11.85 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.304e-05/0.1083, allocations: 11.94 kB / 484.4 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.579e-05/0.1083, allocations: 0 / 484.4 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.897e-05/0.1084, allocations: 12.05 kB / 484.4 MB, free: 11.83 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.091e-06/0.1084, allocations: 4 kB / 484.4 MB, free: 11.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.644e-05/0.1085, allocations: 111.1 kB / 484.5 MB, free: 11.71 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1085, allocations: 0 / 484.5 MB, free: 11.71 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002482/0.1087, allocations: 39.94 kB / 484.6 MB, free: 11.68 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (predator.population,prey.population) * 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.649e-05/0.1088, allocations: 103.2 kB / 484.7 MB, free: 11.57 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001877/0.109, allocations: 87.91 kB / 484.7 MB, free: 11.48 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.109, allocations: 0 / 484.7 MB, free: 11.48 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.777e-05/0.1091, allocations: 43.88 kB / 484.8 MB, free: 11.44 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002799/0.1094, allocations: 25.22 kB / 484.8 MB, free: 11.41 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006292/0.11, allocations: 370.1 kB / 485.2 MB, free: 11.03 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002469/0.1103, allocations: 0.7124 MB / 485.9 MB, free: 10.29 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.066e-05/0.1103, allocations: 16.64 kB / 485.9 MB, free: 10.27 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.075e-05/0.1103, allocations: 11.44 kB / 485.9 MB, free: 10.26 MB / 350.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1104, allocations: 0 / 485.9 MB, free: 10.26 MB / 350.1 MB Notification: Performance of Templates: time 0.003335/0.1137, allocations: 1.205 MB / 487.1 MB, free: 9.07 MB / 350.1 MB make -j1 -f Physiolibrary_Physiolibrary.Population.Examples.PredatorPrey.makefile (rm -f Physiolibrary_Physiolibrary.Population.Examples.PredatorPrey.pipe ; mkfifo Physiolibrary_Physiolibrary.Population.Examples.PredatorPrey.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Population.Examples.PredatorPrey.pipe >> ../files/Physiolibrary_Physiolibrary.Population.Examples.PredatorPrey.sim & ./Physiolibrary_Physiolibrary.Population.Examples.PredatorPrey -abortSlowSimulation -alarm=480 -lv LOG_STATS > Physiolibrary_Physiolibrary.Population.Examples.PredatorPrey.pipe 2>&1)