Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Subsystems.LotkaVolterra.Examples.UnconnectedPopulations.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.Subsystems.LotkaVolterra.Examples.UnconnectedPopulations,fileNamePrefix="ModelicaByExample_ModelicaByExample_Subsystems_LotkaVolterra_Examples_UnconnectedPopulations",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaByExample.Subsystems.LotkaVolterra.Examples.UnconnectedPopulations,fileNamePrefix="ModelicaByExample_ModelicaByExample_Subsystems_LotkaVolterra_Examples_UnconnectedPopulations",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.001725/0.001725, 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.002113/0.002113, allocations: 198.3 kB / 16.54 MB, free: 6.672 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.424/1.424, allocations: 205.1 MB / 222.4 MB, free: 4.598 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04198/0.04198, allocations: 8.111 MB / 277.9 MB, free: 13.17 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: Intervals = 0.008 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.001618/0.001618, allocations: 75.91 kB / 337.3 MB, free: 26.42 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08579/0.08742, allocations: 48.3 MB / 385.6 MB, free: 10.07 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Subsystems.LotkaVolterra.Examples.UnconnectedPopulations): time 0.00257/0.09002, allocations: 1.203 MB / 386.8 MB, free: 8.859 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007755/0.09083, allocations: 382.6 kB / 387.2 MB, free: 8.484 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001806/0.09103, allocations: 4 kB / 387.2 MB, free: 8.48 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001267/0.09118, allocations: 51.36 kB / 387.2 MB, free: 8.43 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002202/0.09141, allocations: 51.42 kB / 387.3 MB, free: 8.379 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003387/0.09176, allocations: 139.8 kB / 387.4 MB, free: 8.242 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005004/0.09227, allocations: 387.2 kB / 387.8 MB, free: 7.863 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004293/0.09271, allocations: 256.9 kB / 388 MB, free: 7.602 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002011/0.09292, allocations: 167.2 kB / 388.2 MB, free: 7.438 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002407/0.09317, allocations: 203 kB / 388.4 MB, free: 7.238 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.151e-05/0.09327, allocations: 56 kB / 388.5 MB, free: 7.184 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.593e-05/0.09335, allocations: 60 kB / 388.5 MB, free: 7.125 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001078/0.09346, allocations: 119.5 kB / 388.6 MB, free: 7.008 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001819/0.09365, allocations: 218.8 kB / 388.9 MB, free: 6.793 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000516/0.09417, allocations: 0.5766 MB / 389.4 MB, free: 6.215 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/0.09419, allocations: 0 / 389.4 MB, free: 6.215 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.0942, allocations: 0 / 389.4 MB, free: 6.215 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.084e-05/0.09422, allocations: 4 kB / 389.4 MB, free: 6.211 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001102/0.09533, allocations: 0.7251 MB / 390.2 MB, free: 5.43 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.329e-05/0.09538, allocations: 8.031 kB / 390.2 MB, free: 5.422 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.095e-05/0.09548, allocations: 82.72 kB / 390.2 MB, free: 5.332 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.03e-05/0.09558, allocations: 48.38 kB / 390.3 MB, free: 5.285 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000379/0.09596, allocations: 343.4 kB / 390.6 MB, free: 4.91 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.705e-05/0.096, allocations: 29.38 kB / 390.7 MB, free: 4.883 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.408e-05/0.09607, allocations: 52.22 kB / 390.7 MB, free: 4.832 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006443/0.09672, allocations: 418.5 kB / 391.1 MB, free: 4.402 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.072e-05/0.09675, allocations: 11.94 kB / 391.1 MB, free: 4.391 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.668e-05/0.09679, allocations: 20 kB / 391.1 MB, free: 4.371 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.192e-05/0.09681, allocations: 12 kB / 391.2 MB, free: 4.359 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003976/0.09721, allocations: 264.8 kB / 391.4 MB, free: 4.102 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001789/0.09901, allocations: 1.448 MB / 392.9 MB, free: 2.59 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005181/0.09954, allocations: 362.1 kB / 393.2 MB, free: 2.199 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000205/0.09976, allocations: 171.4 kB / 393.4 MB, free: 2.02 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.845e-05/0.09978, allocations: 4 kB / 393.4 MB, free: 2.016 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.113e-05/0.09983, allocations: 46.5 kB / 393.4 MB, free: 1.961 MB / 286.1 MB Notification: Performance of pre-optimization done (n=32): time 1.593e-06/0.09984, allocations: 0 / 393.4 MB, free: 1.961 MB / 286.1 MB Notification: Performance of matching and sorting (n=32): time 0.0006003/0.1004, allocations: 345.9 kB / 393.8 MB, free: 1.617 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.93e-05/0.1005, allocations: 144.4 kB / 393.9 MB, free: 1.445 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002544/0.1008, allocations: 274.9 kB / 394.2 MB, free: 1.168 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.743e-05/0.1008, allocations: 37.64 kB / 394.2 MB, free: 1.125 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001345/0.101, allocations: 232 kB / 394.4 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.707e-05/0.1011, allocations: 122.3 kB / 394.6 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.665e-05/0.1012, allocations: 70.05 kB / 394.6 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001274/0.1013, allocations: 342.8 kB / 395 MB, free: 360 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001425/0.1014, allocations: 96.84 kB / 395.1 MB, free: 264 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000198/0.1016, allocations: 182.6 kB / 395.2 MB, free: 44 kB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003849/0.102, allocations: 314 kB / 395.5 MB, free: 15.7 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.102, allocations: 4 kB / 395.6 MB, free: 15.69 MB / 302.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0004805/0.1025, allocations: 349.2 kB / 395.9 MB, free: 15.34 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.744e-05/0.1026, allocations: 12.61 kB / 395.9 MB, free: 15.33 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.714e-06/0.1026, allocations: 4 kB / 395.9 MB, free: 15.33 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.597e-05/0.1026, allocations: 4 kB / 395.9 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003267/0.1029, allocations: 91.83 kB / 396 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.811e-05/0.103, allocations: 4 kB / 396 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001113/0.1031, allocations: 39.62 kB / 396 MB, free: 15.19 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.834e-05/0.1031, allocations: 12 kB / 396.1 MB, free: 15.18 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (48): * Single equations (assignments): 48 * 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.0001762/0.1033, allocations: 185.6 kB / 396.2 MB, free: 14.99 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000101/0.1034, allocations: 32 kB / 396.3 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.732e-05/0.1035, allocations: 37.73 kB / 396.3 MB, free: 14.92 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.232e-06/0.1035, allocations: 4 kB / 396.3 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.1035, allocations: 0 / 396.3 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.053e-06/0.1035, allocations: 11.86 kB / 396.3 MB, free: 14.9 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005975/0.1041, allocations: 461.1 kB / 396.8 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.1041, allocations: 0 / 396.8 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003001/0.1044, allocations: 59.91 kB / 396.8 MB, free: 14.35 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.976e-06/0.1044, allocations: 0 / 396.8 MB, free: 14.35 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.215e-05/0.1045, allocations: 16 kB / 396.8 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.412e-06/0.1045, allocations: 7.984 kB / 396.9 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.1045, allocations: 0 / 396.9 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006713/0.1052, allocations: 0.7095 MB / 397.6 MB, free: 13.6 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.26e-05/0.1052, allocations: 108.7 kB / 397.7 MB, free: 13.47 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.225e-05/0.1053, allocations: 8 kB / 397.7 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002107/0.1055, allocations: 12 kB / 397.7 MB, free: 13.45 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.722e-05/0.1055, allocations: 23.91 kB / 397.7 MB, free: 13.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.712e-05/0.1056, allocations: 12 kB / 397.7 MB, free: 13.42 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001779/0.1057, allocations: 190 kB / 397.9 MB, free: 13.23 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1057, allocations: 0 / 397.9 MB, free: 13.23 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004414/0.1062, allocations: 87.53 kB / 398 MB, free: 13.15 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (A.rabbit_population.population,A.fox_population.population,B.rabbit_population.population,B.fox_population.population,C.rabbit_population.population,C.fox_population.population,D.rabbit_population.population,D.fox_population.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 (32): * Single equations (assignments): 32 * 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.0009154/0.1071, allocations: 1.249 MB / 399.2 MB, free: 11.87 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004344/0.1076, allocations: 281.1 kB / 399.5 MB, free: 11.6 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.979e-06/0.1076, allocations: 8 kB / 399.5 MB, free: 11.59 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001616/0.1077, allocations: 135.8 kB / 399.7 MB, free: 11.46 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007634/0.1085, allocations: 60.8 kB / 399.7 MB, free: 11.4 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003609/0.1121, allocations: 3.397 MB / 403.1 MB, free: 7.848 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003793/0.1125, allocations: 0.8152 MB / 403.9 MB, free: 7.004 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001478/0.1127, allocations: 26.97 kB / 404 MB, free: 6.973 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001614/0.1129, allocations: 135.4 kB / 404.1 MB, free: 6.84 MB / 302.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1129, allocations: 0 / 404.1 MB, free: 6.84 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02291/0.1358, allocations: 5.739 MB / 409.8 MB, free: 1.18 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.565/7.701, allocations: 3.719 kB / 409.8 MB, free: 1.18 MB / 302.1 MB (rm -f ModelicaByExample_ModelicaByExample.Subsystems.LotkaVolterra.Examples.UnconnectedPopulations.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Subsystems.LotkaVolterra.Examples.UnconnectedPopulations.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Subsystems.LotkaVolterra.Examples.UnconnectedPopulations.pipe >> ../files/ModelicaByExample_ModelicaByExample.Subsystems.LotkaVolterra.Examples.UnconnectedPopulations.sim & python3 -m fmpy simulate --output-file ModelicaByExample_ModelicaByExample.Subsystems.LotkaVolterra.Examples.UnconnectedPopulations_res.csv --start-time 0 --stop-time 40 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.016 ModelicaByExample_ModelicaByExample_Subsystems_LotkaVolterra_Examples_UnconnectedPopulations.fmu > ModelicaByExample_ModelicaByExample.Subsystems.LotkaVolterra.Examples.UnconnectedPopulations.pipe 2>&1)