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.004745/0.004745, allocations: 96.95 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.001284/0.001284, allocations: 200.9 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.481/1.481, allocations: 205.1 MB / 222.6 MB, free: 4.523 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04918/0.04918, allocations: 8.113 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.002202/0.002202, allocations: 75.89 kB / 386.2 MB, free: 9.559 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2608/0.263, allocations: 48.3 MB / 434.5 MB, free: 7.461 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.LotkaVolterra.Examples.ClassicLotkaVolterra): time 0.001853/0.2649, allocations: 0.5559 MB / 435 MB, free: 7.113 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002614/0.2652, allocations: 120.3 kB / 435.1 MB, free: 7.027 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.517e-05/0.2653, allocations: 1.375 kB / 435.1 MB, free: 7.027 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.793e-05/0.2653, allocations: 10 kB / 435.2 MB, free: 7.02 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.406e-05/0.2654, allocations: 9.25 kB / 435.2 MB, free: 7.012 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001363/0.2656, allocations: 36.61 kB / 435.2 MB, free: 6.988 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00012/0.2657, allocations: 67.81 kB / 435.3 MB, free: 6.957 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001313/0.2658, allocations: 45.61 kB / 435.3 MB, free: 6.934 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.324e-05/0.2659, allocations: 31.94 kB / 435.3 MB, free: 6.914 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.519e-05/0.2659, allocations: 33.42 kB / 435.4 MB, free: 6.895 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.131e-05/0.266, allocations: 9.094 kB / 435.4 MB, free: 6.895 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.654e-05/0.266, allocations: 8.75 kB / 435.4 MB, free: 6.895 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.194e-05/0.266, allocations: 18.47 kB / 435.4 MB, free: 6.883 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.605e-05/0.266, allocations: 39.42 kB / 435.5 MB, free: 6.855 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001321/0.2662, allocations: 90.08 kB / 435.5 MB, free: 6.82 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.2662, allocations: 4 kB / 435.5 MB, free: 6.816 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.2662, allocations: 1.094 kB / 435.5 MB, free: 6.816 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.829e-06/0.2662, allocations: 0 / 435.5 MB, free: 6.816 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.0003794/0.2666, allocations: 391.8 kB / 435.9 MB, free: 6.422 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.941e-05/0.2666, allocations: 11.17 kB / 435.9 MB, free: 6.422 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.435e-05/0.2667, allocations: 42.62 kB / 436 MB, free: 6.375 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.783e-05/0.2667, allocations: 15.94 kB / 436 MB, free: 6.367 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001395/0.2669, allocations: 184.5 kB / 436.2 MB, free: 6.16 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.058e-05/0.2669, allocations: 9.156 kB / 436.2 MB, free: 6.156 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.147e-05/0.2669, allocations: 15.25 kB / 436.2 MB, free: 6.148 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001711/0.2671, allocations: 94.98 kB / 436.3 MB, free: 6.09 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.457e-05/0.2671, allocations: 1.562 kB / 436.3 MB, free: 6.09 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.279e-05/0.2671, allocations: 5 kB / 436.3 MB, free: 6.086 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.671e-06/0.2672, allocations: 2.344 kB / 436.3 MB, free: 6.086 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001007/0.2673, allocations: 50.78 kB / 436.4 MB, free: 6.07 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004854/0.2677, allocations: 407.7 kB / 436.7 MB, free: 5.727 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001603/0.2679, allocations: 90.66 kB / 436.8 MB, free: 5.672 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.909e-05/0.268, allocations: 39.2 kB / 436.9 MB, free: 5.652 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.628e-06/0.268, allocations: 5.5 kB / 436.9 MB, free: 5.648 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.461e-05/0.268, allocations: 35.36 kB / 436.9 MB, free: 5.605 MB / 318.1 MB Notification: Performance of pre-optimization done (n=8): time 1.223e-06/0.268, allocations: 1.156 kB / 436.9 MB, free: 5.605 MB / 318.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002119/0.2682, allocations: 98.86 kB / 437 MB, free: 5.547 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.703e-05/0.2683, allocations: 56.38 kB / 437.1 MB, free: 5.48 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.71e-05/0.2683, allocations: 116 kB / 437.2 MB, free: 5.371 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.063e-05/0.2683, allocations: 30.52 kB / 437.2 MB, free: 5.336 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.565e-05/0.2684, allocations: 107.7 kB / 437.3 MB, free: 5.234 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.465e-05/0.2684, allocations: 30.16 kB / 437.3 MB, free: 5.211 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.513e-05/0.2685, allocations: 21.95 kB / 437.4 MB, free: 5.191 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.099e-05/0.2685, allocations: 322.2 kB / 437.7 MB, free: 4.871 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.077e-05/0.2685, allocations: 20.22 kB / 437.7 MB, free: 4.863 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.436e-05/0.2686, allocations: 21.56 kB / 437.7 MB, free: 4.855 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.474e-05/0.2687, allocations: 54.11 kB / 437.8 MB, free: 4.824 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.2687, allocations: 0.6094 kB / 437.8 MB, free: 4.824 MB / 318.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000124/0.2688, allocations: 92.7 kB / 437.9 MB, free: 4.766 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.331e-05/0.2688, allocations: 5.328 kB / 437.9 MB, free: 4.766 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.807e-06/0.2688, allocations: 0 / 437.9 MB, free: 4.766 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.559e-05/0.2689, allocations: 1.188 kB / 437.9 MB, free: 4.766 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001011/0.269, allocations: 17.42 kB / 437.9 MB, free: 4.766 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.939e-06/0.269, allocations: 7.875 kB / 437.9 MB, free: 4.758 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.447e-05/0.269, allocations: 13.94 kB / 437.9 MB, free: 4.746 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.292e-06/0.269, allocations: 6.188 kB / 437.9 MB, free: 4.742 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.304e-05/0.2691, allocations: 126.9 kB / 438 MB, free: 4.613 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.537e-05/0.2691, allocations: 3.219 kB / 438 MB, free: 4.613 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.888e-05/0.2691, allocations: 10.83 kB / 438.1 MB, free: 4.605 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.2691, allocations: 1.312 kB / 438.1 MB, free: 4.605 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.2692, allocations: 9.094 kB / 438.1 MB, free: 4.598 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.2692, allocations: 0.9375 kB / 438.1 MB, free: 4.598 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001623/0.2693, allocations: 204.1 kB / 438.3 MB, free: 4.387 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.185e-06/0.2693, allocations: 5.188 kB / 438.3 MB, free: 4.383 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.563e-05/0.2694, allocations: 18.09 kB / 438.3 MB, free: 4.379 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.2694, allocations: 0.7812 kB / 438.3 MB, free: 4.379 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.137e-06/0.2695, allocations: 0.625 kB / 438.3 MB, free: 4.379 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.2695, allocations: 0.875 kB / 438.3 MB, free: 4.379 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.2695, allocations: 3.938 kB / 438.3 MB, free: 4.375 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001917/0.2697, allocations: 213.9 kB / 438.5 MB, free: 4.203 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.788e-05/0.2697, allocations: 84.36 kB / 438.6 MB, free: 4.105 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.601e-05/0.2697, allocations: 5.219 kB / 438.6 MB, free: 4.102 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.092e-05/0.2698, allocations: 0.7031 kB / 438.6 MB, free: 4.102 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.222e-05/0.2698, allocations: 7.953 kB / 438.6 MB, free: 4.098 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.406e-06/0.2698, allocations: 6.797 kB / 438.6 MB, free: 4.094 MB / 318.1 MB Notification: Performance of sorting global known variables: time 2.966e-05/0.2699, allocations: 83.98 kB / 438.7 MB, free: 4.02 MB / 318.1 MB Notification: Performance of sort global known variables: time 2e-07/0.2699, allocations: 0 / 438.7 MB, free: 4.02 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002207/0.2701, allocations: 23.58 kB / 438.7 MB, free: 4.008 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.0003006/0.2704, allocations: 0.7407 MB / 439.5 MB, free: 3.312 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001297/0.2705, allocations: 61.27 kB / 439.5 MB, free: 3.289 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.2705, allocations: 0 / 439.5 MB, free: 3.289 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 3.868e-05/0.2706, allocations: 26.98 kB / 439.5 MB, free: 3.281 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003199/0.2709, allocations: 17.84 kB / 439.6 MB, free: 3.273 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009607/0.2719, allocations: 1.427 MB / 441 MB, free: 1.992 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001217/0.272, allocations: 0.6997 MB / 441.7 MB, free: 1.293 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.945e-05/0.2721, allocations: 7.531 kB / 441.7 MB, free: 1.289 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.516e-05/0.2721, allocations: 26.28 kB / 441.7 MB, free: 1.27 MB / 318.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2721, allocations: 0 / 441.7 MB, free: 1.27 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02402/0.2961, allocations: 1.884 MB / 443.6 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.579/7.875, allocations: 24.14 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)