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.09107/0.09107, allocations: 15.28 MB / 30.51 MB, free: 4.352 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.001145/0.001145, allocations: 110.8 kB / 35.49 MB, free: 3.387 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.001433/0.001433, allocations: 192.5 kB / 40.58 MB, free: 7.469 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.311/1.311, allocations: 222.9 MB / 268.4 MB, free: 6.859 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1315/0.1315, allocations: 23.35 MB / 346.1 MB, free: 0.8867 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001924/0.001924, allocations: 115.8 kB / 417.8 MB, free: 30.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09686/0.09881, allocations: 59.36 MB / 477.1 MB, free: 3.293 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Population.Examples.PredatorPrey): time 0.003488/0.1023, allocations: 2.372 MB / 479.5 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003683/0.1027, allocations: 143.5 kB / 479.6 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001124/0.1029, allocations: 7.938 kB / 479.6 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001269/0.103, allocations: 11.86 kB / 479.6 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001196/0.1031, allocations: 55.61 kB / 479.7 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001275/0.1033, allocations: 27.97 kB / 479.7 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002004/0.1035, allocations: 179.1 kB / 479.9 MB, free: 496 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001559/0.1037, allocations: 70.19 kB / 480 MB, free: 428 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.815e-05/0.1037, allocations: 55.8 kB / 480 MB, free: 372 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001092/0.1039, allocations: 79.58 kB / 480.1 MB, free: 292 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.177e-05/0.1039, allocations: 8 kB / 480.1 MB, free: 284 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.549e-05/0.1039, allocations: 12 kB / 480.1 MB, free: 272 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.65e-05/0.1039, allocations: 23.92 kB / 480.1 MB, free: 248 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.909e-05/0.104, allocations: 79.61 kB / 480.2 MB, free: 168 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001541/0.1042, allocations: 147.4 kB / 480.4 MB, free: 20 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.1042, allocations: 0 / 480.4 MB, free: 20 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1042, allocations: 0 / 480.4 MB, free: 20 kB / 334.1 MB Notification: Performance of Transformations before backend: time 8.746e-06/0.1042, allocations: 0 / 480.4 MB, free: 20 kB / 334.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.0005615/0.1048, allocations: 449.5 kB / 480.8 MB, free: 15.53 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.07e-05/0.1048, allocations: 12.03 kB / 480.8 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.18e-05/0.1049, allocations: 42.75 kB / 480.9 MB, free: 15.47 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.7e-05/0.1049, allocations: 20.69 kB / 480.9 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002026/0.1051, allocations: 212 kB / 481.1 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.616e-05/0.1052, allocations: 8.375 kB / 481.1 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.478e-05/0.1052, allocations: 12.38 kB / 481.1 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002162/0.1054, allocations: 118.7 kB / 481.2 MB, free: 15.06 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.6e-05/0.1054, allocations: 11.92 kB / 481.2 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.337e-05/0.1055, allocations: 4 kB / 481.2 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-06/0.1055, allocations: 4 kB / 481.2 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001309/0.1056, allocations: 67.97 kB / 481.3 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005852/0.1062, allocations: 444.3 kB / 481.7 MB, free: 14.49 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001832/0.1064, allocations: 118.5 kB / 481.9 MB, free: 14.37 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.264e-05/0.1065, allocations: 44.94 kB / 481.9 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.36e-05/0.1065, allocations: 8 kB / 481.9 MB, free: 14.31 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.245e-05/0.1065, allocations: 38.48 kB / 481.9 MB, free: 14.27 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.172e-06/0.1065, allocations: 0 / 481.9 MB, free: 14.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0002498/0.1068, allocations: 125.4 kB / 482.1 MB, free: 14.14 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.09e-05/0.1068, allocations: 63.39 kB / 482.1 MB, free: 14.06 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001116/0.107, allocations: 145.7 kB / 482.3 MB, free: 13.91 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.572e-05/0.107, allocations: 33.64 kB / 482.3 MB, free: 13.87 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.263e-05/0.107, allocations: 123.7 kB / 482.4 MB, free: 13.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.348e-05/0.1071, allocations: 55.34 kB / 482.5 MB, free: 13.69 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.536e-05/0.1071, allocations: 25.72 kB / 482.5 MB, free: 13.66 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001005/0.1072, allocations: 322.8 kB / 482.8 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.741e-05/0.1073, allocations: 31.98 kB / 482.9 MB, free: 13.3 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.943e-05/0.1074, allocations: 31.98 kB / 482.9 MB, free: 13.27 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003684/0.1077, allocations: 159.2 kB / 483 MB, free: 13.12 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.1077, allocations: 3.938 kB / 483 MB, free: 13.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0001835/0.1079, allocations: 141.4 kB / 483.2 MB, free: 12.97 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.28e-05/0.108, allocations: 7.938 kB / 483.2 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.108, allocations: 4 kB / 483.2 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.102e-05/0.108, allocations: 0 / 483.2 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001388/0.1081, allocations: 39.97 kB / 483.2 MB, free: 12.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.2e-06/0.1081, allocations: 0 / 483.2 MB, free: 12.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.027e-05/0.1082, allocations: 7.906 kB / 483.2 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.988e-06/0.1082, allocations: 8 kB / 483.2 MB, free: 12.9 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: 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 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 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.0002165/0.1084, allocations: 150.2 kB / 483.4 MB, free: 12.74 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.185e-05/0.1085, allocations: 11.84 kB / 483.4 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.689e-05/0.1085, allocations: 16.72 kB / 483.4 MB, free: 12.71 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/0.1085, allocations: 4 kB / 483.4 MB, free: 12.71 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.1085, allocations: 0 / 483.4 MB, free: 12.71 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.1086, allocations: 7.984 kB / 483.4 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002299/0.1088, allocations: 229.5 kB / 483.7 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.1088, allocations: 0 / 483.7 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001145/0.1089, allocations: 19.94 kB / 483.7 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.1089, allocations: 0 / 483.7 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.343e-05/0.1089, allocations: 8 kB / 483.7 MB, free: 12.4 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.148e-06/0.109, allocations: 3.984 kB / 483.7 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.109, allocations: 0 / 483.7 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002562/0.1092, allocations: 243.4 kB / 483.9 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.051e-05/0.1093, allocations: 96.95 kB / 484 MB, free: 12.03 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.282e-05/0.1093, allocations: 4 kB / 484 MB, free: 12.03 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.388e-05/0.1094, allocations: 7.984 kB / 484 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.735e-05/0.1094, allocations: 4 kB / 484 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.039e-06/0.1094, allocations: 0 / 484 MB, free: 12.02 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.322e-05/0.1095, allocations: 122.2 kB / 484.2 MB, free: 11.9 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1095, allocations: 0 / 484.2 MB, free: 11.9 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002417/0.1098, allocations: 39.94 kB / 484.2 MB, free: 11.86 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 (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.000466/0.1102, allocations: 0.7942 MB / 485 MB, free: 11.04 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001828/0.1104, allocations: 91.91 kB / 485.1 MB, free: 10.95 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1104, allocations: 0 / 485.1 MB, free: 10.95 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.753e-05/0.1105, allocations: 43.92 kB / 485.1 MB, free: 10.91 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002834/0.1108, allocations: 23.94 kB / 485.1 MB, free: 10.88 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00165/0.1125, allocations: 1.818 MB / 487 MB, free: 8.984 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002336/0.1127, allocations: 0.7163 MB / 487.7 MB, free: 8.242 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.821e-05/0.1128, allocations: 13.08 kB / 487.7 MB, free: 8.23 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.781e-05/0.1128, allocations: 39.42 kB / 487.7 MB, free: 8.191 MB / 350.1 MB Notification: Performance of SimCode: time 2e-07/0.1129, allocations: 0 / 487.7 MB, free: 8.191 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.116/0.2289, allocations: 2.794 MB / 490.5 MB, free: 5.512 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002917/0.2292, allocations: 208.2 kB / 490.7 MB, free: 5.242 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.246/2.475, allocations: 2.875 kB / 490.7 MB, free: 5.242 MB / 350.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Physiolibrary_Physiolibrary_Population_Examples_PredatorPrey_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 Physiolibrary_Physiolibrary_Population_Examples_PredatorPrey.fmu > Physiolibrary_Physiolibrary.Population.Examples.PredatorPrey.pipe 2>&1)