Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Components.LotkaVolterra.Examples.ClassicLotkaVolterra.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.ClassicLotkaVolterra,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_LotkaVolterra_Examples_ClassicLotkaVolterra",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaByExample.Components.LotkaVolterra.Examples.ClassicLotkaVolterra,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_LotkaVolterra_Examples_ClassicLotkaVolterra",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.009244/0.009244, allocations: 98.34 kB / 15.73 MB, free: 6.008 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.001809/0.001809, allocations: 195.1 kB / 16.68 MB, free: 5.934 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.739/1.739, allocations: 205.1 MB / 222.6 MB, free: 4.527 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04571/0.04571, allocations: 8.112 MB / 278 MB, free: 13.09 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.001608/0.001608, allocations: 67.91 kB / 386.2 MB, free: 9.559 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2807/0.2823, allocations: 48.29 MB / 434.5 MB, free: 7.461 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.LotkaVolterra.Examples.ClassicLotkaVolterra): time 0.001822/0.2842, allocations: 0.5629 MB / 435 MB, free: 7.109 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002919/0.2845, allocations: 119.6 kB / 435.1 MB, free: 7.023 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.051e-05/0.2846, allocations: 1.281 kB / 435.1 MB, free: 7.023 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.795e-05/0.2847, allocations: 10.05 kB / 435.2 MB, free: 7.016 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.984e-05/0.2847, allocations: 13.16 kB / 435.2 MB, free: 7.004 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001416/0.2849, allocations: 33.19 kB / 435.2 MB, free: 6.984 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001308/0.285, allocations: 71.19 kB / 435.3 MB, free: 6.949 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001339/0.2852, allocations: 41 kB / 435.3 MB, free: 6.93 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.246e-05/0.2852, allocations: 33.62 kB / 435.3 MB, free: 6.91 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.847e-05/0.2853, allocations: 33.39 kB / 435.4 MB, free: 6.891 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.06e-05/0.2854, allocations: 8.25 kB / 435.4 MB, free: 6.891 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.336e-05/0.2854, allocations: 9.625 kB / 435.4 MB, free: 6.891 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.801e-05/0.2854, allocations: 22.23 kB / 435.4 MB, free: 6.875 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.957e-05/0.2855, allocations: 38.2 kB / 435.5 MB, free: 6.848 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001322/0.2856, allocations: 90.7 kB / 435.5 MB, free: 6.812 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.2856, allocations: 4 kB / 435.5 MB, free: 6.809 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.2856, allocations: 1.375 kB / 435.5 MB, free: 6.809 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.95e-06/0.2856, allocations: 0 / 435.5 MB, free: 6.809 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: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0003742/0.286, allocations: 392.9 kB / 435.9 MB, free: 6.414 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.577e-05/0.2861, allocations: 9.031 kB / 435.9 MB, free: 6.414 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.832e-05/0.2861, allocations: 39.84 kB / 436 MB, free: 6.371 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.435e-05/0.2861, allocations: 15.59 kB / 436 MB, free: 6.363 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001257/0.2863, allocations: 189.1 kB / 436.2 MB, free: 6.152 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.205e-05/0.2863, allocations: 8.031 kB / 436.2 MB, free: 6.148 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.541e-05/0.2863, allocations: 15.5 kB / 436.2 MB, free: 6.141 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001765/0.2865, allocations: 96.28 kB / 436.3 MB, free: 6.082 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.247e-05/0.2865, allocations: 0 / 436.3 MB, free: 6.082 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.289e-05/0.2865, allocations: 1.5 kB / 436.3 MB, free: 6.082 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.2866, allocations: 2.281 kB / 436.3 MB, free: 6.082 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001019/0.2867, allocations: 55.28 kB / 436.3 MB, free: 6.062 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000509/0.2872, allocations: 402.8 kB / 436.7 MB, free: 5.723 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001662/0.2874, allocations: 87.45 kB / 436.8 MB, free: 5.672 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.083e-05/0.2874, allocations: 45.58 kB / 436.9 MB, free: 5.645 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.35e-05/0.2874, allocations: 2.156 kB / 436.9 MB, free: 5.645 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.767e-05/0.2875, allocations: 39.88 kB / 436.9 MB, free: 5.598 MB / 318.1 MB Notification: Performance of pre-optimization done (n=8): time 1.212e-06/0.2875, allocations: 0 / 436.9 MB, free: 5.598 MB / 318.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002124/0.2877, allocations: 99.56 kB / 437 MB, free: 5.539 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.327e-05/0.2877, allocations: 57.03 kB / 437.1 MB, free: 5.473 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.786e-05/0.2878, allocations: 115.7 kB / 437.2 MB, free: 5.363 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.151e-05/0.2878, allocations: 31.33 kB / 437.2 MB, free: 5.328 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.249e-05/0.2878, allocations: 103.6 kB / 437.3 MB, free: 5.23 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.549e-05/0.2879, allocations: 28.94 kB / 437.3 MB, free: 5.207 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.894e-05/0.2879, allocations: 22.03 kB / 437.4 MB, free: 5.188 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.483e-05/0.288, allocations: 322.8 kB / 437.7 MB, free: 4.867 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.965e-05/0.288, allocations: 20.19 kB / 437.7 MB, free: 4.859 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.375e-05/0.2881, allocations: 25.91 kB / 437.7 MB, free: 4.848 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.778e-05/0.2881, allocations: 49.84 kB / 437.8 MB, free: 4.82 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.2881, allocations: 1.062 kB / 437.8 MB, free: 4.82 MB / 318.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001195/0.2883, allocations: 96.45 kB / 437.9 MB, free: 4.758 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/0.2883, allocations: 4.375 kB / 437.9 MB, free: 4.758 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.2883, allocations: 1.031 kB / 437.9 MB, free: 4.758 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.592e-05/0.2883, allocations: 2.391 kB / 437.9 MB, free: 4.758 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001155/0.2884, allocations: 19.39 kB / 437.9 MB, free: 4.754 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.623e-06/0.2885, allocations: 6.016 kB / 437.9 MB, free: 4.75 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.78e-05/0.2885, allocations: 20.8 kB / 437.9 MB, free: 4.73 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.274e-06/0.2885, allocations: 2.25 kB / 437.9 MB, free: 4.73 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 (10): * Single equations (assignments): 10 * 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 5.875e-05/0.2886, allocations: 121.9 kB / 438 MB, free: 4.605 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.07e-05/0.2886, allocations: 4.297 kB / 438 MB, free: 4.605 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.129e-05/0.2886, allocations: 9.422 kB / 438.1 MB, free: 4.598 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.2887, allocations: 1.953 kB / 438.1 MB, free: 4.598 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.2887, allocations: 4.438 kB / 438.1 MB, free: 4.594 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/0.2887, allocations: 1.375 kB / 438.1 MB, free: 4.594 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000178/0.2889, allocations: 211.4 kB / 438.3 MB, free: 4.375 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.2889, allocations: 5.375 kB / 438.3 MB, free: 4.371 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.951e-05/0.289, allocations: 13.72 kB / 438.3 MB, free: 4.371 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.215e-06/0.289, allocations: 1.375 kB / 438.3 MB, free: 4.371 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.108e-05/0.289, allocations: 2.031 kB / 438.3 MB, free: 4.371 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.289, allocations: 0 / 438.3 MB, free: 4.371 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.866e-06/0.289, allocations: 4.594 kB / 438.3 MB, free: 4.367 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001922/0.2892, allocations: 205.4 kB / 438.5 MB, free: 4.203 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.208e-05/0.2892, allocations: 88.36 kB / 438.6 MB, free: 4.102 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.748e-05/0.2893, allocations: 4.766 kB / 438.6 MB, free: 4.098 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.671e-05/0.2893, allocations: 5.375 kB / 438.6 MB, free: 4.094 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.142e-05/0.2894, allocations: 8.562 kB / 438.6 MB, free: 4.09 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.232e-06/0.2894, allocations: 1.375 kB / 438.6 MB, free: 4.09 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.335e-05/0.2894, allocations: 89.06 kB / 438.7 MB, free: 4.012 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2894, allocations: 0 / 438.7 MB, free: 4.012 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000231/0.2897, allocations: 18.89 kB / 438.7 MB, free: 4.004 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (rabbits.population,foxes.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 (8): * Single equations (assignments): 8 * 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.0003564/0.29, allocations: 0.7511 MB / 439.5 MB, free: 3.301 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001464/0.2902, allocations: 59.09 kB / 439.5 MB, free: 3.277 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.2902, allocations: 0 / 439.5 MB, free: 3.277 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4.025e-05/0.2902, allocations: 28.3 kB / 439.5 MB, free: 3.27 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003497/0.2906, allocations: 17.53 kB / 439.6 MB, free: 3.262 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001097/0.2917, allocations: 1.426 MB / 441 MB, free: 1.98 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001523/0.2919, allocations: 0.7 MB / 441.7 MB, free: 1.281 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 5.002e-05/0.2919, allocations: 5.203 kB / 441.7 MB, free: 1.281 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.363e-05/0.292, allocations: 25.53 kB / 441.7 MB, free: 1.262 MB / 318.1 MB Notification: Performance of SimCode: time 4.41e-07/0.292, allocations: 0 / 441.7 MB, free: 1.262 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02189/0.3139, allocations: 1.877 MB / 443.6 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.991/8.305, allocations: 20.66 kB / 443.6 MB, free: 0.7617 MB / 318.1 MB (rm -f ModelicaByExample_ModelicaByExample.Components.LotkaVolterra.Examples.ClassicLotkaVolterra.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Components.LotkaVolterra.Examples.ClassicLotkaVolterra.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Components.LotkaVolterra.Examples.ClassicLotkaVolterra.pipe >> ../files/ModelicaByExample_ModelicaByExample.Components.LotkaVolterra.Examples.ClassicLotkaVolterra.sim & python3 -m fmpy simulate --output-file ModelicaByExample_ModelicaByExample.Components.LotkaVolterra.Examples.ClassicLotkaVolterra_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_ClassicLotkaVolterra.fmu > ModelicaByExample_ModelicaByExample.Components.LotkaVolterra.Examples.ClassicLotkaVolterra.pipe 2>&1)