Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.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: translateModel(SystemDynamics.WorldDynamics.World2.Scenario_3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001354/0.001354, allocations: 103.9 kB / 16.41 MB, free: 6.496 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.00131/0.00131, allocations: 191 kB / 17.34 MB, free: 5.766 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.338/1.338, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1638/0.1638, allocations: 28.77 MB / 320 MB, free: 1.914 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001234/0.001235, allocations: 63.89 kB / 445 MB, free: 2.547 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1233/0.1246, allocations: 56.43 MB / 0.4897 GB, free: 10.07 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_3): time 0.005972/0.1306, allocations: 3.639 MB / 0.4932 GB, free: 6.418 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002279/0.1329, allocations: 0.6818 MB / 0.4939 GB, free: 5.734 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009201/0.1339, allocations: 19.94 kB / 0.4939 GB, free: 5.715 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007279/0.1346, allocations: 166.4 kB / 0.4941 GB, free: 5.551 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007816/0.1355, allocations: 134.8 kB / 0.4942 GB, free: 5.418 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009943/0.1365, allocations: 363.5 kB / 0.4945 GB, free: 5.062 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001116/0.1376, allocations: 0.8561 MB / 0.4954 GB, free: 4.203 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008467/0.1385, allocations: 0.6403 MB / 0.496 GB, free: 3.523 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003177/0.1388, allocations: 338.4 kB / 0.4963 GB, free: 3.191 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003222/0.1391, allocations: 417.6 kB / 0.4967 GB, free: 2.781 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001256/0.1392, allocations: 88 kB / 0.4968 GB, free: 2.695 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001916/0.1394, allocations: 112 kB / 0.4969 GB, free: 2.586 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003934/0.1398, allocations: 438.5 kB / 0.4973 GB, free: 2.156 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000479/0.1403, allocations: 0.6125 MB / 0.4979 GB, free: 1.539 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001225/0.1416, allocations: 1.256 MB / 0.4992 GB, free: 284 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.1416, allocations: 0 / 0.4992 GB, free: 284 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.1416, allocations: 0 / 0.4992 GB, free: 284 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.803e-05/0.1416, allocations: 0 / 0.4992 GB, free: 284 kB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 263 * Number of variables: 263 Notification: Performance of Generate backend data structure: time 0.002056/0.1437, allocations: 1.78 MB / 0.5009 GB, free: 14.43 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.042e-05/0.1437, allocations: 12.03 kB / 0.5009 GB, free: 14.42 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002066/0.1439, allocations: 198.4 kB / 0.5011 GB, free: 14.23 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009148/0.1449, allocations: 0.7627 MB / 0.5018 GB, free: 13.41 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.544e-05/0.1449, allocations: 74.45 kB / 0.5019 GB, free: 13.34 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001086/0.145, allocations: 104.4 kB / 0.502 GB, free: 13.24 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00166/0.1467, allocations: 1.162 MB / 0.5032 GB, free: 12.01 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.443e-05/0.1467, allocations: 4.125 kB / 0.5032 GB, free: 12.01 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.176e-05/0.1468, allocations: 43.94 kB / 0.5032 GB, free: 11.96 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.618e-05/0.1468, allocations: 28 kB / 0.5032 GB, free: 11.94 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001442/0.1483, allocations: 1.101 MB / 0.5043 GB, free: 10.83 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004208/0.1525, allocations: 3.654 MB / 0.5079 GB, free: 7.074 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001562/0.1541, allocations: 1.334 MB / 0.5092 GB, free: 5.727 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005159/0.1546, allocations: 482.3 kB / 0.5096 GB, free: 5.254 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.333e-05/0.1547, allocations: 28.77 kB / 0.5097 GB, free: 5.227 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.106e-05/0.1548, allocations: 47.05 kB / 0.5097 GB, free: 5.172 MB / 398.1 MB Notification: Performance of pre-optimization done (n=68): time 2.755e-06/0.1548, allocations: 0 / 0.5097 GB, free: 5.172 MB / 398.1 MB Notification: Performance of matching and sorting (n=68): time 0.001977/0.1567, allocations: 1.524 MB / 0.5112 GB, free: 3.641 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.406e-05/0.1568, allocations: 63.95 kB / 0.5113 GB, free: 3.566 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001592/0.1584, allocations: 1.28 MB / 0.5125 GB, free: 2.277 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.891e-05/0.1585, allocations: 41.7 kB / 0.5125 GB, free: 2.23 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005328/0.159, allocations: 0.7676 MB / 0.5133 GB, free: 1.453 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001751/0.1592, allocations: 232.6 kB / 0.5135 GB, free: 1.223 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001585/0.1594, allocations: 118.6 kB / 0.5136 GB, free: 1.102 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000164/0.1595, allocations: 337.9 kB / 0.514 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005146/0.1601, allocations: 441.8 kB / 0.5144 GB, free: 340 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2143/0.3744, allocations: 0.5286 MB / 0.5149 GB, free: 26.84 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001385/0.3758, allocations: 0.9973 MB / 0.5159 GB, free: 26.74 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.121e-06/0.3758, allocations: 2.219 kB / 0.5159 GB, free: 26.74 MB / 398.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001333/0.3772, allocations: 1.189 MB / 0.517 GB, free: 26.7 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.05e-05/0.3772, allocations: 7.938 kB / 0.517 GB, free: 26.7 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/0.3772, allocations: 3.062 kB / 0.517 GB, free: 26.7 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.48e-05/0.3772, allocations: 7.469 kB / 0.517 GB, free: 26.7 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004621/0.3777, allocations: 133.9 kB / 0.5172 GB, free: 26.7 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.495e-05/0.3777, allocations: 9.562 kB / 0.5172 GB, free: 26.7 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002759/0.378, allocations: 58.09 kB / 0.5172 GB, free: 26.7 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.175e-05/0.3781, allocations: 22.81 kB / 0.5173 GB, free: 26.7 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 5 (CIAF.Integrator1.local_reset,Pollution.Integrator1.local_reset,Capital_Investment.Integrator1.local_reset,Natural_Resources.Integrator1.local_reset,Population.Integrator1.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 83 * 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.0004925/0.3786, allocations: 374.6 kB / 0.5176 GB, free: 26.58 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001359/0.3787, allocations: 144.1 kB / 0.5178 GB, free: 26.58 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001508/0.3802, allocations: 1.202 MB / 0.5189 GB, free: 26.52 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.508e-06/0.3802, allocations: 7.156 kB / 0.5189 GB, free: 26.52 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.3803, allocations: 2.906 kB / 0.5189 GB, free: 26.52 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/0.3803, allocations: 0.9844 kB / 0.5189 GB, free: 26.52 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002629/0.3829, allocations: 2.368 MB / 0.5212 GB, free: 26.2 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.3829, allocations: 0 / 0.5212 GB, free: 26.2 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004512/0.3834, allocations: 118.8 kB / 0.5214 GB, free: 26.2 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.302e-06/0.3834, allocations: 6.062 kB / 0.5214 GB, free: 26.2 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.393e-05/0.3834, allocations: 14.97 kB / 0.5214 GB, free: 26.2 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.494e-06/0.3834, allocations: 8.109 kB / 0.5214 GB, free: 26.19 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.3834, allocations: 1.594 kB / 0.5214 GB, free: 26.19 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002066/0.3855, allocations: 1.881 MB / 0.5232 GB, free: 25.99 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001795/0.3857, allocations: 201.1 kB / 0.5234 GB, free: 25.82 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.138e-05/0.3858, allocations: 13.28 kB / 0.5234 GB, free: 25.82 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002161/0.386, allocations: 19.05 kB / 0.5235 GB, free: 25.82 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.664e-05/0.3861, allocations: 39.17 kB / 0.5235 GB, free: 25.81 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.889e-05/0.3862, allocations: 21.72 kB / 0.5235 GB, free: 25.81 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001152/0.3873, allocations: 0.8916 MB / 0.5244 GB, free: 25.7 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3873, allocations: 0 / 0.5244 GB, free: 25.7 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005706/0.3879, allocations: 210.8 kB / 0.5246 GB, free: 25.68 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (Population.Integrator1.y,Natural_Resources.Integrator1.y,Capital_Investment.Integrator1.y,Pollution.Integrator1.y,CIAF.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 (68): * Single equations (assignments): 68 * 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.0001669/0.3881, allocations: 120.6 kB / 0.5247 GB, free: 25.59 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00133/0.3894, allocations: 0.9975 MB / 0.5257 GB, free: 25.58 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/0.3894, allocations: 1.281 kB / 0.5257 GB, free: 25.58 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006306/0.3901, allocations: 0.5094 MB / 0.5262 GB, free: 25.57 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005855/0.3907, allocations: 93.86 kB / 0.5263 GB, free: 25.56 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003811/0.3945, allocations: 2.842 MB / 0.529 GB, free: 24.39 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008537/0.3954, allocations: 1.307 MB / 0.5303 GB, free: 23.64 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001774/0.3955, allocations: 55 kB / 0.5304 GB, free: 23.63 MB / 398.1 MB Notification: Performance of SimCode: time 6.51e-07/0.3955, allocations: 1.406 kB / 0.5304 GB, free: 23.63 MB / 398.1 MB Notification: Performance of Templates: time 0.01913/0.4147, allocations: 11.31 MB / 0.5414 GB, free: 19.78 MB / 398.1 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe 2>&1)