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.001814/0.001813, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002179/0.002179, allocations: 196.3 kB / 16.14 MB, free: 6.703 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.344/1.344, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3771/0.3771, allocations: 28.79 MB / 318.8 MB, free: 5.953 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00163/0.00163, allocations: 55.91 kB / 385.9 MB, free: 4.125 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3966/0.3983, allocations: 56.42 MB / 442.3 MB, free: 39.79 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_1): time 0.004193/0.4025, allocations: 3.629 MB / 446 MB, free: 37.52 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001945/0.4045, allocations: 0.6516 MB / 446.6 MB, free: 37.32 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004358/0.405, allocations: 21.44 kB / 446.6 MB, free: 37.31 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003865/0.4054, allocations: 117.7 kB / 446.8 MB, free: 37.26 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002751/0.4057, allocations: 82.81 kB / 446.8 MB, free: 37.22 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000587/0.4063, allocations: 309 kB / 447.1 MB, free: 37.21 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006045/0.4069, allocations: 0.8045 MB / 447.9 MB, free: 37.11 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006314/0.4075, allocations: 0.6141 MB / 448.6 MB, free: 36.95 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001901/0.4077, allocations: 305.5 kB / 448.9 MB, free: 36.86 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002449/0.408, allocations: 420.5 kB / 449.3 MB, free: 36.66 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.051e-05/0.4081, allocations: 54.03 kB / 449.3 MB, free: 36.66 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001523/0.4083, allocations: 81.22 kB / 449.4 MB, free: 36.65 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002453/0.4085, allocations: 401.4 kB / 449.8 MB, free: 36.48 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002642/0.4088, allocations: 0.5688 MB / 450.4 MB, free: 36.05 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006213/0.4094, allocations: 1.114 MB / 451.5 MB, free: 35.47 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.4094, allocations: 4 kB / 451.5 MB, free: 35.46 MB / 366.1 MB Notification: Performance of FrontEnd: time 7.51e-07/0.4094, allocations: 0 / 451.5 MB, free: 35.46 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.725e-05/0.4094, allocations: 0 / 451.5 MB, free: 35.46 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: 259 * Number of variables: 259 Notification: Performance of Generate backend data structure: time 0.001624/0.4111, allocations: 1.72 MB / 453.2 MB, free: 34.25 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.344e-05/0.4111, allocations: 10.72 kB / 453.2 MB, free: 34.25 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001896/0.4113, allocations: 190.4 kB / 453.4 MB, free: 34.15 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005943/0.4119, allocations: 0.7358 MB / 454.1 MB, free: 33.59 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.635e-05/0.412, allocations: 77.48 kB / 454.2 MB, free: 33.56 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.62e-05/0.4121, allocations: 102 kB / 454.3 MB, free: 33.52 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001237/0.4133, allocations: 1.13 MB / 455.4 MB, free: 33.05 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.006e-05/0.4134, allocations: 192 / 455.4 MB, free: 33.05 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.533e-05/0.4134, allocations: 44.56 kB / 455.5 MB, free: 33.01 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.587e-05/0.4135, allocations: 26 kB / 455.5 MB, free: 33.01 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001081/0.4145, allocations: 1.059 MB / 456.6 MB, free: 32.75 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003704/0.4183, allocations: 3.607 MB / 460.2 MB, free: 30.74 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001327/0.4196, allocations: 1.267 MB / 461.4 MB, free: 30.44 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004605/0.4201, allocations: 460.7 kB / 461.9 MB, free: 30.32 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.957e-05/0.4202, allocations: 29.56 kB / 461.9 MB, free: 30.31 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.86e-05/0.4202, allocations: 42 kB / 462 MB, free: 30.27 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.445e-06/0.4202, allocations: 3.938 kB / 462 MB, free: 30.26 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.001579/0.4218, allocations: 1.453 MB / 463.4 MB, free: 29.86 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.26e-05/0.4219, allocations: 57.03 kB / 463.5 MB, free: 29.8 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001415/0.4233, allocations: 1.238 MB / 464.7 MB, free: 29.36 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.575e-05/0.4233, allocations: 40.33 kB / 464.7 MB, free: 29.32 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004735/0.4238, allocations: 0.7433 MB / 465.5 MB, free: 28.73 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001689/0.424, allocations: 230.8 kB / 465.7 MB, free: 28.55 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001693/0.4242, allocations: 111.6 kB / 465.8 MB, free: 28.49 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.561e-05/0.4243, allocations: 329.9 kB / 466.1 MB, free: 28.18 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004341/0.4247, allocations: 412.4 kB / 466.6 MB, free: 28.09 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004826/0.4252, allocations: 0.518 MB / 467.1 MB, free: 27.88 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001091/0.4263, allocations: 0.947 MB / 468 MB, free: 27.54 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.337e-06/0.4263, allocations: 0 / 468 MB, free: 27.54 MB / 366.1 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001769/0.4281, allocations: 1.134 MB / 469.2 MB, free: 27.18 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.569e-05/0.4281, allocations: 6.406 kB / 469.2 MB, free: 27.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.136e-05/0.4281, allocations: 6.094 kB / 469.2 MB, free: 27.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.522e-05/0.4282, allocations: 5.469 kB / 469.2 MB, free: 27.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004777/0.4286, allocations: 132 kB / 469.3 MB, free: 27.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.677e-05/0.4287, allocations: 5.469 kB / 469.3 MB, free: 27.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002772/0.429, allocations: 52.12 kB / 469.4 MB, free: 27.12 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.32e-05/0.429, allocations: 26.47 kB / 469.4 MB, free: 27.12 MB / 366.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.0005506/0.4296, allocations: 367.6 kB / 469.7 MB, free: 26.91 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001686/0.4297, allocations: 134.8 kB / 469.9 MB, free: 26.83 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001747/0.4315, allocations: 1.147 MB / 471 MB, free: 26.48 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-05/0.4315, allocations: 6.844 kB / 471 MB, free: 26.48 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.072e-06/0.4315, allocations: 0 / 471 MB, free: 26.48 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.358e-06/0.4316, allocations: 8.469 kB / 471 MB, free: 26.47 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003754/0.4353, allocations: 2.268 MB / 473.3 MB, free: 25.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.243e-06/0.4353, allocations: 1.562 kB / 473.3 MB, free: 25.62 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005333/0.4359, allocations: 106.4 kB / 473.4 MB, free: 25.61 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.171e-05/0.4359, allocations: 6.375 kB / 473.4 MB, free: 25.61 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.054e-05/0.436, allocations: 17.72 kB / 473.4 MB, free: 25.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.899e-06/0.436, allocations: 5.281 kB / 473.4 MB, free: 25.59 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/0.436, allocations: 1.375 kB / 473.4 MB, free: 25.59 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002793/0.4388, allocations: 1.787 MB / 475.2 MB, free: 25 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002598/0.4391, allocations: 200.4 kB / 475.4 MB, free: 24.82 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001174/0.4392, allocations: 15.36 kB / 475.4 MB, free: 24.81 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002231/0.4394, allocations: 9.969 kB / 475.4 MB, free: 24.8 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001002/0.4395, allocations: 37.17 kB / 475.5 MB, free: 24.8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.72e-05/0.4396, allocations: 21.28 kB / 475.5 MB, free: 24.79 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001303/0.4409, allocations: 0.8581 MB / 476.4 MB, free: 24.48 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4409, allocations: 0 / 476.4 MB, free: 24.48 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007088/0.4416, allocations: 200.3 kB / 476.6 MB, free: 24.42 MB / 366.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.0001995/0.4418, allocations: 118.6 kB / 476.7 MB, free: 24.31 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001438/0.4433, allocations: 0.9427 MB / 477.6 MB, free: 24.1 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.4433, allocations: 0 / 477.6 MB, free: 24.1 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006531/0.4439, allocations: 500 kB / 478.1 MB, free: 23.98 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008306/0.4448, allocations: 82.84 kB / 478.2 MB, free: 23.93 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004357/0.4491, allocations: 3.248 MB / 481.4 MB, free: 22.12 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008507/0.45, allocations: 1.282 MB / 482.7 MB, free: 21.37 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003065/0.4503, allocations: 76.06 kB / 482.8 MB, free: 21.35 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001284/0.4505, allocations: 46.12 kB / 482.8 MB, free: 21.34 MB / 366.1 MB Notification: Performance of SimCode: time 1.292e-06/0.4505, allocations: 0 / 482.8 MB, free: 21.34 MB / 366.1 MB Notification: Performance of Templates: time 0.01463/0.4651, allocations: 4.899 MB / 487.7 MB, free: 20.87 MB / 366.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)