Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.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_1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008488/0.008488, allocations: 101.9 kB / 15.73 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.001784/0.001784, allocations: 198.7 kB / 16.68 MB, free: 6.375 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.581/1.581, 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.3718/0.3718, allocations: 28.8 MB / 319.3 MB, free: 5.617 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001921/0.001921, allocations: 63.22 kB / 444.4 MB, free: 36.78 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1587/0.1606, allocations: 56.42 MB / 0.489 GB, free: 8.57 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_1): time 0.006818/0.1675, allocations: 3.644 MB / 0.4926 GB, free: 5.641 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003013/0.1705, allocations: 0.6741 MB / 0.4933 GB, free: 5.07 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001299/0.1719, allocations: 17.94 kB / 0.4933 GB, free: 5.066 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008453/0.1727, allocations: 163.9 kB / 0.4934 GB, free: 4.926 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008773/0.1737, allocations: 125.8 kB / 0.4936 GB, free: 4.828 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001174/0.1749, allocations: 356.4 kB / 0.4939 GB, free: 4.543 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001589/0.1765, allocations: 0.8532 MB / 0.4947 GB, free: 3.992 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001218/0.1777, allocations: 0.6364 MB / 0.4953 GB, free: 3.316 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004272/0.1782, allocations: 338.4 kB / 0.4957 GB, free: 2.984 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005079/0.1787, allocations: 417.6 kB / 0.4961 GB, free: 2.574 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002116/0.1789, allocations: 84 kB / 0.4961 GB, free: 2.492 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002843/0.1792, allocations: 116 kB / 0.4963 GB, free: 2.379 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004144/0.1797, allocations: 434.5 kB / 0.4967 GB, free: 1.953 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006523/0.1803, allocations: 0.6009 MB / 0.4973 GB, free: 1.348 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001704/0.182, allocations: 1.235 MB / 0.4985 GB, free: 108 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.72e-06/0.1821, allocations: 0 / 0.4985 GB, free: 108 kB / 366.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.1821, allocations: 0 / 0.4985 GB, free: 108 kB / 366.1 MB Notification: Performance of Transformations before backend: time 7.799e-05/0.1822, allocations: 0 / 0.4985 GB, free: 108 kB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 259 * Number of variables: 259 Notification: Performance of Generate backend data structure: time 0.003546/0.1857, allocations: 1.783 MB / 0.5002 GB, free: 14.25 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.207e-05/0.1858, allocations: 8.031 kB / 0.5002 GB, free: 14.25 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003273/0.1861, allocations: 203.6 kB / 0.5004 GB, free: 14.05 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001292/0.1874, allocations: 0.7593 MB / 0.5012 GB, free: 13.24 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.246e-05/0.1875, allocations: 82.42 kB / 0.5012 GB, free: 13.16 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001662/0.1877, allocations: 104.3 kB / 0.5013 GB, free: 13.05 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002225/0.1899, allocations: 1.13 MB / 0.5024 GB, free: 11.86 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.583e-05/0.19, allocations: 192 / 0.5024 GB, free: 11.86 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.798e-05/0.1901, allocations: 43.94 kB / 0.5025 GB, free: 11.82 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.076e-05/0.1901, allocations: 28 kB / 0.5025 GB, free: 11.79 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001964/0.1921, allocations: 1.05 MB / 0.5035 GB, free: 10.73 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004653/0.1967, allocations: 3.58 MB / 0.507 GB, free: 7.051 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001426/0.1982, allocations: 1.275 MB / 0.5083 GB, free: 5.766 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004818/0.1987, allocations: 458.4 kB / 0.5087 GB, free: 5.316 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.505e-05/0.1988, allocations: 28.77 kB / 0.5087 GB, free: 5.289 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.845e-05/0.1988, allocations: 39.12 kB / 0.5088 GB, free: 5.242 MB / 382.1 MB Notification: Performance of pre-optimization done (n=66): time 2.093e-06/0.1988, allocations: 3.938 kB / 0.5088 GB, free: 5.238 MB / 382.1 MB Notification: Performance of matching and sorting (n=66): time 0.001717/0.2005, allocations: 1.455 MB / 0.5102 GB, free: 3.777 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000123/0.2007, allocations: 59.97 kB / 0.5103 GB, free: 3.707 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001369/0.2021, allocations: 1.23 MB / 0.5115 GB, free: 2.465 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.267e-05/0.2021, allocations: 33.7 kB / 0.5115 GB, free: 2.426 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005306/0.2026, allocations: 0.7644 MB / 0.5122 GB, free: 1.652 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001757/0.2028, allocations: 242 kB / 0.5125 GB, free: 1.414 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001549/0.203, allocations: 114.3 kB / 0.5126 GB, free: 1.297 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001324/0.2031, allocations: 337.9 kB / 0.5129 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004377/0.2036, allocations: 409.1 kB / 0.5133 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006276/0.2042, allocations: 0.512 MB / 0.5138 GB, free: 16 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001128/0.2053, allocations: 0.9471 MB / 0.5147 GB, free: 15.04 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.2053, allocations: 0 / 0.5147 GB, free: 15.04 MB / 398.1 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001591/0.2069, allocations: 1.149 MB / 0.5158 GB, free: 13.88 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.316e-05/0.207, allocations: 4 kB / 0.5158 GB, free: 13.88 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/0.207, allocations: 4 kB / 0.5158 GB, free: 13.87 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.412e-05/0.207, allocations: 4 kB / 0.5158 GB, free: 13.87 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004699/0.2075, allocations: 123.8 kB / 0.516 GB, free: 13.75 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.835e-05/0.2075, allocations: 8 kB / 0.516 GB, free: 13.74 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002657/0.2078, allocations: 55.56 kB / 0.516 GB, free: 13.68 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.255e-05/0.2078, allocations: 23.98 kB / 0.516 GB, free: 13.66 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 (81): * Single equations (assignments): 81 * 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.000588/0.2084, allocations: 369.2 kB / 0.5164 GB, free: 13.29 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001606/0.2086, allocations: 147 kB / 0.5165 GB, free: 13.14 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001427/0.21, allocations: 1.142 MB / 0.5177 GB, free: 11.99 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.297e-06/0.2101, allocations: 8 kB / 0.5177 GB, free: 11.98 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.2101, allocations: 0 / 0.5177 GB, free: 11.98 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.719e-05/0.2101, allocations: 3.984 kB / 0.5177 GB, free: 11.98 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002678/0.2128, allocations: 2.273 MB / 0.5199 GB, free: 9.645 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.2128, allocations: 0 / 0.5199 GB, free: 9.645 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004349/0.2132, allocations: 111.8 kB / 0.52 GB, free: 9.535 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.366e-06/0.2133, allocations: 4 kB / 0.52 GB, free: 9.531 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.469e-05/0.2133, allocations: 15.98 kB / 0.52 GB, free: 9.516 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.2133, allocations: 4 kB / 0.52 GB, free: 9.512 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.879e-06/0.2133, allocations: 4 kB / 0.52 GB, free: 9.508 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00203/0.2153, allocations: 1.786 MB / 0.5218 GB, free: 7.699 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001679/0.2155, allocations: 204 kB / 0.522 GB, free: 7.48 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.327e-05/0.2156, allocations: 16.19 kB / 0.522 GB, free: 7.465 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001871/0.2158, allocations: 12 kB / 0.522 GB, free: 7.453 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.733e-05/0.2159, allocations: 40.5 kB / 0.522 GB, free: 7.414 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.045e-05/0.2159, allocations: 23.94 kB / 0.522 GB, free: 7.391 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0009226/0.2168, allocations: 0.8558 MB / 0.5229 GB, free: 6.535 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2169, allocations: 0 / 0.5229 GB, free: 6.535 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005408/0.2174, allocations: 215.2 kB / 0.5231 GB, free: 6.324 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 (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.0002071/0.2176, allocations: 115.7 kB / 0.5232 GB, free: 6.199 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001153/0.2188, allocations: 0.9378 MB / 0.5241 GB, free: 5.262 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.2e-06/0.2188, allocations: 4.125 kB / 0.5241 GB, free: 5.258 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005298/0.2193, allocations: 498.9 kB / 0.5246 GB, free: 4.77 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006186/0.22, allocations: 93.5 kB / 0.5247 GB, free: 4.684 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003506/0.2235, allocations: 2.702 MB / 0.5273 GB, free: 1.945 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000838/0.2243, allocations: 1.287 MB / 0.5286 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002116/0.2245, allocations: 72.36 kB / 0.5286 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001162/0.2247, allocations: 43.44 kB / 0.5287 GB, free: 0.5195 MB / 398.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2247, allocations: 0 / 0.5287 GB, free: 0.5195 MB / 398.1 MB Notification: Performance of Templates: time 0.01157/0.2362, allocations: 5.198 MB / 0.5338 GB, free: 11.32 MB / 414.1 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe 2>&1)