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.0007866/0.0007868, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0008351/0.0008351, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.333/1.333, allocations: 223.3 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3197/0.3197, allocations: 28.84 MB / 319.9 MB, free: 6.316 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002892/0.0002892, allocations: 8 kB / 387.9 MB, free: 3.566 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2693/0.2696, allocations: 57.48 MB / 445.4 MB, free: 32.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_1): time 0.002567/0.2722, allocations: 2.895 MB / 448.3 MB, free: 30.64 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009699/0.2732, allocations: 0.6555 MB / 448.9 MB, free: 30.17 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002749/0.2735, allocations: 22.12 kB / 448.9 MB, free: 30.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002431/0.2737, allocations: 108.3 kB / 449 MB, free: 30.11 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002096/0.274, allocations: 78.23 kB / 449.1 MB, free: 30.07 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004556/0.2744, allocations: 257.3 kB / 449.4 MB, free: 29.94 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005297/0.275, allocations: 0.7636 MB / 450.1 MB, free: 29.6 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005043/0.2755, allocations: 485.5 kB / 450.6 MB, free: 29.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001293/0.2756, allocations: 233 kB / 450.8 MB, free: 29.27 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001882/0.2758, allocations: 293.7 kB / 451.1 MB, free: 29.12 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.385e-05/0.2759, allocations: 24.25 kB / 451.1 MB, free: 29.11 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001109/0.276, allocations: 42.45 kB / 451.2 MB, free: 29.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002064/0.2762, allocations: 332.1 kB / 451.5 MB, free: 28.99 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.879e-05/0.2763, allocations: 225.7 kB / 451.7 MB, free: 28.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004681/0.2768, allocations: 0.768 MB / 452.5 MB, free: 28.6 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.2768, allocations: 0 / 452.5 MB, free: 28.6 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.2768, allocations: 0 / 452.5 MB, free: 28.6 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.455e-05/0.2768, allocations: 0 / 452.5 MB, free: 28.6 MB / 350.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.001302/0.2781, allocations: 1.482 MB / 454 MB, free: 27.54 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.638e-05/0.2782, allocations: 13.5 kB / 454 MB, free: 27.54 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001595/0.2783, allocations: 194.5 kB / 454.2 MB, free: 27.44 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005971/0.2789, allocations: 0.6698 MB / 454.9 MB, free: 26.95 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.199e-05/0.279, allocations: 78.83 kB / 454.9 MB, free: 26.91 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.18e-05/0.2791, allocations: 102.4 kB / 455 MB, free: 26.87 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00121/0.2803, allocations: 1.127 MB / 456.2 MB, free: 26.39 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.04e-05/0.2804, allocations: 11.92 kB / 456.2 MB, free: 26.38 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.097e-05/0.2804, allocations: 39.88 kB / 456.2 MB, free: 26.35 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.627e-05/0.2804, allocations: 26.25 kB / 456.2 MB, free: 26.35 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001067/0.2815, allocations: 1.043 MB / 457.3 MB, free: 26.1 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003418/0.2849, allocations: 3.608 MB / 460.9 MB, free: 24.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001454/0.2864, allocations: 1.263 MB / 462.1 MB, free: 23.78 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005169/0.2869, allocations: 459.1 kB / 462.6 MB, free: 23.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.64e-05/0.287, allocations: 28.14 kB / 462.6 MB, free: 23.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.622e-05/0.287, allocations: 41.17 kB / 462.7 MB, free: 23.61 MB / 350.1 MB Notification: Performance of pre-optimization done (n=66): time 2.024e-06/0.2871, allocations: 5.031 kB / 462.7 MB, free: 23.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=66): time 0.001736/0.2888, allocations: 1.436 MB / 464.1 MB, free: 23.22 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.541e-05/0.2888, allocations: 62.06 kB / 464.2 MB, free: 23.15 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001377/0.2902, allocations: 1.221 MB / 465.4 MB, free: 22.71 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.992e-05/0.2903, allocations: 36.48 kB / 465.4 MB, free: 22.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004973/0.2908, allocations: 0.7439 MB / 466.2 MB, free: 22.09 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001626/0.2909, allocations: 227.8 kB / 466.4 MB, free: 21.91 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.508e-05/0.291, allocations: 14.88 kB / 466.4 MB, free: 21.9 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.58e-05/0.2911, allocations: 326.9 kB / 466.7 MB, free: 21.59 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000534/0.2916, allocations: 419.1 kB / 467.1 MB, free: 21.49 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005335/0.2921, allocations: 0.5051 MB / 467.6 MB, free: 21.29 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005578/0.2927, allocations: 452.3 kB / 468.1 MB, free: 21.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.441e-06/0.2927, allocations: 3.953 kB / 468.1 MB, free: 21.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001422/0.2941, allocations: 1.128 MB / 469.2 MB, free: 20.8 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.223e-05/0.2942, allocations: 5.734 kB / 469.2 MB, free: 20.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.187e-06/0.2942, allocations: 2.469 kB / 469.2 MB, free: 20.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.246e-05/0.2942, allocations: 6.875 kB / 469.2 MB, free: 20.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004614/0.2947, allocations: 125 kB / 469.3 MB, free: 20.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.705e-05/0.2947, allocations: 10.42 kB / 469.4 MB, free: 20.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002308/0.2949, allocations: 55.88 kB / 469.4 MB, free: 20.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.134e-05/0.295, allocations: 22.88 kB / 469.4 MB, free: 20.74 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004691/0.2955, allocations: 362.3 kB / 469.8 MB, free: 20.54 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001427/0.2956, allocations: 139.8 kB / 469.9 MB, free: 20.46 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001589/0.2972, allocations: 1.143 MB / 471.1 MB, free: 20.1 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.665e-06/0.2972, allocations: 4.969 kB / 471.1 MB, free: 20.1 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.2972, allocations: 2.172 kB / 471.1 MB, free: 20.1 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.276e-06/0.2973, allocations: 2.766 kB / 471.1 MB, free: 20.1 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002899/0.3002, allocations: 2.27 MB / 473.3 MB, free: 19.24 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.666e-06/0.3002, allocations: 1.281 kB / 473.3 MB, free: 19.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004312/0.3006, allocations: 109.4 kB / 473.5 MB, free: 19.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.652e-06/0.3006, allocations: 2.312 kB / 473.5 MB, free: 19.23 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.206e-05/0.3007, allocations: 14.47 kB / 473.5 MB, free: 19.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.541e-06/0.3007, allocations: 3.484 kB / 473.5 MB, free: 19.22 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.3007, allocations: 0 / 473.5 MB, free: 19.22 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002294/0.303, allocations: 1.789 MB / 475.3 MB, free: 18.62 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000169/0.3032, allocations: 207.3 kB / 475.5 MB, free: 18.43 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.847e-05/0.3033, allocations: 10.88 kB / 475.5 MB, free: 18.42 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001874/0.3035, allocations: 11.81 kB / 475.5 MB, free: 18.41 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.442e-05/0.3035, allocations: 41.31 kB / 475.5 MB, free: 18.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.525e-05/0.3036, allocations: 17.78 kB / 475.5 MB, free: 18.4 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001282/0.3049, allocations: 0.8406 MB / 476.4 MB, free: 18.1 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3049, allocations: 1.062 kB / 476.4 MB, free: 18.1 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008593/0.3057, allocations: 207.8 kB / 476.6 MB, free: 18.03 MB / 350.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 (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.000227/0.306, allocations: 120 kB / 476.7 MB, free: 17.92 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001267/0.3072, allocations: 0.9383 MB / 477.6 MB, free: 17.42 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3073, allocations: 0 / 477.6 MB, free: 17.42 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004289/0.3077, allocations: 491.2 kB / 478.1 MB, free: 16.98 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006152/0.3083, allocations: 92.05 kB / 478.2 MB, free: 16.9 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003146/0.3115, allocations: 3.092 MB / 481.3 MB, free: 14.05 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007405/0.3122, allocations: 1.288 MB / 482.6 MB, free: 12.95 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001953/0.3124, allocations: 72.31 kB / 482.7 MB, free: 12.89 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.698e-05/0.3125, allocations: 49.55 kB / 482.7 MB, free: 12.84 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3125, allocations: 0 / 482.7 MB, free: 12.84 MB / 350.1 MB Notification: Performance of Templates: time 0.009596/0.3221, allocations: 4.593 MB / 487.3 MB, free: 8.914 MB / 350.1 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: