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.127/0.127, allocations: 15.29 MB / 30.41 MB, free: 4.387 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.001348/0.001348, allocations: 105.3 kB / 35.38 MB, free: 3.457 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.001721/0.001721, allocations: 197.1 kB / 40.47 MB, free: 7.547 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.471/1.471, allocations: 222.9 MB / 268.3 MB, free: 7.672 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1405/0.1405, allocations: 23.35 MB / 346 MB, free: 0.8789 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001931/0.001931, allocations: 99.84 kB / 417.6 MB, free: 30.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.1148, allocations: 59.37 MB / 476.9 MB, free: 3.414 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Population.Examples.PredatorPrey): time 0.003523/0.1184, allocations: 2.379 MB / 479.3 MB, free: 1.016 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002898/0.1187, allocations: 143.4 kB / 479.4 MB, free: 0.875 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.668e-05/0.1188, allocations: 4 kB / 479.4 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001355/0.1189, allocations: 15.84 kB / 479.5 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.954e-05/0.119, allocations: 51.61 kB / 479.5 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001404/0.1192, allocations: 27.98 kB / 479.5 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001862/0.1194, allocations: 171.1 kB / 479.7 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001622/0.1195, allocations: 66.09 kB / 479.8 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.766e-05/0.1196, allocations: 55.8 kB / 479.8 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001128/0.1197, allocations: 63.64 kB / 479.9 MB, free: 440 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.531e-05/0.1197, allocations: 8 kB / 479.9 MB, free: 432 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.052e-05/0.1198, allocations: 12 kB / 479.9 MB, free: 420 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.821e-05/0.1198, allocations: 19.92 kB / 479.9 MB, free: 400 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.915e-05/0.1199, allocations: 71.61 kB / 480 MB, free: 328 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001567/0.1201, allocations: 147.4 kB / 480.1 MB, free: 180 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.1201, allocations: 0 / 480.1 MB, free: 180 kB / 334.1 MB Notification: Performance of FrontEnd: time 7.41e-07/0.1201, allocations: 0 / 480.1 MB, free: 180 kB / 334.1 MB Notification: Performance of Transformations before backend: time 4.638e-06/0.1201, allocations: 0 / 480.1 MB, free: 180 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.00056/0.1207, allocations: 438.9 kB / 480.6 MB, free: 15.7 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.715e-05/0.1207, allocations: 8.594 kB / 480.6 MB, free: 15.69 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.755e-05/0.1208, allocations: 46.73 kB / 480.6 MB, free: 15.63 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.287e-05/0.1208, allocations: 16.75 kB / 480.6 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002172/0.121, allocations: 212 kB / 480.8 MB, free: 15.37 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.856e-05/0.1211, allocations: 16.31 kB / 480.9 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.485e-05/0.1211, allocations: 16.31 kB / 480.9 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002071/0.1213, allocations: 110.7 kB / 481 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.438e-05/0.1213, allocations: 3.938 kB / 481 MB, free: 15.22 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.48e-05/0.1214, allocations: 8 kB / 481 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/0.1214, allocations: 0 / 481 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001436/0.1215, allocations: 79.95 kB / 481.1 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006257/0.1221, allocations: 452.3 kB / 481.5 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002027/0.1224, allocations: 110.5 kB / 481.6 MB, free: 14.53 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.301e-05/0.1225, allocations: 48.94 kB / 481.7 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.403e-05/0.1225, allocations: 0 / 481.7 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.438e-05/0.1225, allocations: 42.5 kB / 481.7 MB, free: 14.43 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.052e-06/0.1225, allocations: 3.938 kB / 481.7 MB, free: 14.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0002816/0.1228, allocations: 133.4 kB / 481.8 MB, free: 14.29 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.768e-05/0.1229, allocations: 55.34 kB / 481.9 MB, free: 14.22 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001199/0.123, allocations: 150.2 kB / 482 MB, free: 14.06 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.36e-05/0.123, allocations: 25.7 kB / 482.1 MB, free: 14.03 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.257e-05/0.1231, allocations: 131.7 kB / 482.2 MB, free: 13.9 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.432e-05/0.1231, allocations: 43.36 kB / 482.2 MB, free: 13.86 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.842e-05/0.1232, allocations: 33.72 kB / 482.3 MB, free: 13.82 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001095/0.1233, allocations: 322.8 kB / 482.6 MB, free: 13.49 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.039e-05/0.1234, allocations: 31.98 kB / 482.6 MB, free: 13.46 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.684e-05/0.1234, allocations: 31.98 kB / 482.7 MB, free: 13.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003994/0.1238, allocations: 159.3 kB / 482.8 MB, free: 13.27 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.1238, allocations: 0 / 482.8 MB, free: 13.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0001954/0.124, allocations: 137.4 kB / 482.9 MB, free: 13.13 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.592e-05/0.1241, allocations: 10.33 kB / 483 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.698e-06/0.1241, allocations: 0 / 483 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.272e-05/0.1241, allocations: 8 kB / 483 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001383/0.1242, allocations: 20 kB / 483 MB, free: 13.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.656e-06/0.1242, allocations: 7.984 kB / 483 MB, free: 13.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.077e-05/0.1243, allocations: 11.91 kB / 483 MB, free: 13.08 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.306e-06/0.1243, allocations: 0 / 483 MB, free: 13.08 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.0002494/0.1246, allocations: 156.1 kB / 483.2 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.351e-05/0.1246, allocations: 11.84 kB / 483.2 MB, free: 12.9 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.41e-05/0.1247, allocations: 16.72 kB / 483.2 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.1247, allocations: 0 / 483.2 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.1247, allocations: 0 / 483.2 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.1247, allocations: 7.938 kB / 483.2 MB, free: 12.87 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002505/0.125, allocations: 233.5 kB / 483.4 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.125, allocations: 3.984 kB / 483.4 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001234/0.1251, allocations: 23.94 kB / 483.4 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.1251, allocations: 0 / 483.4 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.075e-05/0.1251, allocations: 4 kB / 483.4 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.1251, allocations: 4 kB / 483.5 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1251, allocations: 3.938 kB / 483.5 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002691/0.1254, allocations: 235.4 kB / 483.7 MB, free: 12.31 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.914e-05/0.1255, allocations: 96.88 kB / 483.8 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.264e-05/0.1255, allocations: 4 kB / 483.8 MB, free: 12.19 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.684e-05/0.1256, allocations: 4 kB / 483.8 MB, free: 12.19 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.202e-05/0.1256, allocations: 11.98 kB / 483.8 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.352e-06/0.1256, allocations: 8 kB / 483.8 MB, free: 12.17 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.64e-05/0.1257, allocations: 121.9 kB / 483.9 MB, free: 12.05 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1257, allocations: 0 / 483.9 MB, free: 12.05 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002484/0.126, allocations: 39.94 kB / 484 MB, free: 12.01 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.0004986/0.1265, allocations: 0.7864 MB / 484.8 MB, free: 11.2 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001683/0.1267, allocations: 83.86 kB / 484.8 MB, free: 11.12 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1267, allocations: 0 / 484.8 MB, free: 11.12 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.729e-05/0.1267, allocations: 40.64 kB / 484.9 MB, free: 11.08 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003073/0.127, allocations: 35.52 kB / 484.9 MB, free: 11.05 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001773/0.1288, allocations: 1.8 MB / 486.7 MB, free: 9.168 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002536/0.1291, allocations: 0.7127 MB / 487.4 MB, free: 8.43 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.134e-05/0.1292, allocations: 13.42 kB / 487.4 MB, free: 8.418 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.58e-05/0.1292, allocations: 39.42 kB / 487.5 MB, free: 8.379 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1292, allocations: 0 / 487.5 MB, free: 8.379 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01303/0.1423, allocations: 2.956 MB / 490.4 MB, free: 5.527 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002046/0.1425, allocations: 203.9 kB / 490.6 MB, free: 5.262 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.799/1.941, allocations: 3.25 kB / 490.6 MB, free: 5.262 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)