Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo", uses=false) Using package SystemDynamics with version 2.1.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(SystemDynamics.WorldDynamics.World2.Scenario_5,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_5,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000918/0.0009181, allocations: 180.5 kB / 15.43 MB, free: 5.91 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.28/1.28, allocations: 225.7 MB / 241.9 MB, free: 372 kB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008064/0.0008064, allocations: 100.2 kB / 293.1 MB, free: 12.88 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo): time 0.1576/0.1576, allocations: 28.83 MB / 373 MB, free: 12.78 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004005/0.0004005, allocations: 8 kB / 441.2 MB, free: 69.53 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09463/0.09505, allocations: 57.49 MB / 498.7 MB, free: 11.93 MB / 330.7 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_5): time 0.002238/0.09734, allocations: 2.574 MB / 0.4895 GB, free: 9.348 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001066/0.09843, allocations: 0.6091 MB / 0.4901 GB, free: 8.719 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002605/0.09871, allocations: 12 kB / 0.4901 GB, free: 8.707 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001914/0.09891, allocations: 107.2 kB / 0.4902 GB, free: 8.602 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002631/0.09918, allocations: 87.56 kB / 0.4903 GB, free: 8.516 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004394/0.09962, allocations: 235.8 kB / 0.4905 GB, free: 8.285 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004453/0.1001, allocations: 0.7005 MB / 0.4912 GB, free: 7.582 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004486/0.1005, allocations: 445.2 kB / 0.4917 GB, free: 7.129 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001634/0.1007, allocations: 246.5 kB / 0.4919 GB, free: 6.887 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001923/0.1009, allocations: 309.9 kB / 0.4922 GB, free: 6.582 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 6.584e-05/0.101, allocations: 24 kB / 0.4922 GB, free: 6.559 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000123/0.1011, allocations: 43.98 kB / 0.4922 GB, free: 6.516 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002183/0.1013, allocations: 370.4 kB / 0.4926 GB, free: 6.152 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002153/0.1016, allocations: 0.5167 MB / 0.4931 GB, free: 5.625 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000561/0.1021, allocations: 1.007 MB / 0.4941 GB, free: 4.613 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.1021, allocations: 0 / 0.4941 GB, free: 4.613 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1022, allocations: 4 kB / 0.4941 GB, free: 4.609 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.159e-05/0.1022, allocations: 0 / 0.4941 GB, free: 4.609 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.00136/0.1035, allocations: 1.465 MB / 0.4955 GB, free: 3.082 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.352e-05/0.1036, allocations: 19.89 kB / 0.4955 GB, free: 3.062 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001456/0.1037, allocations: 194.5 kB / 0.4957 GB, free: 2.871 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003188/0.1041, allocations: 0.5585 MB / 0.4963 GB, free: 2.262 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.046e-05/0.1041, allocations: 78.38 kB / 0.4963 GB, free: 2.188 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.331e-05/0.1042, allocations: 100.3 kB / 0.4964 GB, free: 2.09 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001328/0.1055, allocations: 1.082 MB / 0.4975 GB, free: 0.9883 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.174e-05/0.1056, allocations: 4.188 kB / 0.4975 GB, free: 0.9844 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.051e-05/0.1056, allocations: 43.94 kB / 0.4975 GB, free: 0.9414 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.44e-05/0.1057, allocations: 58.06 kB / 0.4976 GB, free: 0.8828 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001422/0.1071, allocations: 1.226 MB / 0.4988 GB, free: 15.64 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003773/0.1109, allocations: 2.874 MB / 0.5016 GB, free: 12.7 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001255/0.1122, allocations: 1.006 MB / 0.5026 GB, free: 11.68 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006411/0.1128, allocations: 0.5061 MB / 0.5031 GB, free: 11.17 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.752e-05/0.1129, allocations: 36.55 kB / 0.5031 GB, free: 11.13 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.333e-05/0.113, allocations: 39.12 kB / 0.5032 GB, free: 11.09 MB / 346.7 MB Notification: Performance of pre-optimization done (n=66): time 2.355e-06/0.113, allocations: 0 / 0.5032 GB, free: 11.09 MB / 346.7 MB Notification: Performance of matching and sorting (n=66): time 0.002071/0.115, allocations: 1.629 MB / 0.5047 GB, free: 9.449 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.65e-05/0.1151, allocations: 63.91 kB / 0.5048 GB, free: 9.375 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001268/0.1164, allocations: 1.242 MB / 0.506 GB, free: 8.121 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.048e-05/0.1164, allocations: 33.7 kB / 0.5061 GB, free: 8.082 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005495/0.117, allocations: 0.786 MB / 0.5068 GB, free: 7.285 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000174/0.1172, allocations: 228.7 kB / 0.507 GB, free: 7.059 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.573e-05/0.1172, allocations: 12 kB / 0.507 GB, free: 7.047 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001094/0.1173, allocations: 341.9 kB / 0.5074 GB, free: 6.707 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006361/0.118, allocations: 481.7 kB / 0.5078 GB, free: 6.234 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007231/0.1187, allocations: 0.6637 MB / 0.5085 GB, free: 5.492 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00392/0.1226, allocations: 2.173 MB / 0.5106 GB, free: 3.238 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.619e-06/0.1227, allocations: 0 / 0.5106 GB, free: 3.238 MB / 346.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00174/0.1244, allocations: 1.355 MB / 0.5119 GB, free: 1.875 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.15e-05/0.1244, allocations: 16.06 kB / 0.5119 GB, free: 1.859 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.052e-05/0.1245, allocations: 4 kB / 0.5119 GB, free: 1.855 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.325e-05/0.1245, allocations: 12 kB / 0.512 GB, free: 1.844 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006117/0.1251, allocations: 183.7 kB / 0.5121 GB, free: 1.664 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.4e-05/0.1251, allocations: 8 kB / 0.5121 GB, free: 1.656 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003759/0.1255, allocations: 95.19 kB / 0.5122 GB, free: 1.562 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.777e-05/0.1256, allocations: 36 kB / 0.5123 GB, free: 1.527 MB / 346.7 MB Warning: Assuming fixed start value for the following 6 variables: CIAF.level:VARIABLE(start = CIAF.x0 fixed = true ) "Reversible state variable" type: Real Pollution.level:VARIABLE(start = Pollution.x0 fixed = true ) "Reversible state variable" type: Real Capital_Investment.level:VARIABLE(start = Capital_Investment.x0 fixed = true ) "Reversible state variable" type: Real Natural_Resources.level:VARIABLE(start = Natural_Resources.x0 fixed = true ) "Reversible state variable" type: Real Population.level:VARIABLE(start = Population.x0 fixed = true ) "Reversible state variable" type: Real years:VARIABLE(start = 1900.0 fixed = true ) "Time in calendar years" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * 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 (96): * Single equations (assignments): 96 * 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.0005629/0.1262, allocations: 395.2 kB / 0.5126 GB, free: 1.133 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001428/0.1263, allocations: 142.2 kB / 0.5128 GB, free: 0.9922 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001873/0.1282, allocations: 1.275 MB / 0.514 GB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.371e-05/0.1282, allocations: 11.98 kB / 0.514 GB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.1282, allocations: 0 / 0.514 GB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.07e-05/0.1283, allocations: 3.984 kB / 0.514 GB, free: 15.69 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002828/0.1311, allocations: 2.394 MB / 0.5164 GB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.656e-06/0.1311, allocations: 0 / 0.5164 GB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005247/0.1316, allocations: 127.9 kB / 0.5165 GB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.655e-06/0.1317, allocations: 0 / 0.5165 GB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.518e-05/0.1317, allocations: 23.92 kB / 0.5165 GB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.298e-06/0.1317, allocations: 4 kB / 0.5165 GB, free: 13.08 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.1317, allocations: 0 / 0.5165 GB, free: 13.08 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002253/0.134, allocations: 1.98 MB / 0.5185 GB, free: 11.08 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001896/0.1342, allocations: 195.3 kB / 0.5186 GB, free: 10.87 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.581e-05/0.1343, allocations: 8.062 kB / 0.5187 GB, free: 10.86 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000273/0.1346, allocations: 32.11 kB / 0.5187 GB, free: 10.83 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001028/0.1347, allocations: 52.5 kB / 0.5187 GB, free: 10.78 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.711e-05/0.1347, allocations: 23.98 kB / 0.5188 GB, free: 10.76 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0009486/0.1357, allocations: 0.856 MB / 0.5196 GB, free: 9.902 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1357, allocations: 0 / 0.5196 GB, free: 9.902 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005548/0.1362, allocations: 215 kB / 0.5198 GB, free: 9.691 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (years,Population.level,Natural_Resources.level,Capital_Investment.level,Pollution.level,CIAF.level) * 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 (66): * Single equations (assignments): 66 * 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.0001773/0.1364, allocations: 119.1 kB / 0.5199 GB, free: 9.562 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001549/0.138, allocations: 1.114 MB / 0.521 GB, free: 8.453 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.138, allocations: 0 / 0.521 GB, free: 8.453 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006797/0.1387, allocations: 0.5536 MB / 0.5215 GB, free: 7.898 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004719/0.1392, allocations: 65.09 kB / 0.5216 GB, free: 7.832 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003918/0.1431, allocations: 3.363 MB / 0.5249 GB, free: 4.434 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008138/0.1439, allocations: 1.296 MB / 0.5262 GB, free: 3.109 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0004234/0.1444, allocations: 116.3 kB / 0.5263 GB, free: 2.996 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001464/0.1445, allocations: 55.42 kB / 0.5263 GB, free: 2.941 MB / 362.7 MB Notification: Performance of SimCode: time 1.714e-06/0.1445, allocations: 0 / 0.5263 GB, free: 2.941 MB / 362.7 MB Notification: Performance of Templates: time 0.1653/0.3099, allocations: 4.738 MB / 0.5309 GB, free: 47.32 MB / 362.7 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe 2>&1)