Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.conf.json 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) Running command: translateModel(SystemDynamics.WorldDynamics.World2.Scenario_4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001005/0.001005, allocations: 174.7 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.189/1.189, allocations: 221.4 MB / 234.6 MB, free: 14.46 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008213/0.0008213, allocations: 86.47 kB / 285.6 MB, free: 13 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.292/0.292, allocations: 28.83 MB / 365.3 MB, free: 42.05 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 2.263e-05/2.266e-05, allocations: 0 / 430.7 MB, free: 4.449 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09872/0.09876, allocations: 57.47 MB / 488.1 MB, free: 10.91 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3063/0.4052, allocations: 80.82 MB / 0.5556 GB, free: 24.39 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001671/0.4054, allocations: 67.92 kB / 0.5557 GB, free: 24.36 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03292/0.4383, allocations: 14.56 MB / 0.5699 GB, free: 15.38 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.4383, allocations: 0 / 0.5699 GB, free: 15.38 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.813e-05/0.4384, allocations: 32.56 kB / 0.5699 GB, free: 15.35 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 290 * Number of variables: 290 Notification: Performance of Generate backend data structure: time 0.001776/0.4402, allocations: 1.42 MB / 0.5713 GB, free: 13.98 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.417e-05/0.4402, allocations: 8.031 kB / 0.5713 GB, free: 13.98 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002797/0.4405, allocations: 209.3 kB / 0.5715 GB, free: 13.77 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009093/0.4414, allocations: 0.7701 MB / 0.5723 GB, free: 13.03 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.554e-05/0.4415, allocations: 81.11 kB / 0.5724 GB, free: 12.98 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000138/0.4416, allocations: 103.9 kB / 0.5725 GB, free: 12.92 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001698/0.4433, allocations: 1.357 MB / 0.5738 GB, free: 11.86 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.125e-05/0.4434, allocations: 3.938 kB / 0.5738 GB, free: 11.86 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.443e-05/0.4435, allocations: 43.81 kB / 0.5738 GB, free: 11.85 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.419e-05/0.4435, allocations: 51.98 kB / 0.5739 GB, free: 11.8 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00166/0.4452, allocations: 1.337 MB / 0.5752 GB, free: 10.8 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004351/0.4495, allocations: 4.066 MB / 0.5792 GB, free: 7.324 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001757/0.4513, allocations: 1.584 MB / 0.5807 GB, free: 6.113 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005878/0.4519, allocations: 0.5617 MB / 0.5812 GB, free: 5.699 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.819e-05/0.452, allocations: 24.55 kB / 0.5813 GB, free: 5.672 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.515e-05/0.452, allocations: 37.94 kB / 0.5813 GB, free: 5.633 MB / 394.7 MB Notification: Performance of pre-optimization done (n=70): time 2.184e-06/0.452, allocations: 0 / 0.5813 GB, free: 5.633 MB / 394.7 MB Notification: Performance of matching and sorting (n=70): time 0.001507/0.4535, allocations: 1.29 MB / 0.5826 GB, free: 4.602 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.505e-05/0.4536, allocations: 89.7 kB / 0.5827 GB, free: 4.496 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001096/0.4547, allocations: 1.157 MB / 0.5838 GB, free: 3.578 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.642e-05/0.4547, allocations: 40.33 kB / 0.5838 GB, free: 3.543 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003694/0.4551, allocations: 0.839 MB / 0.5846 GB, free: 3.059 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00014/0.4553, allocations: 244.1 kB / 0.5849 GB, free: 2.852 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.712e-05/0.4553, allocations: 17.88 kB / 0.5849 GB, free: 2.848 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 5.489e-05/0.4554, allocations: 339.5 kB / 0.5852 GB, free: 2.523 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005899/0.456, allocations: 0.5256 MB / 0.5857 GB, free: 2.133 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006869/0.4567, allocations: 0.7889 MB / 0.5865 GB, free: 1.391 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007301/0.4574, allocations: 0.6087 MB / 0.5871 GB, free: 0.9219 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.93e-06/0.4574, allocations: 4 kB / 0.5871 GB, free: 0.918 MB / 394.7 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.00178/0.4592, allocations: 1.546 MB / 0.5886 GB, free: 15.67 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.609e-05/0.4592, allocations: 11.19 kB / 0.5886 GB, free: 15.66 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.161e-05/0.4593, allocations: 11.98 kB / 0.5886 GB, free: 15.65 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.292e-05/0.4593, allocations: 12 kB / 0.5886 GB, free: 15.64 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006612/0.4599, allocations: 206.9 kB / 0.5888 GB, free: 15.44 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.99e-05/0.46, allocations: 15.94 kB / 0.5889 GB, free: 15.43 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003694/0.4604, allocations: 93.3 kB / 0.5889 GB, free: 15.35 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001401/0.4605, allocations: 89.36 kB / 0.589 GB, free: 15.27 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (109): * Single equations (assignments): 109 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001513/0.4607, allocations: 162.1 kB / 0.5892 GB, free: 15.13 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002011/0.4609, allocations: 150.1 kB / 0.5893 GB, free: 14.98 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002495/0.4634, allocations: 1.631 MB / 0.5909 GB, free: 13.71 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.798e-06/0.4634, allocations: 8 kB / 0.5909 GB, free: 13.71 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.4634, allocations: 0 / 0.5909 GB, free: 13.71 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.396e-06/0.4634, allocations: 3.984 kB / 0.5909 GB, free: 13.7 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00314/0.4666, allocations: 2.57 MB / 0.5934 GB, free: 11.68 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.4666, allocations: 3.938 kB / 0.5934 GB, free: 11.67 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005409/0.4671, allocations: 142.9 kB / 0.5936 GB, free: 11.54 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.474e-05/0.4671, allocations: 8.031 kB / 0.5936 GB, free: 11.53 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.7e-05/0.4672, allocations: 30.42 kB / 0.5936 GB, free: 11.51 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.19e-06/0.4672, allocations: 4 kB / 0.5936 GB, free: 11.5 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.4672, allocations: 0 / 0.5936 GB, free: 11.5 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002617/0.4699, allocations: 2.304 MB / 0.5959 GB, free: 9.715 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001961/0.4701, allocations: 203.1 kB / 0.5961 GB, free: 9.496 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001099/0.4702, allocations: 19.06 kB / 0.5961 GB, free: 9.488 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002919/0.4705, allocations: 18.05 kB / 0.5961 GB, free: 9.48 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001222/0.4706, allocations: 51.94 kB / 0.5961 GB, free: 9.434 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.926e-05/0.4707, allocations: 79.34 kB / 0.5962 GB, free: 9.363 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001011/0.4717, allocations: 0.9025 MB / 0.5971 GB, free: 8.672 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4717, allocations: 0 / 0.5971 GB, free: 8.672 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0006319/0.4724, allocations: 235.3 kB / 0.5973 GB, free: 8.465 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001951/0.4726, allocations: 123.2 kB / 0.5974 GB, free: 8.348 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001175/0.4738, allocations: 1.059 MB / 0.5985 GB, free: 7.484 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.4738, allocations: 4 kB / 0.5985 GB, free: 7.48 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000495/0.4743, allocations: 0.5061 MB / 0.599 GB, free: 7.07 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000442/0.4747, allocations: 97.73 kB / 0.5991 GB, free: 7.023 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003172/0.4779, allocations: 2.221 MB / 0.6012 GB, free: 5 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009456/0.4789, allocations: 1.361 MB / 0.6026 GB, free: 3.648 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.000402/0.4793, allocations: 132.8 kB / 0.6027 GB, free: 3.52 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001555/0.4794, allocations: 55.44 kB / 0.6027 GB, free: 3.465 MB / 410.7 MB Notification: Performance of SimCode: time 2.6e-07/0.4795, allocations: 0 / 0.6027 GB, free: 3.465 MB / 410.7 MB Notification: Performance of Templates: time 0.01109/0.4905, allocations: 5.085 MB / 0.6077 GB, free: 14.43 MB / 426.7 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe 2>&1)