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: "" <> buildModelFMU(Physiolibrary.Population.Examples.PredatorPrey,fileNamePrefix="Physiolibrary_Physiolibrary_Population_Examples_PredatorPrey",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Physiolibrary.Population.Examples.PredatorPrey,fileNamePrefix="Physiolibrary_Physiolibrary_Population_Examples_PredatorPrey",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.1051/0.1051, allocations: 15.27 MB / 30.9 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.001252/0.001252, allocations: 109.6 kB / 35.92 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.001424/0.001424, allocations: 193.1 kB / 41.02 MB, free: 7.148 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.475/1.475, allocations: 222.9 MB / 268.9 MB, free: 6.855 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1578/0.1578, allocations: 23.35 MB / 346.6 MB, free: 0.6367 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003148/0.003148, allocations: 108 kB / 478.3 MB, free: 2.312 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3111/0.3142, allocations: 59.35 MB / 0.5251 GB, free: 7.801 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Population.Examples.PredatorPrey): time 0.002998/0.3173, allocations: 2.324 MB / 0.5274 GB, free: 6.156 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002957/0.3176, allocations: 153.4 kB / 0.5275 GB, free: 6.043 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.438e-05/0.3177, allocations: 2.312 kB / 0.5275 GB, free: 6.043 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001273/0.3178, allocations: 23.53 kB / 0.5275 GB, free: 6.027 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.998e-05/0.3179, allocations: 54.45 kB / 0.5276 GB, free: 5.988 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001278/0.318, allocations: 31.78 kB / 0.5276 GB, free: 5.973 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001953/0.3183, allocations: 173.8 kB / 0.5278 GB, free: 5.887 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001579/0.3184, allocations: 75.69 kB / 0.5279 GB, free: 5.848 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.038e-05/0.3185, allocations: 58.58 kB / 0.5279 GB, free: 5.82 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001157/0.3186, allocations: 70.62 kB / 0.528 GB, free: 5.785 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.464e-05/0.3186, allocations: 11 kB / 0.528 GB, free: 5.785 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.059e-05/0.3187, allocations: 11.94 kB / 0.528 GB, free: 5.785 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.723e-05/0.3187, allocations: 27.78 kB / 0.528 GB, free: 5.766 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.142e-05/0.3188, allocations: 75.03 kB / 0.5281 GB, free: 5.723 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002134/0.319, allocations: 169.1 kB / 0.5283 GB, free: 5.652 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.319, allocations: 0 / 0.5283 GB, free: 5.652 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.319, allocations: 0 / 0.5283 GB, free: 5.652 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.191e-06/0.319, allocations: 5.125 kB / 0.5283 GB, free: 5.648 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.0004396/0.3195, allocations: 439.1 kB / 0.5287 GB, free: 5.227 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.988e-05/0.3195, allocations: 9.875 kB / 0.5287 GB, free: 5.227 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.16e-05/0.3196, allocations: 45.58 kB / 0.5287 GB, free: 5.18 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.698e-05/0.3196, allocations: 17.31 kB / 0.5287 GB, free: 5.172 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000198/0.3198, allocations: 213.8 kB / 0.529 GB, free: 4.949 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.849e-05/0.3198, allocations: 9.875 kB / 0.529 GB, free: 4.945 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.479e-05/0.3199, allocations: 17.44 kB / 0.529 GB, free: 4.938 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002092/0.3201, allocations: 116.8 kB / 0.5291 GB, free: 4.871 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.53e-05/0.3201, allocations: 4.641 kB / 0.5291 GB, free: 4.867 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.357e-05/0.3201, allocations: 5.375 kB / 0.5291 GB, free: 4.863 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.702e-06/0.3201, allocations: 2.594 kB / 0.5291 GB, free: 4.863 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001402/0.3203, allocations: 80.55 kB / 0.5292 GB, free: 4.832 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005459/0.3208, allocations: 454.1 kB / 0.5296 GB, free: 4.469 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002036/0.321, allocations: 108.8 kB / 0.5297 GB, free: 4.414 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.213e-05/0.3211, allocations: 46.78 kB / 0.5298 GB, free: 4.391 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.079e-05/0.3211, allocations: 1.984 kB / 0.5298 GB, free: 4.391 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.804e-05/0.3212, allocations: 39.75 kB / 0.5298 GB, free: 4.344 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.223e-06/0.3212, allocations: 3.938 kB / 0.5298 GB, free: 4.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.0002566/0.3214, allocations: 126 kB / 0.5299 GB, free: 4.273 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.345e-05/0.3215, allocations: 59.12 kB / 0.53 GB, free: 4.207 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001101/0.3216, allocations: 150.3 kB / 0.5301 GB, free: 4.094 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.207e-06/0.3216, allocations: 31.33 kB / 0.5302 GB, free: 4.059 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.599e-05/0.3216, allocations: 132.7 kB / 0.5303 GB, free: 3.938 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.422e-05/0.3217, allocations: 40.62 kB / 0.5303 GB, free: 3.906 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.361e-05/0.3217, allocations: 35.48 kB / 0.5304 GB, free: 3.879 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.357e-05/0.3218, allocations: 320.3 kB / 0.5307 GB, free: 3.562 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.76e-05/0.3218, allocations: 34.75 kB / 0.5307 GB, free: 3.547 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.939e-05/0.3219, allocations: 28.66 kB / 0.5307 GB, free: 3.539 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003702/0.3223, allocations: 155.4 kB / 0.5309 GB, free: 3.473 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.3223, allocations: 4 kB / 0.5309 GB, free: 3.469 MB / 382.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0001759/0.3225, allocations: 140.1 kB / 0.531 GB, free: 3.391 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.347e-05/0.3225, allocations: 5.906 kB / 0.531 GB, free: 3.391 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.3225, allocations: 0 / 0.531 GB, free: 3.391 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.479e-05/0.3225, allocations: 4.422 kB / 0.531 GB, free: 3.391 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001336/0.3226, allocations: 29.59 kB / 0.531 GB, free: 3.387 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.16e-06/0.3226, allocations: 3.938 kB / 0.531 GB, free: 3.383 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.944e-05/0.3227, allocations: 18.08 kB / 0.5311 GB, free: 3.367 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.476e-06/0.3227, allocations: 3.594 kB / 0.5311 GB, free: 3.367 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.0001338/0.3229, allocations: 132.7 kB / 0.5312 GB, free: 3.238 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.261e-05/0.3229, allocations: 21.88 kB / 0.5312 GB, free: 3.223 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.634e-05/0.3229, allocations: 14.75 kB / 0.5312 GB, free: 3.215 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.323, allocations: 1.188 kB / 0.5312 GB, free: 3.215 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.93e-06/0.323, allocations: 5.312 kB / 0.5312 GB, free: 3.211 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.323, allocations: 0 / 0.5312 GB, free: 3.211 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001897/0.3232, allocations: 235.8 kB / 0.5315 GB, free: 2.988 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.3232, allocations: 0 / 0.5315 GB, free: 2.988 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001143/0.3233, allocations: 27.09 kB / 0.5315 GB, free: 2.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.3233, allocations: 3.938 kB / 0.5315 GB, free: 2.977 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.388e-06/0.3233, allocations: 1.156 kB / 0.5315 GB, free: 2.977 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.3233, allocations: 1.406 kB / 0.5315 GB, free: 2.977 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.3233, allocations: 0 / 0.5315 GB, free: 2.977 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002502/0.3236, allocations: 247.9 kB / 0.5317 GB, free: 2.793 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.154e-05/0.3236, allocations: 89.33 kB / 0.5318 GB, free: 2.691 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.005e-05/0.3236, allocations: 1.906 kB / 0.5318 GB, free: 2.691 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.716e-05/0.3237, allocations: 4.562 kB / 0.5318 GB, free: 2.688 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.91e-05/0.3238, allocations: 6.438 kB / 0.5318 GB, free: 2.688 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.871e-06/0.3238, allocations: 1 kB / 0.5318 GB, free: 2.688 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.085e-05/0.3238, allocations: 121.9 kB / 0.5319 GB, free: 2.594 MB / 382.1 MB Notification: Performance of sort global known variables: time 6.82e-07/0.3238, allocations: 1.156 kB / 0.5319 GB, free: 2.594 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002471/0.3241, allocations: 48.02 kB / 0.532 GB, free: 2.578 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 0.0003582/0.3244, allocations: 0.7752 MB / 0.5327 GB, free: 1.863 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001737/0.3246, allocations: 90.2 kB / 0.5328 GB, free: 1.832 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.3246, allocations: 1.594 kB / 0.5328 GB, free: 1.832 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 6.306e-05/0.3247, allocations: 44.56 kB / 0.5329 GB, free: 1.816 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002913/0.325, allocations: 30.73 kB / 0.5329 GB, free: 1.801 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001438/0.3265, allocations: 1.767 MB / 0.5346 GB, free: 344 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002708/0.3267, allocations: 0.7115 MB / 0.5353 GB, free: 15.64 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.808e-05/0.3268, allocations: 12.86 kB / 0.5353 GB, free: 15.63 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.541e-05/0.3268, allocations: 36.89 kB / 0.5354 GB, free: 15.61 MB / 398.1 MB Notification: Performance of SimCode: time 2.11e-07/0.3269, allocations: 0 / 0.5354 GB, free: 15.61 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02511/0.352, allocations: 2.916 MB / 0.5382 GB, free: 15.09 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.059/8.411, allocations: 5.938 kB / 0.5382 GB, free: 15.09 MB / 398.1 MB (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 & python3 -m fmpy simulate --output-file Physiolibrary_Physiolibrary.Population.Examples.PredatorPrey_res.csv --start-time 0 --stop-time 20 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.008 Physiolibrary_Physiolibrary_Population_Examples_PredatorPrey.fmu > Physiolibrary_Physiolibrary.Population.Examples.PredatorPrey.pipe 2>&1)