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.08705/0.08705, allocations: 15.28 MB / 30.91 MB, free: 4.141 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.0009977/0.0009978, allocations: 111.2 kB / 35.92 MB, free: 3.188 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.00122/0.001221, allocations: 189.1 kB / 41.02 MB, free: 7.129 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.312/1.312, allocations: 222.9 MB / 268.9 MB, free: 6.887 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1281/0.1281, allocations: 23.35 MB / 346.6 MB, free: 0.6406 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001888/0.001888, allocations: 111.8 kB / 478.8 MB, free: 1.805 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3424/0.3443, allocations: 59.35 MB / 0.5256 GB, free: 8.102 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Population.Examples.PredatorPrey): time 0.003111/0.3475, allocations: 2.322 MB / 0.5278 GB, free: 6.461 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000298/0.3478, allocations: 148.1 kB / 0.528 GB, free: 6.352 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.736e-05/0.3479, allocations: 7.281 kB / 0.528 GB, free: 6.348 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001222/0.348, allocations: 24.61 kB / 0.528 GB, free: 6.332 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000103/0.3482, allocations: 58.69 kB / 0.5281 GB, free: 6.289 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001325/0.3483, allocations: 32.19 kB / 0.5281 GB, free: 6.273 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001903/0.3485, allocations: 173.5 kB / 0.5283 GB, free: 6.188 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001583/0.3487, allocations: 71.33 kB / 0.5283 GB, free: 6.152 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.859e-05/0.3487, allocations: 62.92 kB / 0.5284 GB, free: 6.121 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.993e-05/0.3488, allocations: 69.33 kB / 0.5285 GB, free: 6.09 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.503e-05/0.3489, allocations: 10.12 kB / 0.5285 GB, free: 6.09 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.601e-05/0.3489, allocations: 12.31 kB / 0.5285 GB, free: 6.09 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.693e-05/0.3489, allocations: 30.89 kB / 0.5285 GB, free: 6.066 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.033e-05/0.349, allocations: 74.06 kB / 0.5286 GB, free: 6.023 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002055/0.3492, allocations: 162.3 kB / 0.5287 GB, free: 5.961 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/0.3492, allocations: 1.125 kB / 0.5287 GB, free: 5.961 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.3492, allocations: 1.188 kB / 0.5287 GB, free: 5.961 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.152e-06/0.3492, allocations: 0 / 0.5287 GB, free: 5.961 MB / 382.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.0004175/0.3497, allocations: 440.2 kB / 0.5291 GB, free: 5.539 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.243e-05/0.3497, allocations: 10.56 kB / 0.5292 GB, free: 5.539 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.175e-05/0.3497, allocations: 16.28 kB / 0.5292 GB, free: 5.531 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000199/0.3499, allocations: 213.6 kB / 0.5294 GB, free: 5.309 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.757e-05/0.35, allocations: 10.41 kB / 0.5294 GB, free: 5.305 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.586e-05/0.35, allocations: 11.91 kB / 0.5294 GB, free: 5.301 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002065/0.3502, allocations: 113.3 kB / 0.5295 GB, free: 5.238 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.3502, allocations: 0.7969 kB / 0.5295 GB, free: 5.238 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.446e-05/0.3503, allocations: 9.375 kB / 0.5295 GB, free: 5.23 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.691e-06/0.3503, allocations: 2.844 kB / 0.5295 GB, free: 5.23 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001374/0.3504, allocations: 79.52 kB / 0.5296 GB, free: 5.199 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005392/0.351, allocations: 459 kB / 0.53 GB, free: 4.832 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001779/0.3511, allocations: 108.4 kB / 0.5301 GB, free: 4.777 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.5e-05/0.3512, allocations: 45.88 kB / 0.5302 GB, free: 4.754 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.031e-05/0.3512, allocations: 3.844 kB / 0.5302 GB, free: 4.754 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.648e-05/0.3513, allocations: 40.72 kB / 0.5302 GB, free: 4.707 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.262e-06/0.3513, allocations: 3.938 kB / 0.5302 GB, free: 4.703 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.0002503/0.3515, allocations: 124.1 kB / 0.5303 GB, free: 4.637 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.973e-05/0.3515, allocations: 57.59 kB / 0.5304 GB, free: 4.57 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001042/0.3517, allocations: 154.8 kB / 0.5305 GB, free: 4.453 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.258e-06/0.3517, allocations: 26.77 kB / 0.5306 GB, free: 4.422 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.376e-05/0.3517, allocations: 124.5 kB / 0.5307 GB, free: 4.309 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.907e-05/0.3517, allocations: 52.59 kB / 0.5307 GB, free: 4.266 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.338e-05/0.3518, allocations: 33.97 kB / 0.5308 GB, free: 4.238 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.479e-05/0.3518, allocations: 320.9 kB / 0.5311 GB, free: 3.922 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.867e-05/0.3519, allocations: 31.27 kB / 0.5311 GB, free: 3.91 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.284e-05/0.352, allocations: 36.91 kB / 0.5311 GB, free: 3.895 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003647/0.3523, allocations: 152.3 kB / 0.5313 GB, free: 3.828 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.644e-06/0.3523, allocations: 0 / 0.5313 GB, free: 3.828 MB / 382.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0001723/0.3525, allocations: 138.6 kB / 0.5314 GB, free: 3.754 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.393e-05/0.3525, allocations: 10.08 kB / 0.5314 GB, free: 3.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.519e-06/0.3526, allocations: 5.188 kB / 0.5314 GB, free: 3.746 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.265e-05/0.3526, allocations: 3.984 kB / 0.5314 GB, free: 3.742 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001362/0.3527, allocations: 31.61 kB / 0.5315 GB, free: 3.738 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.019e-06/0.3527, allocations: 0 / 0.5315 GB, free: 3.738 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.067e-05/0.3528, allocations: 14.53 kB / 0.5315 GB, free: 3.727 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.258e-06/0.3528, allocations: 4.156 kB / 0.5315 GB, free: 3.727 MB / 382.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.0001218/0.3529, allocations: 133.9 kB / 0.5316 GB, free: 3.598 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.36e-05/0.353, allocations: 14.56 kB / 0.5316 GB, free: 3.59 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.495e-05/0.353, allocations: 16.36 kB / 0.5316 GB, free: 3.578 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.614e-06/0.353, allocations: 1.25 kB / 0.5316 GB, free: 3.578 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.353, allocations: 0 / 0.5316 GB, free: 3.578 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.353, allocations: 2.297 kB / 0.5317 GB, free: 3.578 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001949/0.3532, allocations: 230.9 kB / 0.5319 GB, free: 3.359 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.3532, allocations: 0 / 0.5319 GB, free: 3.359 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001144/0.3534, allocations: 27.5 kB / 0.5319 GB, free: 3.352 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.3534, allocations: 5.125 kB / 0.5319 GB, free: 3.348 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.041e-05/0.3534, allocations: 1.125 kB / 0.5319 GB, free: 3.348 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.903e-06/0.3534, allocations: 9.188 kB / 0.5319 GB, free: 3.34 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.3534, allocations: 0 / 0.5319 GB, free: 3.34 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002403/0.3536, allocations: 234.9 kB / 0.5321 GB, free: 3.168 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.192e-05/0.3537, allocations: 96.92 kB / 0.5322 GB, free: 3.059 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.203e-05/0.3537, allocations: 5.344 kB / 0.5322 GB, free: 3.055 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.617e-05/0.3538, allocations: 2.312 kB / 0.5322 GB, free: 3.055 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.907e-05/0.3538, allocations: 5.703 kB / 0.5322 GB, free: 3.055 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.313e-06/0.3538, allocations: 10.44 kB / 0.5323 GB, free: 3.047 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.896e-05/0.3539, allocations: 124.9 kB / 0.5324 GB, free: 2.953 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3539, allocations: 0 / 0.5324 GB, free: 2.953 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002438/0.3542, allocations: 36 kB / 0.5324 GB, free: 2.949 MB / 382.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 6.797e-05/0.3542, allocations: 99.56 kB / 0.5325 GB, free: 2.855 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001734/0.3544, allocations: 89.33 kB / 0.5326 GB, free: 2.824 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.3544, allocations: 1.062 kB / 0.5326 GB, free: 2.824 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.63e-05/0.3545, allocations: 40.61 kB / 0.5326 GB, free: 2.812 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000276/0.3548, allocations: 22.34 kB / 0.5326 GB, free: 2.801 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000575/0.3553, allocations: 375.8 kB / 0.533 GB, free: 2.52 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001257/0.3555, allocations: 0.7128 MB / 0.5337 GB, free: 1.82 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.978e-05/0.3555, allocations: 10.09 kB / 0.5337 GB, free: 1.816 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.488e-05/0.3556, allocations: 16.52 kB / 0.5337 GB, free: 1.809 MB / 382.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3556, allocations: 0 / 0.5337 GB, free: 1.809 MB / 382.1 MB Notification: Performance of Templates: time 0.00387/0.3595, allocations: 1.229 MB / 0.5349 GB, free: 1.676 MB / 382.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)