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.0833/0.0833, allocations: 15.29 MB / 31.6 MB, free: 4.25 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.001051/0.001051, allocations: 95.97 kB / 36.58 MB, free: 3.152 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.001289/0.001289, allocations: 194.5 kB / 41.69 MB, free: 7.176 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.406/1.406, allocations: 222.9 MB / 269.5 MB, free: 6.82 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1289/0.1289, allocations: 23.36 MB / 347.2 MB, free: 0.6484 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002121/0.002121, allocations: 107.8 kB / 479.5 MB, free: 1.812 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3128/0.3149, allocations: 59.36 MB / 0.5262 GB, free: 8.105 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Population.Examples.PredatorPrey): time 0.002929/0.3179, allocations: 2.319 MB / 0.5285 GB, free: 6.473 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003169/0.3182, allocations: 138.8 kB / 0.5286 GB, free: 6.371 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.123e-05/0.3183, allocations: 11.34 kB / 0.5286 GB, free: 6.363 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001136/0.3185, allocations: 27.84 kB / 0.5287 GB, free: 6.344 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.993e-05/0.3186, allocations: 55.16 kB / 0.5287 GB, free: 6.305 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001292/0.3187, allocations: 32.98 kB / 0.5287 GB, free: 6.289 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001826/0.3189, allocations: 173.1 kB / 0.5289 GB, free: 6.203 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001567/0.3191, allocations: 70.97 kB / 0.529 GB, free: 6.168 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.039e-05/0.3191, allocations: 67.98 kB / 0.529 GB, free: 6.133 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001016/0.3192, allocations: 70.66 kB / 0.5291 GB, free: 6.098 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.493e-05/0.3193, allocations: 9.469 kB / 0.5291 GB, free: 6.098 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.566e-05/0.3193, allocations: 13.12 kB / 0.5291 GB, free: 6.098 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.678e-05/0.3193, allocations: 27.05 kB / 0.5292 GB, free: 6.078 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.458e-05/0.3194, allocations: 71.72 kB / 0.5292 GB, free: 6.039 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000208/0.3196, allocations: 165.6 kB / 0.5294 GB, free: 5.973 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.3196, allocations: 0 / 0.5294 GB, free: 5.973 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.3196, allocations: 0 / 0.5294 GB, free: 5.973 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.44e-06/0.3196, allocations: 2.328 kB / 0.5294 GB, free: 5.973 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.0004107/0.32, allocations: 440 kB / 0.5298 GB, free: 5.551 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.507e-05/0.3201, allocations: 9.719 kB / 0.5298 GB, free: 5.551 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.084e-05/0.3201, allocations: 16.66 kB / 0.5298 GB, free: 5.543 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001931/0.3203, allocations: 212.6 kB / 0.53 GB, free: 5.324 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.733e-05/0.3204, allocations: 9.219 kB / 0.53 GB, free: 5.32 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.657e-05/0.3204, allocations: 13.12 kB / 0.5301 GB, free: 5.316 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001998/0.3206, allocations: 119.8 kB / 0.5302 GB, free: 5.246 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.173e-05/0.3206, allocations: 1.688 kB / 0.5302 GB, free: 5.246 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.48e-05/0.3206, allocations: 9 kB / 0.5302 GB, free: 5.238 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.69e-06/0.3206, allocations: 3.375 kB / 0.5302 GB, free: 5.238 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001334/0.3208, allocations: 71.58 kB / 0.5303 GB, free: 5.215 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005124/0.3213, allocations: 457.1 kB / 0.5307 GB, free: 4.848 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001808/0.3215, allocations: 115.1 kB / 0.5308 GB, free: 4.785 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.041e-05/0.3216, allocations: 47.7 kB / 0.5308 GB, free: 4.762 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.388e-06/0.3216, allocations: 1.469 kB / 0.5308 GB, free: 4.762 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.725e-05/0.3216, allocations: 44.73 kB / 0.5309 GB, free: 4.711 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.242e-06/0.3216, allocations: 0 / 0.5309 GB, free: 4.711 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.0002528/0.3219, allocations: 125.9 kB / 0.531 GB, free: 4.645 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.166e-05/0.3219, allocations: 57.23 kB / 0.5311 GB, free: 4.578 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000102/0.322, allocations: 160.6 kB / 0.5312 GB, free: 4.457 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.736e-06/0.322, allocations: 29.7 kB / 0.5312 GB, free: 4.422 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.456e-05/0.3221, allocations: 121.4 kB / 0.5314 GB, free: 4.312 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.746e-05/0.3221, allocations: 47.28 kB / 0.5314 GB, free: 4.273 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.87e-05/0.3222, allocations: 35.81 kB / 0.5314 GB, free: 4.246 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.473e-05/0.3222, allocations: 321.3 kB / 0.5317 GB, free: 3.93 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.39e-05/0.3223, allocations: 31.27 kB / 0.5318 GB, free: 3.918 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.299e-05/0.3224, allocations: 30.53 kB / 0.5318 GB, free: 3.91 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003742/0.3227, allocations: 161 kB / 0.532 GB, free: 3.836 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.3227, allocations: 0 / 0.532 GB, free: 3.836 MB / 382.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0001857/0.3229, allocations: 140.1 kB / 0.5321 GB, free: 3.758 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.579e-05/0.323, allocations: 12.22 kB / 0.5321 GB, free: 3.754 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.323, allocations: 0 / 0.5321 GB, free: 3.754 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.406e-05/0.323, allocations: 1.062 kB / 0.5321 GB, free: 3.754 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000143/0.3231, allocations: 32.11 kB / 0.5321 GB, free: 3.75 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.551e-06/0.3231, allocations: 3.938 kB / 0.5321 GB, free: 3.746 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.281e-05/0.3232, allocations: 10.31 kB / 0.5321 GB, free: 3.738 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.375e-06/0.3232, allocations: 3.656 kB / 0.5322 GB, free: 3.738 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.0001231/0.3234, allocations: 139.6 kB / 0.5323 GB, free: 3.605 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.448e-05/0.3234, allocations: 14.09 kB / 0.5323 GB, free: 3.598 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.864e-05/0.3234, allocations: 17.02 kB / 0.5323 GB, free: 3.586 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.926e-06/0.3234, allocations: 1.375 kB / 0.5323 GB, free: 3.586 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.3235, allocations: 0 / 0.5323 GB, free: 3.586 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.3235, allocations: 2.969 kB / 0.5323 GB, free: 3.586 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002197/0.3237, allocations: 234.4 kB / 0.5325 GB, free: 3.363 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.3237, allocations: 1.547 kB / 0.5325 GB, free: 3.363 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001187/0.3238, allocations: 21.23 kB / 0.5326 GB, free: 3.359 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.975e-06/0.3238, allocations: 3.938 kB / 0.5326 GB, free: 3.355 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.224e-05/0.3238, allocations: 6.875 kB / 0.5326 GB, free: 3.352 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.3239, allocations: 5.25 kB / 0.5326 GB, free: 3.348 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.3239, allocations: 0 / 0.5326 GB, free: 3.348 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002445/0.3241, allocations: 237.7 kB / 0.5328 GB, free: 3.176 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.269e-05/0.3242, allocations: 100.6 kB / 0.5329 GB, free: 3.062 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.129e-05/0.3242, allocations: 5.281 kB / 0.5329 GB, free: 3.059 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.928e-05/0.3243, allocations: 5.406 kB / 0.5329 GB, free: 3.055 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.856e-05/0.3243, allocations: 5.922 kB / 0.5329 GB, free: 3.055 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.27e-06/0.3243, allocations: 2.781 kB / 0.5329 GB, free: 3.055 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.84e-05/0.3244, allocations: 118.5 kB / 0.533 GB, free: 2.965 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3244, allocations: 0 / 0.533 GB, free: 2.965 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002644/0.3246, allocations: 36.62 kB / 0.5331 GB, free: 2.961 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 7.249e-05/0.3247, allocations: 101.6 kB / 0.5332 GB, free: 2.863 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001745/0.3249, allocations: 88.55 kB / 0.5332 GB, free: 2.836 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.3249, allocations: 0 / 0.5332 GB, free: 2.836 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 6.077e-05/0.325, allocations: 47.28 kB / 0.5333 GB, free: 2.816 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002917/0.3253, allocations: 23.88 kB / 0.5333 GB, free: 2.805 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005757/0.3258, allocations: 397 kB / 0.5337 GB, free: 2.496 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001247/0.326, allocations: 0.716 MB / 0.5344 GB, free: 1.793 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.245e-05/0.326, allocations: 16.25 kB / 0.5344 GB, free: 1.785 MB / 382.1 MB Notification: Performance of SimCode: time 2.31e-07/0.326, allocations: 0 / 0.5344 GB, free: 1.785 MB / 382.1 MB Notification: Performance of Templates: time 0.003569/0.3296, allocations: 1.627 MB / 0.536 GB, free: 1.617 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)