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.08819/0.0882, allocations: 15.28 MB / 30.91 MB, free: 4.125 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.001002/0.001002, allocations: 114.3 kB / 35.92 MB, free: 3.195 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.00117/0.00117, allocations: 193.1 kB / 41.02 MB, free: 7.125 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.449/1.449, allocations: 222.9 MB / 268.9 MB, free: 6.902 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1345/0.1345, allocations: 23.36 MB / 346.6 MB, free: 0.6523 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002032/0.002032, allocations: 112 kB / 478.3 MB, free: 2.328 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2957/0.2977, allocations: 59.36 MB / 0.5251 GB, free: 7.789 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Population.Examples.PredatorPrey): time 0.003296/0.301, allocations: 2.313 MB / 0.5274 GB, free: 6.16 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003909/0.3015, allocations: 148.6 kB / 0.5275 GB, free: 6.051 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001153/0.3016, allocations: 3.781 kB / 0.5275 GB, free: 6.051 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001552/0.3018, allocations: 27.3 kB / 0.5275 GB, free: 6.031 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001322/0.3019, allocations: 51.02 kB / 0.5276 GB, free: 5.996 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001626/0.3021, allocations: 37.22 kB / 0.5276 GB, free: 5.977 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002468/0.3023, allocations: 176.4 kB / 0.5278 GB, free: 5.887 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001786/0.3025, allocations: 67.27 kB / 0.5278 GB, free: 5.855 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.933e-05/0.3026, allocations: 63.8 kB / 0.5279 GB, free: 5.824 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001224/0.3027, allocations: 70.59 kB / 0.528 GB, free: 5.789 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.269e-05/0.3027, allocations: 10.62 kB / 0.528 GB, free: 5.789 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.561e-05/0.3028, allocations: 17.06 kB / 0.528 GB, free: 5.785 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.015e-05/0.3028, allocations: 30.25 kB / 0.528 GB, free: 5.762 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.955e-05/0.3029, allocations: 79.88 kB / 0.5281 GB, free: 5.715 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002462/0.3032, allocations: 161.3 kB / 0.5283 GB, free: 5.652 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.3032, allocations: 1.344 kB / 0.5283 GB, free: 5.652 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3032, allocations: 0 / 0.5283 GB, free: 5.652 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.011e-06/0.3032, allocations: 0 / 0.5283 GB, free: 5.652 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.0005004/0.3037, allocations: 443 kB / 0.5287 GB, free: 5.227 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.031e-05/0.3037, allocations: 9.719 kB / 0.5287 GB, free: 5.227 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.802e-05/0.3038, allocations: 46.17 kB / 0.5287 GB, free: 5.18 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.933e-05/0.3038, allocations: 16.56 kB / 0.5288 GB, free: 5.172 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002459/0.3041, allocations: 218.8 kB / 0.529 GB, free: 4.945 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.906e-05/0.3041, allocations: 9.125 kB / 0.529 GB, free: 4.941 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.063e-05/0.3042, allocations: 12.09 kB / 0.529 GB, free: 4.938 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002294/0.3044, allocations: 117 kB / 0.5291 GB, free: 4.871 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.873e-05/0.3044, allocations: 5.609 kB / 0.5291 GB, free: 4.867 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.537e-05/0.3044, allocations: 9.531 kB / 0.5291 GB, free: 4.859 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.212e-06/0.3044, allocations: 6.875 kB / 0.5291 GB, free: 4.855 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001476/0.3046, allocations: 75.88 kB / 0.5292 GB, free: 4.828 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006685/0.3053, allocations: 449.9 kB / 0.5296 GB, free: 4.469 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002041/0.3055, allocations: 111.6 kB / 0.5297 GB, free: 4.41 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.997e-05/0.3056, allocations: 47.52 kB / 0.5298 GB, free: 4.387 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.296e-05/0.3056, allocations: 6.125 kB / 0.5298 GB, free: 4.383 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.139e-05/0.3056, allocations: 36.41 kB / 0.5298 GB, free: 4.34 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.182e-06/0.3056, allocations: 0 / 0.5298 GB, free: 4.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003026/0.3059, allocations: 129.7 kB / 0.5299 GB, free: 4.27 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.692e-05/0.306, allocations: 53.52 kB / 0.53 GB, free: 4.207 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001138/0.3061, allocations: 154.6 kB / 0.5301 GB, free: 4.09 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.13e-05/0.3061, allocations: 26.95 kB / 0.5302 GB, free: 4.059 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.412e-05/0.3062, allocations: 127.8 kB / 0.5303 GB, free: 3.941 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.856e-05/0.3062, allocations: 46.84 kB / 0.5303 GB, free: 3.906 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.843e-05/0.3063, allocations: 30.73 kB / 0.5303 GB, free: 3.883 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.14e-05/0.3063, allocations: 325.6 kB / 0.5307 GB, free: 3.562 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.002e-05/0.3064, allocations: 27.03 kB / 0.5307 GB, free: 3.555 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.389e-05/0.3064, allocations: 34.95 kB / 0.5307 GB, free: 3.539 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004151/0.3069, allocations: 156.3 kB / 0.5309 GB, free: 3.473 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.3069, allocations: 0 / 0.5309 GB, free: 3.473 MB / 382.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002028/0.3071, allocations: 143.1 kB / 0.531 GB, free: 3.395 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.719e-05/0.3071, allocations: 3.906 kB / 0.531 GB, free: 3.395 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.95e-06/0.3071, allocations: 5.062 kB / 0.531 GB, free: 3.391 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.706e-05/0.3071, allocations: 1.094 kB / 0.531 GB, free: 3.391 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001474/0.3073, allocations: 29.59 kB / 0.531 GB, free: 3.387 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.484e-06/0.3073, allocations: 1.656 kB / 0.531 GB, free: 3.387 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.168e-05/0.3074, allocations: 14.11 kB / 0.5311 GB, free: 3.375 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.132e-05/0.3074, allocations: 3.844 kB / 0.5311 GB, free: 3.375 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.0001577/0.3076, allocations: 136.4 kB / 0.5312 GB, free: 3.242 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.408e-05/0.3076, allocations: 18.09 kB / 0.5312 GB, free: 3.23 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.249e-05/0.3076, allocations: 19.06 kB / 0.5312 GB, free: 3.215 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.3077, allocations: 1.188 kB / 0.5312 GB, free: 3.215 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.503e-06/0.3077, allocations: 3.672 kB / 0.5312 GB, free: 3.215 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.3077, allocations: 3.938 kB / 0.5312 GB, free: 3.211 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002143/0.3079, allocations: 239.4 kB / 0.5315 GB, free: 2.984 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.3079, allocations: 0 / 0.5315 GB, free: 2.984 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001202/0.308, allocations: 29.95 kB / 0.5315 GB, free: 2.973 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.308, allocations: 1.344 kB / 0.5315 GB, free: 2.973 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.088e-05/0.3081, allocations: 1.031 kB / 0.5315 GB, free: 2.973 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.3081, allocations: 1.375 kB / 0.5315 GB, free: 2.973 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.3081, allocations: 0 / 0.5315 GB, free: 2.973 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002586/0.3083, allocations: 238.9 kB / 0.5317 GB, free: 2.797 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.592e-05/0.3084, allocations: 98.05 kB / 0.5318 GB, free: 2.688 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.392e-05/0.3084, allocations: 5.25 kB / 0.5318 GB, free: 2.684 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.694e-05/0.3085, allocations: 0 / 0.5318 GB, free: 2.684 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.916e-05/0.3085, allocations: 11.08 kB / 0.5318 GB, free: 2.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.632e-06/0.3085, allocations: 2.688 kB / 0.5318 GB, free: 2.68 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.166e-05/0.3086, allocations: 117 kB / 0.5319 GB, free: 2.594 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3086, allocations: 3.938 kB / 0.5319 GB, free: 2.59 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002538/0.3089, allocations: 43.64 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.0004055/0.3093, allocations: 0.7801 MB / 0.5328 GB, free: 1.859 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002047/0.3095, allocations: 90.31 kB / 0.5328 GB, free: 1.832 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.3095, allocations: 0 / 0.5328 GB, free: 1.832 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 6.511e-05/0.3096, allocations: 43.98 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.0003063/0.3099, allocations: 26.95 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.001672/0.3116, allocations: 1.76 MB / 0.5346 GB, free: 352 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002719/0.3118, allocations: 0.7146 MB / 0.5353 GB, free: 15.64 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.073e-05/0.3119, allocations: 8.875 kB / 0.5353 GB, free: 15.64 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.226e-05/0.312, allocations: 39.45 kB / 0.5354 GB, free: 15.62 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.312, allocations: 4 kB / 0.5354 GB, free: 15.61 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02114/0.3331, allocations: 2.915 MB / 0.5382 GB, free: 15.09 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.578/7.911, allocations: 1.906 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)