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-master/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-master/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-master/package.mo): time 0.1163/0.1163, allocations: 15.27 MB / 30.24 MB, free: 6.137 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.0009616/0.0009618, allocations: 99.19 kB / 35.25 MB, free: 1.352 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.001065/0.001065, allocations: 180.5 kB / 40.35 MB, free: 4.969 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.468/1.468, allocations: 223.3 MB / 268.6 MB, free: 368 kB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1457/0.1457, allocations: 23.39 MB / 347.3 MB, free: 6.637 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005943/0.0005948, allocations: 16 kB / 419.6 MB, free: 14.3 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3391/0.3398, allocations: 60.47 MB / 480 MB, free: 36.52 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Population.Examples.PredatorPrey): time 0.002159/0.342, allocations: 1.978 MB / 482 MB, free: 34.53 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000277/0.3423, allocations: 139.5 kB / 482.1 MB, free: 34.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.998e-05/0.3424, allocations: 4 kB / 482.2 MB, free: 34.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001099/0.3425, allocations: 15.84 kB / 482.2 MB, free: 34.37 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.501e-05/0.3426, allocations: 55.61 kB / 482.2 MB, free: 34.32 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000126/0.3427, allocations: 27.91 kB / 482.2 MB, free: 34.29 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000167/0.3429, allocations: 163.1 kB / 482.4 MB, free: 34.13 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001526/0.343, allocations: 49.83 kB / 482.5 MB, free: 34.08 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.899e-05/0.3431, allocations: 47.8 kB / 482.5 MB, free: 34.03 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.33e-05/0.3432, allocations: 55.72 kB / 482.6 MB, free: 33.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.791e-05/0.3432, allocations: 4 kB / 482.6 MB, free: 33.97 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.059e-05/0.3432, allocations: 8 kB / 482.6 MB, free: 33.96 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.746e-05/0.3433, allocations: 15.92 kB / 482.6 MB, free: 33.95 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.216e-05/0.3433, allocations: 57.58 kB / 482.6 MB, free: 33.89 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001104/0.3434, allocations: 102.3 kB / 482.7 MB, free: 33.79 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.3434, allocations: 0 / 482.7 MB, free: 33.79 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.3434, allocations: 0 / 482.7 MB, free: 33.79 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.957e-06/0.3435, allocations: 0 / 482.7 MB, free: 33.79 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.0004157/0.3439, allocations: 406.9 kB / 483.1 MB, free: 33.34 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.181e-05/0.344, allocations: 16.03 kB / 483.2 MB, free: 33.33 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.012e-05/0.344, allocations: 19.8 kB / 483.2 MB, free: 33.31 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001868/0.3442, allocations: 206.7 kB / 483.4 MB, free: 33.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.715e-05/0.3442, allocations: 8 kB / 483.4 MB, free: 33.06 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.665e-05/0.3442, allocations: 16 kB / 483.4 MB, free: 33.04 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002103/0.3445, allocations: 118.1 kB / 483.5 MB, free: 32.92 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.422e-05/0.3445, allocations: 3.906 kB / 483.5 MB, free: 32.92 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.445e-05/0.3445, allocations: 8 kB / 483.5 MB, free: 32.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/0.3445, allocations: 0 / 483.5 MB, free: 32.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000119/0.3446, allocations: 67.97 kB / 483.6 MB, free: 32.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005401/0.3452, allocations: 456.2 kB / 484 MB, free: 32.35 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001879/0.3454, allocations: 114.6 kB / 484.1 MB, free: 32.23 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.726e-05/0.3455, allocations: 52.84 kB / 484.2 MB, free: 32.17 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.396e-05/0.3455, allocations: 4 kB / 484.2 MB, free: 32.17 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.58e-05/0.3455, allocations: 38.5 kB / 484.2 MB, free: 32.12 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.202e-06/0.3455, allocations: 0 / 484.2 MB, free: 32.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0002564/0.3458, allocations: 125.5 kB / 484.4 MB, free: 31.99 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.678e-05/0.3458, allocations: 55.41 kB / 484.4 MB, free: 31.93 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.943e-05/0.3459, allocations: 157.6 kB / 484.6 MB, free: 31.77 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.097e-05/0.3459, allocations: 33.7 kB / 484.6 MB, free: 31.73 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.542e-05/0.346, allocations: 119.7 kB / 484.7 MB, free: 31.61 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.551e-05/0.346, allocations: 43.45 kB / 484.8 MB, free: 31.56 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.202e-06/0.346, allocations: 4 kB / 484.8 MB, free: 31.56 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.241e-05/0.3461, allocations: 322.8 kB / 485.1 MB, free: 31.23 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.796e-05/0.3461, allocations: 31.98 kB / 485.1 MB, free: 31.2 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.495e-05/0.3462, allocations: 35.92 kB / 485.1 MB, free: 31.17 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.088e-05/0.3463, allocations: 35.95 kB / 485.2 MB, free: 31.13 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.3463, allocations: 7.938 kB / 485.2 MB, free: 31.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.000152/0.3464, allocations: 136 kB / 485.3 MB, free: 30.99 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.258e-05/0.3464, allocations: 8 kB / 485.3 MB, free: 30.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.3465, allocations: 4 kB / 485.3 MB, free: 30.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.168e-05/0.3465, allocations: 0 / 485.3 MB, free: 30.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001353/0.3466, allocations: 27.98 kB / 485.4 MB, free: 30.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/0.3466, allocations: 0 / 485.4 MB, free: 30.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.494e-05/0.3467, allocations: 15.89 kB / 485.4 MB, free: 30.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.504e-06/0.3467, allocations: 4 kB / 485.4 MB, free: 30.93 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: prey.population:VARIABLE(flow=false min = max(0.0, max(0.0, max(0.0, 0.0))) start = prey.population_start unit = "1" fixed = true nominal = prey.NominalPopulation ) type: Real predator.population:VARIABLE(flow=false min = max(0.0, max(0.0, max(0.0, 0.0))) start = predator.population_start unit = "1" fixed = true nominal = predator.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001901/0.3469, allocations: 146.7 kB / 485.5 MB, free: 30.78 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.819e-05/0.3469, allocations: 11.91 kB / 485.5 MB, free: 30.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.766e-05/0.347, allocations: 16.7 kB / 485.6 MB, free: 30.74 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.347, allocations: 4 kB / 485.6 MB, free: 30.74 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.347, allocations: 0 / 485.6 MB, free: 30.74 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.347, allocations: 0 / 485.6 MB, free: 30.74 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001825/0.3472, allocations: 233.5 kB / 485.8 MB, free: 30.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.3472, allocations: 3.953 kB / 485.8 MB, free: 30.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001061/0.3473, allocations: 23.98 kB / 485.8 MB, free: 30.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.3473, allocations: 4 kB / 485.8 MB, free: 30.43 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.302e-05/0.3473, allocations: 4 kB / 485.8 MB, free: 30.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.3473, allocations: 0 / 485.8 MB, free: 30.43 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.3474, allocations: 0 / 485.8 MB, free: 30.43 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002178/0.3476, allocations: 247.7 kB / 486.1 MB, free: 30.17 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.364e-05/0.3476, allocations: 96.91 kB / 486.2 MB, free: 30.05 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.972e-05/0.3476, allocations: 4 kB / 486.2 MB, free: 30.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.635e-05/0.3477, allocations: 8 kB / 486.2 MB, free: 30.04 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.167e-05/0.3477, allocations: 15.98 kB / 486.2 MB, free: 30.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.408e-06/0.3478, allocations: 0 / 486.2 MB, free: 30.03 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.112e-05/0.3478, allocations: 115.1 kB / 486.3 MB, free: 29.91 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3478, allocations: 0 / 486.3 MB, free: 29.91 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002416/0.3481, allocations: 36 kB / 486.3 MB, free: 29.88 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 6.503e-05/0.3481, allocations: 103.1 kB / 486.4 MB, free: 29.77 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001461/0.3483, allocations: 79.97 kB / 486.5 MB, free: 29.69 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.3483, allocations: 0 / 486.5 MB, free: 29.69 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.658e-05/0.3483, allocations: 43.88 kB / 486.6 MB, free: 29.65 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000288/0.3486, allocations: 27.98 kB / 486.6 MB, free: 29.62 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005627/0.3492, allocations: 448.3 kB / 487 MB, free: 29.15 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001412/0.3494, allocations: 0.7204 MB / 487.7 MB, free: 28.41 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.829e-05/0.3494, allocations: 9.422 kB / 487.8 MB, free: 28.4 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.144e-05/0.3495, allocations: 15.44 kB / 487.8 MB, free: 28.38 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3495, allocations: 0 / 487.8 MB, free: 28.38 MB / 350.1 MB Notification: Performance of Templates: time 0.003307/0.3528, allocations: 1.262 MB / 489 MB, free: 27.15 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)