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/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_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/Complex 4.0.0+maint.om/package.mo): time 0.0009144/0.0009145, 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.195/1.195, allocations: 221.4 MB / 234.6 MB, free: 14.44 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.0008652/0.0008652, allocations: 88.41 kB / 285.6 MB, free: 12.99 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3036/0.3036, allocations: 28.82 MB / 365.3 MB, free: 42.06 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 2.342e-05/2.346e-05, allocations: 4 kB / 430.7 MB, free: 4.43 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1061, allocations: 57.48 MB / 488.1 MB, free: 10.88 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3112/0.4174, allocations: 80.62 MB / 0.5554 GB, free: 24.49 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001468/0.4176, allocations: 57.58 kB / 0.5555 GB, free: 24.47 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03317/0.4508, allocations: 14.13 MB / 0.5693 GB, free: 15.95 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.4508, allocations: 0 / 0.5693 GB, free: 15.95 MB / 394.7 MB Notification: Performance of Transformations before backend: time 9.001e-05/0.4509, allocations: 36 kB / 0.5693 GB, free: 15.92 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: 259 * Number of variables: 259 Notification: Performance of Generate backend data structure: time 0.002196/0.4531, allocations: 1.338 MB / 0.5706 GB, free: 14.62 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.963e-05/0.4532, allocations: 12.02 kB / 0.5706 GB, free: 14.61 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004202/0.4536, allocations: 197.6 kB / 0.5708 GB, free: 14.42 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001083/0.4547, allocations: 0.7341 MB / 0.5715 GB, free: 13.71 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.433e-05/0.4548, allocations: 76.77 kB / 0.5716 GB, free: 13.67 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001703/0.4549, allocations: 99.88 kB / 0.5717 GB, free: 13.61 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001754/0.4567, allocations: 1.224 MB / 0.5729 GB, free: 12.65 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.054e-05/0.4567, allocations: 0 / 0.5729 GB, free: 12.65 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.265e-05/0.4568, allocations: 42.06 kB / 0.5729 GB, free: 12.64 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.598e-05/0.4568, allocations: 24 kB / 0.573 GB, free: 12.62 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001553/0.4584, allocations: 1.19 MB / 0.5741 GB, free: 11.74 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004474/0.4629, allocations: 3.768 MB / 0.5778 GB, free: 8.516 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001747/0.4646, allocations: 1.493 MB / 0.5793 GB, free: 7.391 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005615/0.4652, allocations: 0.5175 MB / 0.5798 GB, free: 7.016 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.54e-05/0.4653, allocations: 24.77 kB / 0.5798 GB, free: 6.992 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.906e-05/0.4653, allocations: 41.94 kB / 0.5798 GB, free: 6.945 MB / 394.7 MB Notification: Performance of pre-optimization done (n=66): time 1.663e-06/0.4653, allocations: 0 / 0.5798 GB, free: 6.945 MB / 394.7 MB Notification: Performance of matching and sorting (n=66): time 0.001406/0.4668, allocations: 1.206 MB / 0.581 GB, free: 5.984 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.344e-05/0.4668, allocations: 63.95 kB / 0.5811 GB, free: 5.91 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001026/0.4678, allocations: 1.04 MB / 0.5821 GB, free: 5.082 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.567e-05/0.4679, allocations: 40.7 kB / 0.5821 GB, free: 5.047 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003548/0.4683, allocations: 0.7463 MB / 0.5829 GB, free: 4.641 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001357/0.4684, allocations: 231.5 kB / 0.5831 GB, free: 4.441 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.228e-05/0.4685, allocations: 12.38 kB / 0.5831 GB, free: 4.438 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 5.242e-05/0.4685, allocations: 334.1 kB / 0.5834 GB, free: 4.117 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00054/0.4691, allocations: 482.3 kB / 0.5839 GB, free: 3.77 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005716/0.4696, allocations: 0.5708 MB / 0.5844 GB, free: 3.301 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005939/0.4702, allocations: 0.5147 MB / 0.5849 GB, free: 2.914 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.4703, allocations: 3.938 kB / 0.5849 GB, free: 2.91 MB / 394.7 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001422/0.4717, allocations: 1.296 MB / 0.5862 GB, free: 1.875 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.56e-05/0.4717, allocations: 4 kB / 0.5862 GB, free: 1.871 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.4717, allocations: 4 kB / 0.5862 GB, free: 1.867 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.703e-05/0.4717, allocations: 7.953 kB / 0.5862 GB, free: 1.859 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004687/0.4722, allocations: 150.6 kB / 0.5864 GB, free: 1.719 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.388e-05/0.4722, allocations: 15.98 kB / 0.5864 GB, free: 1.703 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002508/0.4725, allocations: 48.16 kB / 0.5864 GB, free: 1.668 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.711e-05/0.4726, allocations: 70.67 kB / 0.5865 GB, free: 1.605 MB / 394.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000111/0.4727, allocations: 137.4 kB / 0.5866 GB, free: 1.484 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000133/0.4729, allocations: 130.3 kB / 0.5867 GB, free: 1.355 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001974/0.4748, allocations: 1.523 MB / 0.5882 GB, free: 180 kB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.083e-06/0.4749, allocations: 8 kB / 0.5882 GB, free: 172 kB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.742e-06/0.4749, allocations: 7.938 kB / 0.5882 GB, free: 164 kB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.152e-06/0.4749, allocations: 0 / 0.5882 GB, free: 164 kB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003078/0.478, allocations: 2.445 MB / 0.5906 GB, free: 14.24 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.478, allocations: 0 / 0.5906 GB, free: 14.24 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005129/0.4785, allocations: 131.2 kB / 0.5908 GB, free: 14.12 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.839e-06/0.4785, allocations: 0 / 0.5908 GB, free: 14.12 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.164e-05/0.4786, allocations: 34.75 kB / 0.5908 GB, free: 14.09 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/0.4786, allocations: 4 kB / 0.5908 GB, free: 14.09 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.4786, allocations: 4.625 kB / 0.5908 GB, free: 14.09 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00257/0.4812, allocations: 2.077 MB / 0.5928 GB, free: 12.5 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002219/0.4814, allocations: 205.4 kB / 0.593 GB, free: 12.28 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001086/0.4815, allocations: 9.875 kB / 0.593 GB, free: 12.28 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002378/0.4818, allocations: 15.14 kB / 0.593 GB, free: 12.27 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.776e-05/0.4819, allocations: 50.19 kB / 0.5931 GB, free: 12.23 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001016/0.482, allocations: 63.91 kB / 0.5932 GB, free: 12.17 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001067/0.4831, allocations: 0.8364 MB / 0.594 GB, free: 11.52 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.8e-07/0.4831, allocations: 0 / 0.594 GB, free: 11.52 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0005759/0.4837, allocations: 204 kB / 0.5942 GB, free: 11.34 MB / 410.7 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 () * 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 (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.0002037/0.4839, allocations: 123.3 kB / 0.5943 GB, free: 11.22 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001092/0.485, allocations: 0.9281 MB / 0.5952 GB, free: 10.48 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.485, allocations: 0.625 kB / 0.5952 GB, free: 10.48 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005148/0.4855, allocations: 495.8 kB / 0.5957 GB, free: 10.09 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00043/0.486, allocations: 74.19 kB / 0.5957 GB, free: 10.06 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003105/0.4891, allocations: 2.052 MB / 0.5977 GB, free: 8.191 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009707/0.4901, allocations: 1.313 MB / 0.599 GB, free: 6.891 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002296/0.4903, allocations: 80.34 kB / 0.5991 GB, free: 6.809 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000118/0.4904, allocations: 46.81 kB / 0.5991 GB, free: 6.766 MB / 410.7 MB Notification: Performance of SimCode: time 4.61e-07/0.4904, allocations: 0 / 0.5991 GB, free: 6.766 MB / 410.7 MB Notification: Performance of Templates: time 0.01079/0.5012, allocations: 4.574 MB / 0.6036 GB, free: 2.242 MB / 410.7 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)