Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.IntroductoryExamples.Gilpin.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo", uses=false) Using package SystemDynamics with version 2.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(SystemDynamics.IntroductoryExamples.Gilpin,fileNamePrefix="SystemDynamics_SystemDynamics_IntroductoryExamples_Gilpin",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.IntroductoryExamples.Gilpin,fileNamePrefix="SystemDynamics_SystemDynamics_IntroductoryExamples_Gilpin",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.005393/0.005393, allocations: 97.3 kB / 15.73 MB, free: 6.035 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.001087/0.001087, allocations: 201.9 kB / 16.68 MB, free: 5.961 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.355/1.355, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2773/0.2773, allocations: 28.81 MB / 319.3 MB, free: 5.617 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 0.001173/0.001173, allocations: 63.31 kB / 443.8 MB, free: 36.77 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09003/0.09122, allocations: 56.42 MB / 0.4885 GB, free: 8.91 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Gilpin): time 0.002755/0.094, allocations: 2.097 MB / 0.4906 GB, free: 7.25 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005744/0.0946, allocations: 311.8 kB / 0.4908 GB, free: 6.988 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001918/0.0948, allocations: 10.5 kB / 0.4909 GB, free: 6.984 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001874/0.095, allocations: 64.59 kB / 0.4909 GB, free: 6.922 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001198/0.09514, allocations: 34.31 kB / 0.491 GB, free: 6.891 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002611/0.0954, allocations: 163.9 kB / 0.4911 GB, free: 6.75 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003334/0.09575, allocations: 406.1 kB / 0.4915 GB, free: 6.496 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000408/0.09616, allocations: 353.3 kB / 0.4918 GB, free: 6.262 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001044/0.09627, allocations: 155.8 kB / 0.492 GB, free: 6.152 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001236/0.0964, allocations: 182.1 kB / 0.4922 GB, free: 6 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.942e-05/0.09647, allocations: 43.59 kB / 0.4922 GB, free: 6 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.842e-05/0.09652, allocations: 48.53 kB / 0.4922 GB, free: 5.996 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.315e-05/0.09659, allocations: 111.2 kB / 0.4923 GB, free: 5.902 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001108/0.09671, allocations: 214 kB / 0.4926 GB, free: 5.73 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003352/0.09705, allocations: 435.2 kB / 0.493 GB, free: 5.391 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.09706, allocations: 4 kB / 0.493 GB, free: 5.387 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.09707, allocations: 0 / 0.493 GB, free: 5.387 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.526e-06/0.09708, allocations: 0 / 0.493 GB, free: 5.387 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 134 * Number of variables: 134 Notification: Performance of Generate backend data structure: time 0.0007132/0.0978, allocations: 0.7301 MB / 0.4937 GB, free: 4.742 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.718e-05/0.09784, allocations: 9.281 kB / 0.4937 GB, free: 4.742 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001067/0.09796, allocations: 101.5 kB / 0.4938 GB, free: 4.652 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.238e-05/0.09803, allocations: 56.33 kB / 0.4938 GB, free: 4.625 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003099/0.09835, allocations: 333.4 kB / 0.4942 GB, free: 4.301 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.036e-05/0.09839, allocations: 43.66 kB / 0.4942 GB, free: 4.277 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.377e-05/0.09846, allocations: 52.12 kB / 0.4943 GB, free: 4.262 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006028/0.09907, allocations: 496.3 kB / 0.4947 GB, free: 3.844 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.656e-05/0.09909, allocations: 11.88 kB / 0.4947 GB, free: 3.832 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.187e-05/0.09913, allocations: 23.98 kB / 0.4948 GB, free: 3.809 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.053e-05/0.09914, allocations: 16 kB / 0.4948 GB, free: 3.793 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003585/0.09951, allocations: 277.1 kB / 0.495 GB, free: 3.52 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001343/0.1009, allocations: 1.635 MB / 0.4966 GB, free: 1.812 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000298/0.1012, allocations: 202.5 kB / 0.4968 GB, free: 1.605 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.714e-05/0.1013, allocations: 81.19 kB / 0.4969 GB, free: 1.523 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.775e-05/0.1013, allocations: 0 / 0.4969 GB, free: 1.523 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.773e-05/0.1013, allocations: 50.52 kB / 0.497 GB, free: 1.465 MB / 366.1 MB Notification: Performance of pre-optimization done (n=20): time 1.052e-06/0.1013, allocations: 0 / 0.497 GB, free: 1.465 MB / 366.1 MB Notification: Performance of matching and sorting (n=20): time 0.0003621/0.1017, allocations: 247.6 kB / 0.4972 GB, free: 1.219 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.452e-05/0.1017, allocations: 55.34 kB / 0.4972 GB, free: 1.152 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001792/0.1019, allocations: 270.6 kB / 0.4975 GB, free: 0.8828 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.479e-05/0.1019, allocations: 33.7 kB / 0.4975 GB, free: 0.8438 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.608e-05/0.102, allocations: 264.2 kB / 0.4978 GB, free: 0.582 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.709e-05/0.1021, allocations: 75.39 kB / 0.4979 GB, free: 0.5078 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.718e-05/0.1021, allocations: 45.7 kB / 0.4979 GB, free: 468 kB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.984e-05/0.1022, allocations: 334.8 kB / 0.4982 GB, free: 124 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.785e-05/0.1023, allocations: 63.97 kB / 0.4983 GB, free: 60 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001339/0.1024, allocations: 110 kB / 0.4984 GB, free: 15.93 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002544/0.1027, allocations: 201.7 kB / 0.4986 GB, free: 15.71 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.1027, allocations: 0 / 0.4986 GB, free: 15.71 MB / 382.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003509/0.103, allocations: 249.2 kB / 0.4988 GB, free: 15.46 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.39e-05/0.1031, allocations: 4 kB / 0.4988 GB, free: 15.46 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.1031, allocations: 4 kB / 0.4988 GB, free: 15.45 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.546e-05/0.1031, allocations: 4 kB / 0.4988 GB, free: 15.45 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001879/0.1033, allocations: 51.86 kB / 0.4989 GB, free: 15.4 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.1033, allocations: 4 kB / 0.4989 GB, free: 15.39 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001013/0.1034, allocations: 27.73 kB / 0.4989 GB, free: 15.37 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.582e-05/0.1034, allocations: 8 kB / 0.4989 GB, free: 15.36 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 3 (Predator.Integrator1.local_reset,Prey_2.Integrator1.local_reset,Prey_1.Integrator1.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 29 * 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.0001407/0.1036, allocations: 150 kB / 0.4991 GB, free: 15.2 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.67e-05/0.1036, allocations: 23.86 kB / 0.4991 GB, free: 15.18 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.358e-05/0.1037, allocations: 38.17 kB / 0.4991 GB, free: 15.13 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.656e-06/0.1037, allocations: 3.938 kB / 0.4991 GB, free: 15.13 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.1037, allocations: 0 / 0.4991 GB, free: 15.13 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.1037, allocations: 3.984 kB / 0.4991 GB, free: 15.12 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000695/0.1044, allocations: 0.6739 MB / 0.4998 GB, free: 14.39 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.1044, allocations: 0 / 0.4998 GB, free: 14.39 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001867/0.1046, allocations: 31.98 kB / 0.4998 GB, free: 14.36 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.202e-06/0.1047, allocations: 7.938 kB / 0.4998 GB, free: 14.36 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.513e-05/0.1047, allocations: 7.938 kB / 0.4998 GB, free: 14.35 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.584e-06/0.1047, allocations: 3.984 kB / 0.4998 GB, free: 14.34 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1047, allocations: 0 / 0.4998 GB, free: 14.34 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000408/0.1051, allocations: 370.1 kB / 0.5002 GB, free: 13.97 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.383e-05/0.1052, allocations: 108.9 kB / 0.5003 GB, free: 13.84 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.814e-05/0.1052, allocations: 4 kB / 0.5003 GB, free: 13.84 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001061/0.1053, allocations: 4 kB / 0.5003 GB, free: 13.84 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.191e-05/0.1054, allocations: 11.98 kB / 0.5003 GB, free: 13.82 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.268e-05/0.1054, allocations: 8 kB / 0.5003 GB, free: 13.82 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001466/0.1055, allocations: 186 kB / 0.5005 GB, free: 13.64 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1055, allocations: 0 / 0.5005 GB, free: 13.64 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003143/0.1058, allocations: 87.58 kB / 0.5006 GB, free: 13.55 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (Prey_1.Integrator1.y,Prey_2.Integrator1.y,Predator.Integrator1.y) * 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 (20): * Single equations (assignments): 20 * 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.0006445/0.1065, allocations: 0.9037 MB / 0.5015 GB, free: 12.62 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002744/0.1068, allocations: 171.7 kB / 0.5016 GB, free: 12.46 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.1068, allocations: 0 / 0.5016 GB, free: 12.46 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001204/0.1069, allocations: 86.16 kB / 0.5017 GB, free: 12.38 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003587/0.1073, allocations: 33.05 kB / 0.5017 GB, free: 12.34 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003134/0.1104, allocations: 2.836 MB / 0.5045 GB, free: 9.395 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004031/0.1108, allocations: 0.8104 MB / 0.5053 GB, free: 8.555 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.696e-05/0.1109, allocations: 17.95 kB / 0.5053 GB, free: 8.535 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001765/0.1111, allocations: 143.4 kB / 0.5055 GB, free: 8.395 MB / 382.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1111, allocations: 0 / 0.5055 GB, free: 8.395 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02182/0.133, allocations: 4.869 MB / 0.5102 GB, free: 3.59 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.645/7.778, allocations: 19.89 kB / 0.5102 GB, free: 3.57 MB / 382.1 MB (rm -f SystemDynamics_SystemDynamics.IntroductoryExamples.Gilpin.pipe ; mkfifo SystemDynamics_SystemDynamics.IntroductoryExamples.Gilpin.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.IntroductoryExamples.Gilpin.pipe >> ../files/SystemDynamics_SystemDynamics.IntroductoryExamples.Gilpin.sim & python3 -m fmpy simulate --output-file SystemDynamics_SystemDynamics.IntroductoryExamples.Gilpin_res.csv --start-time 0 --stop-time 5000 --timeout 50 --relative-tolerance 1e-11 --interface-type ModelExchange --solver CVode --output-interval 2 SystemDynamics_SystemDynamics_IntroductoryExamples_Gilpin.fmu > SystemDynamics_SystemDynamics.IntroductoryExamples.Gilpin.pipe 2>&1)