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.09756/0.09756, allocations: 15.27 MB / 30.54 MB, free: 5.715 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.0008229/0.0008231, allocations: 114 kB / 35.58 MB, free: 1.129 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.001243/0.001244, allocations: 172.5 kB / 40.69 MB, free: 4.746 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.227/1.227, allocations: 223.3 MB / 268.9 MB, free: 2.027 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1227/0.1227, allocations: 23.38 MB / 347.7 MB, free: 6.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004594/0.0004594, allocations: 16 kB / 420.3 MB, free: 14.02 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2256/0.2261, allocations: 60.48 MB / 480.8 MB, free: 36.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Population.Examples.PredatorPrey): time 0.001784/0.2279, allocations: 2.02 MB / 482.8 MB, free: 34.34 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002363/0.2281, allocations: 143.5 kB / 483 MB, free: 34.2 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.947e-05/0.2282, allocations: 4 kB / 483 MB, free: 34.2 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001025/0.2284, allocations: 15.86 kB / 483 MB, free: 34.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.295e-05/0.2284, allocations: 47.61 kB / 483 MB, free: 34.14 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001239/0.2286, allocations: 35.91 kB / 483.1 MB, free: 34.1 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001487/0.2287, allocations: 167.1 kB / 483.2 MB, free: 33.94 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001324/0.2289, allocations: 68.62 kB / 483.3 MB, free: 33.87 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.318e-05/0.2289, allocations: 47.8 kB / 483.3 MB, free: 33.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.647e-05/0.229, allocations: 51.72 kB / 483.4 MB, free: 33.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.219e-05/0.229, allocations: 8 kB / 483.4 MB, free: 33.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.969e-05/0.2291, allocations: 4 kB / 483.4 MB, free: 33.76 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.135e-05/0.2291, allocations: 19.92 kB / 483.4 MB, free: 33.74 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.734e-05/0.2292, allocations: 93.25 kB / 483.5 MB, free: 33.64 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001139/0.2293, allocations: 135.5 kB / 483.7 MB, free: 33.51 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.2293, allocations: 0 / 483.7 MB, free: 33.51 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.2293, allocations: 0 / 483.7 MB, free: 33.51 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.569e-06/0.2293, allocations: 8 kB / 483.7 MB, free: 33.5 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.0003661/0.2297, allocations: 415 kB / 484.1 MB, free: 33.05 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.568e-05/0.2297, allocations: 11.97 kB / 484.1 MB, free: 33.04 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.667e-05/0.2298, allocations: 42.75 kB / 484.1 MB, free: 32.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.04e-05/0.2298, allocations: 24.73 kB / 484.1 MB, free: 32.96 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00015/0.23, allocations: 208 kB / 484.3 MB, free: 32.72 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.432e-05/0.23, allocations: 8.375 kB / 484.4 MB, free: 32.71 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.97e-05/0.23, allocations: 12.38 kB / 484.4 MB, free: 32.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001866/0.2302, allocations: 122.7 kB / 484.5 MB, free: 32.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.221e-05/0.2302, allocations: 3.938 kB / 484.5 MB, free: 32.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.19e-05/0.2302, allocations: 8 kB / 484.5 MB, free: 32.56 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.2302, allocations: 0 / 484.5 MB, free: 32.56 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001196/0.2304, allocations: 79.89 kB / 484.6 MB, free: 32.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004701/0.2308, allocations: 460.1 kB / 485 MB, free: 31.98 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000166/0.231, allocations: 106.7 kB / 485.1 MB, free: 31.87 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.222e-05/0.2311, allocations: 48.84 kB / 485.2 MB, free: 31.82 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.151e-05/0.2311, allocations: 0 / 485.2 MB, free: 31.82 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.45e-05/0.2311, allocations: 38.5 kB / 485.2 MB, free: 31.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.292e-06/0.2312, allocations: 3.938 kB / 485.2 MB, free: 31.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0002413/0.2314, allocations: 137.4 kB / 485.4 MB, free: 31.63 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.161e-05/0.2314, allocations: 51.41 kB / 485.4 MB, free: 31.57 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.138e-05/0.2315, allocations: 152.9 kB / 485.6 MB, free: 31.41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.318e-06/0.2315, allocations: 25.7 kB / 485.6 MB, free: 31.38 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.079e-05/0.2316, allocations: 123.8 kB / 485.7 MB, free: 31.25 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.468e-05/0.2316, allocations: 47.28 kB / 485.7 MB, free: 31.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.56e-05/0.2316, allocations: 21.72 kB / 485.8 MB, free: 31.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.308e-05/0.2317, allocations: 322.8 kB / 486.1 MB, free: 30.86 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.934e-05/0.2317, allocations: 31.98 kB / 486.1 MB, free: 30.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.467e-05/0.2318, allocations: 35.98 kB / 486.1 MB, free: 30.79 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003293/0.2321, allocations: 150.6 kB / 486.3 MB, free: 30.64 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.2321, allocations: 4 kB / 486.3 MB, free: 30.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0001584/0.2323, allocations: 141.3 kB / 486.4 MB, free: 30.49 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.145e-05/0.2323, allocations: 6.812 kB / 486.4 MB, free: 30.49 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.556e-06/0.2323, allocations: 0 / 486.4 MB, free: 30.49 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.128e-05/0.2324, allocations: 0 / 486.4 MB, free: 30.49 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001229/0.2325, allocations: 31.92 kB / 486.5 MB, free: 30.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.919e-06/0.2325, allocations: 0 / 486.5 MB, free: 30.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.931e-05/0.2326, allocations: 19.84 kB / 486.5 MB, free: 30.44 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.544e-06/0.2326, allocations: 4 kB / 486.5 MB, free: 30.43 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.0001561/0.2328, allocations: 142.7 kB / 486.6 MB, free: 30.29 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.01e-05/0.2328, allocations: 15.84 kB / 486.7 MB, free: 30.27 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.48e-05/0.2328, allocations: 16.72 kB / 486.7 MB, free: 30.25 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.2328, allocations: 4 kB / 486.7 MB, free: 30.24 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.2328, allocations: 0 / 486.7 MB, free: 30.24 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.2329, allocations: 3.984 kB / 486.7 MB, free: 30.24 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001745/0.233, allocations: 233.4 kB / 486.9 MB, free: 29.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.233, allocations: 4 kB / 486.9 MB, free: 29.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001059/0.2331, allocations: 23.94 kB / 486.9 MB, free: 29.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.2332, allocations: 7.984 kB / 486.9 MB, free: 29.93 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.806e-06/0.2332, allocations: 3.938 kB / 486.9 MB, free: 29.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.2332, allocations: 0 / 486.9 MB, free: 29.92 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.2332, allocations: 3.984 kB / 486.9 MB, free: 29.92 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002026/0.2334, allocations: 239.5 kB / 487.2 MB, free: 29.67 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.884e-05/0.2334, allocations: 92.8 kB / 487.3 MB, free: 29.56 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.966e-05/0.2335, allocations: 15.92 kB / 487.3 MB, free: 29.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.166e-05/0.2335, allocations: 0 / 487.3 MB, free: 29.54 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.478e-05/0.2336, allocations: 4 kB / 487.3 MB, free: 29.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.932e-06/0.2336, allocations: 8 kB / 487.3 MB, free: 29.53 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.982e-05/0.2336, allocations: 118.6 kB / 487.4 MB, free: 29.42 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2336, allocations: 4 kB / 487.4 MB, free: 29.41 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002346/0.2339, allocations: 36 kB / 487.5 MB, free: 29.38 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.0003102/0.2342, allocations: 0.7785 MB / 488.2 MB, free: 28.57 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000138/0.2343, allocations: 87.91 kB / 488.3 MB, free: 28.49 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.2343, allocations: 64 / 488.3 MB, free: 28.49 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.803e-05/0.2344, allocations: 40.59 kB / 488.4 MB, free: 28.45 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002814/0.2347, allocations: 32.14 kB / 488.4 MB, free: 28.42 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001293/0.236, allocations: 1.836 MB / 490.2 MB, free: 26.5 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001113/0.2361, allocations: 0.7129 MB / 490.9 MB, free: 25.76 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.541e-05/0.2362, allocations: 17.42 kB / 491 MB, free: 25.74 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.397e-05/0.2362, allocations: 39.38 kB / 491 MB, free: 25.7 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2362, allocations: 0 / 491 MB, free: 25.7 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01997/0.2562, allocations: 2.872 MB / 493.9 MB, free: 22.96 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000129/0.2564, allocations: 191.3 kB / 494.1 MB, free: 22.71 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.163/2.419, allocations: 0 / 494.1 MB, free: 22.71 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)