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.08597/0.08597, allocations: 15.28 MB / 30.78 MB, free: 4.082 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.001098/0.001099, allocations: 108.4 kB / 35.77 MB, free: 3.281 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.001368/0.001368, allocations: 193.1 kB / 40.88 MB, free: 7.195 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.339/1.339, allocations: 222.9 MB / 268.7 MB, free: 6.836 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1277/0.1277, allocations: 23.36 MB / 346.4 MB, free: 0.7266 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001932/0.001932, allocations: 111.8 kB / 418.3 MB, free: 30.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08593/0.08787, allocations: 59.36 MB / 477.7 MB, free: 2.914 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Population.Examples.PredatorPrey): time 0.00322/0.09113, allocations: 2.307 MB / 480 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002774/0.09142, allocations: 147.4 kB / 480.1 MB, free: 456 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.921e-05/0.09151, allocations: 4 kB / 480.1 MB, free: 452 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001089/0.09163, allocations: 27.72 kB / 480.2 MB, free: 424 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.817e-05/0.09173, allocations: 55.48 kB / 480.2 MB, free: 368 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001292/0.09187, allocations: 31.95 kB / 480.2 MB, free: 336 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001777/0.09205, allocations: 179.1 kB / 480.4 MB, free: 156 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001476/0.09221, allocations: 74.22 kB / 480.5 MB, free: 84 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.547e-05/0.09227, allocations: 59.73 kB / 480.5 MB, free: 24 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000122/0.0924, allocations: 67.69 kB / 480.6 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.328e-05/0.09243, allocations: 12 kB / 480.6 MB, free: 15.95 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.865e-05/0.09247, allocations: 12 kB / 480.6 MB, free: 15.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.752e-05/0.0925, allocations: 23.92 kB / 480.7 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.535e-05/0.09258, allocations: 87.53 kB / 480.7 MB, free: 15.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001561/0.09274, allocations: 147.4 kB / 480.9 MB, free: 15.68 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.09275, allocations: 0 / 480.9 MB, free: 15.68 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.09276, allocations: 4 kB / 480.9 MB, free: 15.68 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.13e-06/0.09277, allocations: 0 / 480.9 MB, free: 15.68 MB / 350.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.00047/0.09324, allocations: 435 kB / 481.3 MB, free: 15.2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.19e-05/0.09328, allocations: 8.031 kB / 481.3 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.076e-05/0.09333, allocations: 46.73 kB / 481.4 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.307e-05/0.09337, allocations: 16.75 kB / 481.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000181/0.09356, allocations: 212 kB / 481.6 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.558e-05/0.09358, allocations: 8.375 kB / 481.6 MB, free: 14.87 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.719e-05/0.09361, allocations: 16.38 kB / 481.6 MB, free: 14.85 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002064/0.09382, allocations: 122.2 kB / 481.7 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.199e-05/0.09384, allocations: 3.938 kB / 481.7 MB, free: 14.72 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.633e-05/0.09387, allocations: 8 kB / 481.8 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.51e-06/0.09388, allocations: 4 kB / 481.8 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001338/0.09401, allocations: 67.97 kB / 481.8 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005698/0.09459, allocations: 452.2 kB / 482.3 MB, free: 14.15 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000188/0.09479, allocations: 114.7 kB / 482.4 MB, free: 14.03 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.381e-05/0.09487, allocations: 44.84 kB / 482.4 MB, free: 13.98 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.084e-05/0.09489, allocations: 4 kB / 482.4 MB, free: 13.98 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.638e-05/0.09492, allocations: 38.5 kB / 482.5 MB, free: 13.93 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.283e-06/0.09493, allocations: 4 kB / 482.5 MB, free: 13.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0002624/0.0952, allocations: 133.4 kB / 482.6 MB, free: 13.79 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.136e-05/0.09524, allocations: 55.41 kB / 482.6 MB, free: 13.73 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001206/0.09536, allocations: 153.7 kB / 482.8 MB, free: 13.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.531e-05/0.09538, allocations: 29.7 kB / 482.8 MB, free: 13.53 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.355e-05/0.09545, allocations: 119.7 kB / 482.9 MB, free: 13.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.175e-05/0.09549, allocations: 43.36 kB / 483 MB, free: 13.37 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.91e-05/0.09555, allocations: 33.7 kB / 483 MB, free: 13.33 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.121e-05/0.09565, allocations: 330.8 kB / 483.3 MB, free: 13 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.225e-05/0.09571, allocations: 31.98 kB / 483.4 MB, free: 12.96 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.166e-05/0.09577, allocations: 27.98 kB / 483.4 MB, free: 12.94 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003808/0.09616, allocations: 163.1 kB / 483.6 MB, free: 12.78 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.09617, allocations: 0 / 483.6 MB, free: 12.78 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0001931/0.09637, allocations: 139.6 kB / 483.7 MB, free: 12.64 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.212e-05/0.09639, allocations: 12 kB / 483.7 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.068e-06/0.0964, allocations: 0 / 483.7 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.046e-05/0.09642, allocations: 0 / 483.7 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001351/0.09656, allocations: 31.98 kB / 483.7 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.094e-06/0.09657, allocations: 3.938 kB / 483.7 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.061e-05/0.09664, allocations: 7.906 kB / 483.8 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.923e-06/0.09665, allocations: 0 / 483.8 MB, free: 12.58 MB / 350.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.0001757/0.09683, allocations: 149.6 kB / 483.9 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.435e-05/0.09687, allocations: 15.84 kB / 483.9 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.063e-05/0.09692, allocations: 20.7 kB / 483.9 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.09693, allocations: 3.984 kB / 483.9 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.397e-06/0.09693, allocations: 0 / 483.9 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.09694, allocations: 0 / 483.9 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002445/0.09719, allocations: 233.5 kB / 484.2 MB, free: 12.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.0972, allocations: 4 kB / 484.2 MB, free: 12.1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001203/0.09733, allocations: 27.86 kB / 484.2 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.09734, allocations: 0 / 484.2 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.145e-05/0.09735, allocations: 8 kB / 484.2 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/0.09736, allocations: 0 / 484.2 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.09737, allocations: 0 / 484.2 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002647/0.09764, allocations: 243.8 kB / 484.4 MB, free: 11.81 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.732e-05/0.09769, allocations: 92.88 kB / 484.5 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.037e-05/0.09772, allocations: 4 kB / 484.5 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.09e-05/0.09781, allocations: 4 kB / 484.5 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.881e-05/0.09783, allocations: 12.05 kB / 484.6 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.879e-06/0.09784, allocations: 0 / 484.6 MB, free: 11.68 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.238e-05/0.09792, allocations: 115.1 kB / 484.7 MB, free: 11.57 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.09792, allocations: 0 / 484.7 MB, free: 11.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002529/0.09818, allocations: 39.94 kB / 484.7 MB, free: 11.53 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.0004562/0.09865, allocations: 0.7824 MB / 485.5 MB, free: 10.72 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001812/0.09884, allocations: 95.97 kB / 485.6 MB, free: 10.63 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.09885, allocations: 3.938 kB / 485.6 MB, free: 10.62 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.969e-05/0.09891, allocations: 39.92 kB / 485.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002816/0.0992, allocations: 16 kB / 485.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001634/0.1008, allocations: 1.752 MB / 487.4 MB, free: 8.738 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002304/0.1011, allocations: 0.7124 MB / 488.1 MB, free: 8 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.282e-05/0.1011, allocations: 16.62 kB / 488.1 MB, free: 7.984 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.019e-05/0.1012, allocations: 39.42 kB / 488.2 MB, free: 7.945 MB / 350.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1012, allocations: 0 / 488.2 MB, free: 7.945 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01825/0.1195, allocations: 2.859 MB / 491 MB, free: 5.164 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.418/7.538, allocations: 8.844 kB / 491 MB, free: 5.156 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 & 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)