Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Components.LotkaVolterra.Examples.ThirdSpecies.conf.json 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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo", uses=false) Using package ModelicaByExample with version 0.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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) Running command: "" <> buildModelFMU(ModelicaByExample.Components.LotkaVolterra.Examples.ThirdSpecies,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_LotkaVolterra_Examples_ThirdSpecies",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaByExample.Components.LotkaVolterra.Examples.ThirdSpecies,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_LotkaVolterra_Examples_ThirdSpecies",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00128/0.001281, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00157/0.00157, allocations: 193.7 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.496/1.496, allocations: 205.1 MB / 222.4 MB, free: 4.59 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04204/0.04204, allocations: 8.114 MB / 277.9 MB, free: 13.16 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaByExample requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001444/0.001444, allocations: 71.89 kB / 337.3 MB, free: 26.42 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07787/0.07933, allocations: 48.3 MB / 385.6 MB, free: 10.07 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.LotkaVolterra.Examples.ThirdSpecies): time 0.001917/0.08129, allocations: 0.7089 MB / 386.3 MB, free: 9.355 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003884/0.0817, allocations: 175.2 kB / 386.5 MB, free: 9.184 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.069e-05/0.08177, allocations: 4 kB / 386.5 MB, free: 9.18 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.98e-05/0.08184, allocations: 19.75 kB / 386.5 MB, free: 9.16 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.505e-05/0.08193, allocations: 23.78 kB / 386.5 MB, free: 9.137 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001764/0.08211, allocations: 47.94 kB / 386.6 MB, free: 9.09 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001926/0.08232, allocations: 135.8 kB / 386.7 MB, free: 8.957 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002145/0.08254, allocations: 85.61 kB / 386.8 MB, free: 8.871 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.853e-05/0.0826, allocations: 59.72 kB / 386.8 MB, free: 8.812 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000111/0.08272, allocations: 75.62 kB / 386.9 MB, free: 8.738 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.594e-05/0.08276, allocations: 20 kB / 386.9 MB, free: 8.719 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.769e-05/0.08279, allocations: 20 kB / 387 MB, free: 8.699 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.87e-05/0.08286, allocations: 39.84 kB / 387 MB, free: 8.66 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.987e-05/0.08294, allocations: 75.58 kB / 387.1 MB, free: 8.586 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001965/0.08315, allocations: 187.3 kB / 387.3 MB, free: 8.402 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.08316, allocations: 0 / 387.3 MB, free: 8.402 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.657e-06/0.08317, allocations: 0 / 387.3 MB, free: 8.402 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.038e-05/0.08318, allocations: 3.938 kB / 387.3 MB, free: 8.398 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.0006424/0.08383, allocations: 475.5 kB / 387.7 MB, free: 7.879 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.069e-05/0.08388, allocations: 8.031 kB / 387.7 MB, free: 7.871 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.962e-05/0.08395, allocations: 54.73 kB / 387.8 MB, free: 7.809 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.871e-05/0.08401, allocations: 24.66 kB / 387.8 MB, free: 7.785 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002364/0.08425, allocations: 208.1 kB / 388 MB, free: 7.543 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.984e-05/0.08428, allocations: 16.75 kB / 388 MB, free: 7.527 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.923e-05/0.08433, allocations: 24.36 kB / 388.1 MB, free: 7.504 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002761/0.08461, allocations: 164.9 kB / 388.2 MB, free: 7.34 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.68e-05/0.08463, allocations: 3.938 kB / 388.2 MB, free: 7.336 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.12e-05/0.08466, allocations: 12 kB / 388.2 MB, free: 7.324 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.527e-05/0.08468, allocations: 4 kB / 388.2 MB, free: 7.32 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001909/0.08487, allocations: 119.6 kB / 388.4 MB, free: 7.203 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000829/0.08571, allocations: 0.5857 MB / 388.9 MB, free: 6.566 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002385/0.08596, allocations: 126.5 kB / 389.1 MB, free: 6.434 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001164/0.08609, allocations: 80.78 kB / 389.1 MB, free: 6.352 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.69e-05/0.08611, allocations: 4 kB / 389.1 MB, free: 6.348 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.978e-05/0.08615, allocations: 34.56 kB / 389.2 MB, free: 6.305 MB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 1.683e-06/0.08615, allocations: 0 / 389.2 MB, free: 6.305 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.0003348/0.08649, allocations: 177.6 kB / 389.4 MB, free: 6.129 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.304e-05/0.08655, allocations: 51.41 kB / 389.4 MB, free: 6.066 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001076/0.08666, allocations: 137.8 kB / 389.5 MB, free: 5.922 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.857e-05/0.08668, allocations: 29.7 kB / 389.6 MB, free: 5.887 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.976e-05/0.08676, allocations: 124.3 kB / 389.7 MB, free: 5.762 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.58e-05/0.08685, allocations: 63.09 kB / 389.7 MB, free: 5.699 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.763e-05/0.08691, allocations: 25.72 kB / 389.8 MB, free: 5.668 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001191/0.08703, allocations: 322.8 kB / 390.1 MB, free: 5.344 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.02e-05/0.08711, allocations: 43.92 kB / 390.1 MB, free: 5.301 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.407e-05/0.08718, allocations: 43.98 kB / 390.2 MB, free: 5.258 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001564/0.08734, allocations: 103 kB / 390.3 MB, free: 5.156 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.438e-06/0.08735, allocations: 4 kB / 390.3 MB, free: 5.152 MB / 286.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002207/0.08758, allocations: 152.2 kB / 390.4 MB, free: 5 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/0.0876, allocations: 4 kB / 390.4 MB, free: 4.996 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.08761, allocations: 3.938 kB / 390.4 MB, free: 4.992 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.742e-05/0.08763, allocations: 4 kB / 390.4 MB, free: 4.988 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000184/0.08782, allocations: 35.91 kB / 390.5 MB, free: 4.953 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.594e-06/0.08784, allocations: 3.938 kB / 390.5 MB, free: 4.949 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.431e-05/0.08789, allocations: 11.84 kB / 390.5 MB, free: 4.938 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.113e-05/0.08791, allocations: 8 kB / 390.5 MB, free: 4.93 MB / 286.1 MB 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 9.961e-05/0.08801, allocations: 121.8 kB / 390.6 MB, free: 4.801 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.397e-05/0.08805, allocations: 11.91 kB / 390.6 MB, free: 4.789 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.319e-05/0.0881, allocations: 16.5 kB / 390.6 MB, free: 4.773 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.347e-06/0.08811, allocations: 4 kB / 390.6 MB, free: 4.77 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.521e-05/0.08813, allocations: 3.984 kB / 390.7 MB, free: 4.766 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.067e-06/0.08814, allocations: 7.922 kB / 390.7 MB, free: 4.758 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002769/0.08842, allocations: 273.4 kB / 390.9 MB, free: 4.441 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-06/0.08843, allocations: 3.938 kB / 390.9 MB, free: 4.438 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001651/0.0886, allocations: 23.98 kB / 391 MB, free: 4.414 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.08861, allocations: 8 kB / 391 MB, free: 4.406 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.466e-05/0.08863, allocations: 7.984 kB / 391 MB, free: 4.398 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.08864, allocations: 0 / 391 MB, free: 4.398 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.08865, allocations: 0 / 391 MB, free: 4.398 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00034/0.08899, allocations: 291.2 kB / 391.3 MB, free: 4.098 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.272e-05/0.08905, allocations: 85.02 kB / 391.3 MB, free: 3.996 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.256e-05/0.08908, allocations: 8 kB / 391.3 MB, free: 3.988 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.883e-05/0.08917, allocations: 0 / 391.3 MB, free: 3.988 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.589e-05/0.0892, allocations: 19.97 kB / 391.4 MB, free: 3.969 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.556e-06/0.08922, allocations: 4 kB / 391.4 MB, free: 3.965 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.478e-05/0.08928, allocations: 102.7 kB / 391.5 MB, free: 3.867 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.08928, allocations: 0 / 391.5 MB, free: 3.867 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002435/0.08953, allocations: 35.75 kB / 391.5 MB, free: 3.832 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (rabbits.population,foxes.population,wolves.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 (15): * Single equations (assignments): 15 * 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.0005979/0.09013, allocations: 0.8334 MB / 392.3 MB, free: 2.969 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002334/0.09038, allocations: 115.8 kB / 392.4 MB, free: 2.855 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.09039, allocations: 0 / 392.4 MB, free: 2.855 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 7.755e-05/0.09047, allocations: 59.92 kB / 392.5 MB, free: 2.797 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004038/0.09088, allocations: 27.92 kB / 392.5 MB, free: 2.77 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001809/0.0927, allocations: 1.753 MB / 394.3 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003066/0.09302, allocations: 0.7274 MB / 395 MB, free: 188 kB / 286.1 MB Notification: Performance of simCode: alias equations: time 5.42e-05/0.09309, allocations: 12.88 kB / 395 MB, free: 176 kB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.259e-05/0.09316, allocations: 47.42 kB / 395.1 MB, free: 128 kB / 286.1 MB Notification: Performance of SimCode: time 3.21e-07/0.09317, allocations: 0 / 395.1 MB, free: 128 kB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02054/0.1137, allocations: 2.599 MB / 397.7 MB, free: 13.57 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.483/7.597, allocations: 3.859 kB / 397.7 MB, free: 13.57 MB / 302.1 MB (rm -f ModelicaByExample_ModelicaByExample.Components.LotkaVolterra.Examples.ThirdSpecies.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Components.LotkaVolterra.Examples.ThirdSpecies.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Components.LotkaVolterra.Examples.ThirdSpecies.pipe >> ../files/ModelicaByExample_ModelicaByExample.Components.LotkaVolterra.Examples.ThirdSpecies.sim & python3 -m fmpy simulate --output-file ModelicaByExample_ModelicaByExample.Components.LotkaVolterra.Examples.ThirdSpecies_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.04 ModelicaByExample_ModelicaByExample_Components_LotkaVolterra_Examples_ThirdSpecies.fmu > ModelicaByExample_ModelicaByExample.Components.LotkaVolterra.Examples.ThirdSpecies.pipe 2>&1)