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.01131/0.01131, allocations: 95.98 kB / 15.73 MB, free: 6.039 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002067/0.002067, allocations: 198.6 kB / 16.68 MB, free: 5.969 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.432/1.432, allocations: 205.1 MB / 222.6 MB, free: 4.52 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04292/0.04292, allocations: 8.112 MB / 278 MB, free: 13.08 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.001718/0.001718, allocations: 63.91 kB / 386.2 MB, free: 9.547 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3059/0.3076, allocations: 48.3 MB / 434.5 MB, free: 7.48 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.LotkaVolterra.Examples.ThirdSpecies): time 0.001981/0.3097, allocations: 0.7116 MB / 435.2 MB, free: 7.02 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003975/0.3101, allocations: 180.1 kB / 435.4 MB, free: 6.887 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.288e-05/0.3102, allocations: 3.719 kB / 435.4 MB, free: 6.887 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 6.252e-05/0.3102, allocations: 19.88 kB / 435.4 MB, free: 6.871 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.309e-05/0.3103, allocations: 21.08 kB / 435.4 MB, free: 6.852 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001935/0.3105, allocations: 51.94 kB / 435.5 MB, free: 6.824 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002021/0.3107, allocations: 136.3 kB / 435.6 MB, free: 6.762 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002264/0.311, allocations: 88.09 kB / 435.7 MB, free: 6.719 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.32e-05/0.3111, allocations: 61.23 kB / 435.7 MB, free: 6.684 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001028/0.3112, allocations: 74.47 kB / 435.8 MB, free: 6.641 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.387e-05/0.3112, allocations: 17.28 kB / 435.8 MB, free: 6.641 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.939e-05/0.3112, allocations: 18.84 kB / 435.9 MB, free: 6.641 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.393e-05/0.3113, allocations: 43.25 kB / 435.9 MB, free: 6.609 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.106e-05/0.3114, allocations: 77.98 kB / 436 MB, free: 6.555 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002578/0.3116, allocations: 185.2 kB / 436.2 MB, free: 6.48 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.3116, allocations: 0.7969 kB / 436.2 MB, free: 6.48 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.985e-06/0.3117, allocations: 0 / 436.2 MB, free: 6.48 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.306e-06/0.3117, allocations: 7.938 kB / 436.2 MB, free: 6.473 MB / 318.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.000569/0.3122, allocations: 469.1 kB / 436.6 MB, free: 6.039 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.631e-05/0.3123, allocations: 9.469 kB / 436.6 MB, free: 6.039 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.167e-05/0.3124, allocations: 52.88 kB / 436.7 MB, free: 5.988 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.844e-05/0.3124, allocations: 23.33 kB / 436.7 MB, free: 5.977 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001806/0.3126, allocations: 215.3 kB / 436.9 MB, free: 5.754 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.799e-05/0.3126, allocations: 20.59 kB / 436.9 MB, free: 5.742 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.214e-05/0.3127, allocations: 20.89 kB / 437 MB, free: 5.734 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003238/0.313, allocations: 167.7 kB / 437.1 MB, free: 5.652 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.788e-05/0.313, allocations: 11.83 kB / 437.1 MB, free: 5.641 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.104e-05/0.3131, allocations: 10.69 kB / 437.1 MB, free: 5.633 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.857e-06/0.3131, allocations: 4.281 kB / 437.1 MB, free: 5.633 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002089/0.3133, allocations: 113.1 kB / 437.3 MB, free: 5.594 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008853/0.3142, allocations: 0.5743 MB / 437.8 MB, free: 5.18 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002657/0.3145, allocations: 124.6 kB / 437.9 MB, free: 5.113 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001132/0.3146, allocations: 82.77 kB / 438 MB, free: 5.07 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.966e-05/0.3146, allocations: 3.203 kB / 438 MB, free: 5.07 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.938e-05/0.3146, allocations: 36.58 kB / 438.1 MB, free: 5.027 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.483e-06/0.3146, allocations: 4 kB / 438.1 MB, free: 5.023 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0003529/0.315, allocations: 174.4 kB / 438.2 MB, free: 4.934 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.763e-05/0.315, allocations: 54.09 kB / 438.3 MB, free: 4.871 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.984e-05/0.3151, allocations: 131.2 kB / 438.4 MB, free: 4.758 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.651e-05/0.3152, allocations: 26.95 kB / 438.4 MB, free: 4.727 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.616e-05/0.3152, allocations: 135.8 kB / 438.6 MB, free: 4.605 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.956e-05/0.3153, allocations: 53.16 kB / 438.6 MB, free: 4.562 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.108e-05/0.3153, allocations: 30.69 kB / 438.7 MB, free: 4.539 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.517e-05/0.3154, allocations: 325 kB / 439 MB, free: 4.219 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.294e-05/0.3155, allocations: 41.14 kB / 439 MB, free: 4.203 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.576e-05/0.3155, allocations: 42.08 kB / 439.1 MB, free: 4.188 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000145/0.3157, allocations: 103.3 kB / 439.2 MB, free: 4.137 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.3157, allocations: 0 / 439.2 MB, free: 4.137 MB / 318.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002031/0.3159, allocations: 149 kB / 439.3 MB, free: 4.055 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.579e-05/0.3159, allocations: 5.406 kB / 439.3 MB, free: 4.055 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.643e-06/0.3159, allocations: 4.516 kB / 439.3 MB, free: 4.051 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.45e-05/0.3159, allocations: 5.125 kB / 439.3 MB, free: 4.047 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000201/0.3162, allocations: 43.33 kB / 439.4 MB, free: 4.035 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.202e-06/0.3162, allocations: 1.188 kB / 439.4 MB, free: 4.035 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.25e-05/0.3162, allocations: 10.41 kB / 439.4 MB, free: 4.027 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.008e-05/0.3162, allocations: 10.2 kB / 439.4 MB, free: 4.02 MB / 318.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.51e-05/0.3163, allocations: 125.4 kB / 439.5 MB, free: 3.895 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.636e-05/0.3164, allocations: 18.2 kB / 439.5 MB, free: 3.883 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.51e-05/0.3164, allocations: 19.98 kB / 439.5 MB, free: 3.867 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.3164, allocations: 1.75 kB / 439.5 MB, free: 3.867 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.3164, allocations: 1.125 kB / 439.5 MB, free: 3.867 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.3165, allocations: 8.5 kB / 439.6 MB, free: 3.859 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002629/0.3167, allocations: 266 kB / 439.8 MB, free: 3.625 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.3167, allocations: 0.6094 kB / 439.8 MB, free: 3.625 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001772/0.3169, allocations: 29.05 kB / 439.8 MB, free: 3.625 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.3169, allocations: 0 / 439.8 MB, free: 3.625 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.313e-05/0.3169, allocations: 2.281 kB / 439.8 MB, free: 3.625 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.3169, allocations: 0.6094 kB / 439.8 MB, free: 3.625 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.317, allocations: 0 / 439.8 MB, free: 3.625 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003208/0.3173, allocations: 308.8 kB / 440.2 MB, free: 3.41 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.624e-05/0.3173, allocations: 88.84 kB / 440.2 MB, free: 3.309 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.157e-05/0.3173, allocations: 6.688 kB / 440.2 MB, free: 3.305 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.631e-05/0.3174, allocations: 1.25 kB / 440.2 MB, free: 3.305 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.154e-05/0.3175, allocations: 11.92 kB / 440.3 MB, free: 3.301 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.012e-05/0.3175, allocations: 10.86 kB / 440.3 MB, free: 3.293 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.285e-05/0.3175, allocations: 95.42 kB / 440.4 MB, free: 3.215 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3175, allocations: 0 / 440.4 MB, free: 3.215 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002546/0.3178, allocations: 38.47 kB / 440.4 MB, free: 3.199 MB / 318.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.000474/0.3183, allocations: 0.8298 MB / 441.2 MB, free: 2.461 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000231/0.3185, allocations: 107 kB / 441.3 MB, free: 2.426 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/0.3185, allocations: 4.641 kB / 441.3 MB, free: 2.422 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 7.977e-05/0.3186, allocations: 58.14 kB / 441.4 MB, free: 2.406 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003887/0.319, allocations: 36.16 kB / 441.4 MB, free: 2.387 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001679/0.3207, allocations: 1.759 MB / 443.2 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001947/0.3209, allocations: 0.7244 MB / 443.9 MB, free: 260 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 6.956e-05/0.321, allocations: 9.406 kB / 443.9 MB, free: 256 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.502e-05/0.3211, allocations: 49.11 kB / 444 MB, free: 216 kB / 318.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3211, allocations: 0 / 444 MB, free: 216 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02122/0.3423, allocations: 2.665 MB / 446.6 MB, free: 15.64 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.934/8.277, allocations: 5.375 kB / 446.6 MB, free: 15.64 MB / 334.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)