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.007875/0.007875, allocations: 101.9 kB / 15.73 MB, free: 6.02 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.001646/0.001646, allocations: 194.3 kB / 16.67 MB, free: 5.93 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.398/1.398, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1891/0.1891, allocations: 28.79 MB / 319.3 MB, free: 1.887 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 0.002844/0.002843, allocations: 59.91 kB / 443.8 MB, free: 3.074 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1218/0.1247, allocations: 56.41 MB / 0.4885 GB, free: 10.61 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Gilpin): time 0.003306/0.128, allocations: 2.093 MB / 0.4905 GB, free: 8.512 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006592/0.1287, allocations: 315.1 kB / 0.4908 GB, free: 8.203 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001657/0.1289, allocations: 4 kB / 0.4908 GB, free: 8.199 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001968/0.1291, allocations: 75.12 kB / 0.4909 GB, free: 8.125 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001196/0.1292, allocations: 35.56 kB / 0.4909 GB, free: 8.09 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000292/0.1295, allocations: 155.8 kB / 0.4911 GB, free: 7.938 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004266/0.13, allocations: 404.5 kB / 0.4915 GB, free: 7.539 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004742/0.1304, allocations: 354.2 kB / 0.4918 GB, free: 7.176 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001354/0.1306, allocations: 155.3 kB / 0.4919 GB, free: 7.023 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000179/0.1308, allocations: 194.8 kB / 0.4921 GB, free: 6.832 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.982e-05/0.1308, allocations: 44 kB / 0.4922 GB, free: 6.789 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.558e-05/0.1309, allocations: 44 kB / 0.4922 GB, free: 6.746 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.805e-05/0.131, allocations: 103.6 kB / 0.4923 GB, free: 6.645 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001634/0.1312, allocations: 210.8 kB / 0.4925 GB, free: 6.438 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004567/0.1316, allocations: 449.7 kB / 0.4929 GB, free: 5.996 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.1316, allocations: 0 / 0.4929 GB, free: 5.996 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.1316, allocations: 0 / 0.4929 GB, free: 5.996 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.105e-05/0.1317, allocations: 0 / 0.4929 GB, free: 5.996 MB / 382.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.0009114/0.1326, allocations: 0.7173 MB / 0.4936 GB, free: 5.227 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.937e-05/0.1326, allocations: 16.02 kB / 0.4937 GB, free: 5.211 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000135/0.1328, allocations: 107.8 kB / 0.4938 GB, free: 5.098 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.934e-05/0.1329, allocations: 56.61 kB / 0.4938 GB, free: 5.043 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004104/0.1333, allocations: 328.4 kB / 0.4941 GB, free: 4.68 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.022e-05/0.1333, allocations: 37.69 kB / 0.4942 GB, free: 4.641 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.122e-05/0.1334, allocations: 56.38 kB / 0.4942 GB, free: 4.586 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007355/0.1341, allocations: 0.4918 MB / 0.4947 GB, free: 4.066 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.802e-05/0.1342, allocations: 3.938 kB / 0.4947 GB, free: 4.062 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.602e-05/0.1342, allocations: 20 kB / 0.4947 GB, free: 4.043 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.835e-05/0.1342, allocations: 16 kB / 0.4947 GB, free: 4.027 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004867/0.1347, allocations: 285 kB / 0.495 GB, free: 3.746 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002075/0.1368, allocations: 1.635 MB / 0.4966 GB, free: 2.039 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003933/0.1372, allocations: 190.7 kB / 0.4968 GB, free: 1.844 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001329/0.1374, allocations: 81.19 kB / 0.4969 GB, free: 1.762 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.132e-05/0.1374, allocations: 4 kB / 0.4969 GB, free: 1.758 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.536e-05/0.1374, allocations: 50.45 kB / 0.4969 GB, free: 1.699 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 1.813e-06/0.1374, allocations: 0 / 0.4969 GB, free: 1.699 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004752/0.1379, allocations: 248.2 kB / 0.4972 GB, free: 1.453 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.399e-05/0.138, allocations: 67.27 kB / 0.4972 GB, free: 1.375 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002958/0.1383, allocations: 254.7 kB / 0.4975 GB, free: 1.117 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.25e-05/0.1383, allocations: 29.7 kB / 0.4975 GB, free: 1.082 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001925/0.1385, allocations: 268.2 kB / 0.4977 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.221e-05/0.1386, allocations: 75.38 kB / 0.4978 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.069e-05/0.1387, allocations: 45.7 kB / 0.4979 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001668/0.1388, allocations: 346.8 kB / 0.4982 GB, free: 352 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001103/0.139, allocations: 59.98 kB / 0.4983 GB, free: 292 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001546/0.1391, allocations: 113.9 kB / 0.4984 GB, free: 156 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002903/0.1394, allocations: 197.9 kB / 0.4985 GB, free: 15.94 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.908e-06/0.1394, allocations: 0 / 0.4985 GB, free: 15.94 MB / 398.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003728/0.1398, allocations: 252.7 kB / 0.4988 GB, free: 15.69 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.634e-05/0.1398, allocations: 8 kB / 0.4988 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.431e-06/0.1398, allocations: 0 / 0.4988 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.611e-05/0.1399, allocations: 4 kB / 0.4988 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001818/0.1401, allocations: 43.92 kB / 0.4988 GB, free: 15.63 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.068e-05/0.1401, allocations: 7.938 kB / 0.4988 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001091/0.1402, allocations: 31.73 kB / 0.4989 GB, free: 15.59 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.495e-05/0.1402, allocations: 4 kB / 0.4989 GB, free: 15.59 MB / 398.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.0001615/0.1404, allocations: 158.6 kB / 0.499 GB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.658e-05/0.1404, allocations: 23.89 kB / 0.4991 GB, free: 15.4 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.901e-05/0.1405, allocations: 30.19 kB / 0.4991 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.377e-06/0.1405, allocations: 11.92 kB / 0.4991 GB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.1405, allocations: 0 / 0.4991 GB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.616e-06/0.1405, allocations: 0 / 0.4991 GB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000837/0.1414, allocations: 0.6662 MB / 0.4997 GB, free: 14.63 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.1414, allocations: 0 / 0.4997 GB, free: 14.63 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001824/0.1416, allocations: 31.94 kB / 0.4998 GB, free: 14.6 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.012e-05/0.1416, allocations: 11.92 kB / 0.4998 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.468e-05/0.1416, allocations: 0 / 0.4998 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.1416, allocations: 4 kB / 0.4998 GB, free: 14.58 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.1416, allocations: 0 / 0.4998 GB, free: 14.58 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004954/0.1421, allocations: 373.8 kB / 0.5002 GB, free: 14.2 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.526e-05/0.1422, allocations: 104.9 kB / 0.5003 GB, free: 14.08 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.941e-05/0.1423, allocations: 4 kB / 0.5003 GB, free: 14.08 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.721e-05/0.1424, allocations: 0 / 0.5003 GB, free: 14.08 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.618e-05/0.1424, allocations: 16.03 kB / 0.5003 GB, free: 14.06 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.055e-05/0.1424, allocations: 4 kB / 0.5003 GB, free: 14.06 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001781/0.1426, allocations: 186 kB / 0.5005 GB, free: 13.88 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1426, allocations: 0 / 0.5005 GB, free: 13.88 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003301/0.1429, allocations: 91.52 kB / 0.5005 GB, free: 13.79 MB / 398.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.0007851/0.1437, allocations: 0.8996 MB / 0.5014 GB, free: 12.87 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003241/0.1441, allocations: 172 kB / 0.5016 GB, free: 12.7 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.273e-06/0.1441, allocations: 0 / 0.5016 GB, free: 12.7 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001212/0.1442, allocations: 90.42 kB / 0.5017 GB, free: 12.61 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003699/0.1446, allocations: 36.88 kB / 0.5017 GB, free: 12.58 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003407/0.148, allocations: 2.832 MB / 0.5045 GB, free: 9.633 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004929/0.1485, allocations: 0.8181 MB / 0.5053 GB, free: 8.785 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 9.647e-05/0.1486, allocations: 21.94 kB / 0.5053 GB, free: 8.762 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000187/0.1488, allocations: 135.4 kB / 0.5054 GB, free: 8.629 MB / 398.1 MB Notification: Performance of SimCode: time 6.61e-07/0.1488, allocations: 0 / 0.5054 GB, free: 8.629 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02662/0.1755, allocations: 4.873 MB / 0.5102 GB, free: 3.828 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.93/8.105, allocations: 18.44 kB / 0.5102 GB, free: 3.816 MB / 398.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)