Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.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_2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001005/0.001005, allocations: 91.14 kB / 15.06 MB, free: 1.098 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.001065/0.001065, allocations: 172.7 kB / 15.95 MB, free: 208 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.368/1.368, allocations: 223.3 MB / 240 MB, free: 5.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3009/0.3009, allocations: 28.84 MB / 319.9 MB, free: 6.266 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002936/0.0002938, allocations: 8 kB / 387.9 MB, free: 3.535 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.287/0.2873, allocations: 57.48 MB / 445.4 MB, free: 32.93 MB / 350.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_2): time 0.002854/0.2902, allocations: 2.902 MB / 448.3 MB, free: 30.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001487/0.2917, allocations: 0.6591 MB / 448.9 MB, free: 30.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003509/0.2921, allocations: 13.31 kB / 448.9 MB, free: 30.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003351/0.2924, allocations: 128.8 kB / 449.1 MB, free: 30.22 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002408/0.2927, allocations: 88.7 kB / 449.2 MB, free: 30.18 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005763/0.2933, allocations: 255.7 kB / 449.4 MB, free: 30.05 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006432/0.2939, allocations: 0.7729 MB / 450.2 MB, free: 29.71 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005918/0.2945, allocations: 488.6 kB / 450.7 MB, free: 29.49 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000182/0.2947, allocations: 239.7 kB / 450.9 MB, free: 29.38 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002708/0.295, allocations: 307.5 kB / 451.2 MB, free: 29.22 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.81e-05/0.2951, allocations: 24.53 kB / 451.2 MB, free: 29.21 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001343/0.2952, allocations: 43.02 kB / 451.3 MB, free: 29.21 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002289/0.2955, allocations: 336.2 kB / 451.6 MB, free: 29.1 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001175/0.2956, allocations: 231.5 kB / 451.8 MB, free: 28.92 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000552/0.2962, allocations: 0.7921 MB / 452.6 MB, free: 28.69 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.2962, allocations: 0 / 452.6 MB, free: 28.69 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.2962, allocations: 0 / 452.6 MB, free: 28.69 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.463e-05/0.2962, allocations: 0 / 452.6 MB, free: 28.69 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.001536/0.2978, allocations: 1.533 MB / 454.1 MB, free: 27.6 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.238e-05/0.2978, allocations: 9.188 kB / 454.1 MB, free: 27.6 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002073/0.298, allocations: 199.4 kB / 454.3 MB, free: 27.49 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006985/0.2987, allocations: 0.6825 MB / 455 MB, free: 27 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.035e-05/0.2988, allocations: 80.06 kB / 455.1 MB, free: 26.96 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001047/0.2989, allocations: 97.62 kB / 455.2 MB, free: 26.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001507/0.3004, allocations: 1.15 MB / 456.3 MB, free: 26.44 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.18e-05/0.3005, allocations: 2.625 kB / 456.3 MB, free: 26.44 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.938e-05/0.3005, allocations: 39.84 kB / 456.4 MB, free: 26.41 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.111e-05/0.3005, allocations: 30.91 kB / 456.4 MB, free: 26.41 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001269/0.3018, allocations: 1.089 MB / 457.5 MB, free: 26.14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004257/0.3061, allocations: 3.68 MB / 461.2 MB, free: 24.12 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001685/0.3078, allocations: 1.33 MB / 462.5 MB, free: 23.79 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000571/0.3084, allocations: 478.9 kB / 463 MB, free: 23.67 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.478e-05/0.3085, allocations: 24.23 kB / 463 MB, free: 23.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.484e-05/0.3085, allocations: 46.05 kB / 463 MB, free: 23.62 MB / 350.1 MB Notification: Performance of pre-optimization done (n=67): time 2.855e-06/0.3085, allocations: 4 kB / 463.1 MB, free: 23.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=67): time 0.002342/0.3109, allocations: 1.512 MB / 464.6 MB, free: 23.2 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.245e-05/0.3109, allocations: 58.41 kB / 464.6 MB, free: 23.14 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002456/0.3134, allocations: 1.273 MB / 465.9 MB, free: 22.7 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.62e-05/0.3135, allocations: 37.11 kB / 465.9 MB, free: 22.66 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007978/0.3143, allocations: 0.7675 MB / 466.7 MB, free: 22.05 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002296/0.3145, allocations: 232.1 kB / 466.9 MB, free: 21.87 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.962e-05/0.3146, allocations: 14.75 kB / 466.9 MB, free: 21.86 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.3147, allocations: 336.2 kB / 467.3 MB, free: 21.54 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007312/0.3154, allocations: 432.2 kB / 467.7 MB, free: 21.45 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006738/0.3161, allocations: 0.5203 MB / 468.2 MB, free: 21.25 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006107/0.3167, allocations: 478.7 kB / 468.7 MB, free: 21.12 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.361e-06/0.3167, allocations: 1.25 kB / 468.7 MB, free: 21.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001588/0.3183, allocations: 1.179 MB / 469.9 MB, free: 20.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.821e-05/0.3184, allocations: 6.438 kB / 469.9 MB, free: 20.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.307e-05/0.3184, allocations: 3.234 kB / 469.9 MB, free: 20.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.446e-05/0.3184, allocations: 6.469 kB / 469.9 MB, free: 20.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004841/0.3189, allocations: 127.6 kB / 470 MB, free: 20.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.515e-05/0.3189, allocations: 6.125 kB / 470 MB, free: 20.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003136/0.3193, allocations: 53.45 kB / 470.1 MB, free: 20.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.332e-05/0.3193, allocations: 34.61 kB / 470.1 MB, free: 20.68 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 (82): * Single equations (assignments): 82 * 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.0006977/0.32, allocations: 375.4 kB / 470.5 MB, free: 20.47 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001592/0.3202, allocations: 137.9 kB / 470.6 MB, free: 20.4 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001767/0.3219, allocations: 1.193 MB / 471.8 MB, free: 20.03 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-05/0.322, allocations: 6.781 kB / 471.8 MB, free: 20.03 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.322, allocations: 4 kB / 471.8 MB, free: 20.03 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.365e-05/0.322, allocations: 4.703 kB / 471.8 MB, free: 20.03 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003358/0.3254, allocations: 2.358 MB / 474.2 MB, free: 19.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.429e-06/0.3254, allocations: 0 / 474.2 MB, free: 19.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004614/0.3259, allocations: 108.4 kB / 474.3 MB, free: 19.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.598e-06/0.3259, allocations: 2.188 kB / 474.3 MB, free: 19.14 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.637e-05/0.3259, allocations: 14.86 kB / 474.3 MB, free: 19.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.358e-06/0.3259, allocations: 7 kB / 474.3 MB, free: 19.13 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.3259, allocations: 5.031 kB / 474.3 MB, free: 19.12 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002585/0.3285, allocations: 1.863 MB / 476.2 MB, free: 18.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002289/0.3288, allocations: 200.5 kB / 476.3 MB, free: 18.34 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.76e-05/0.3289, allocations: 11.94 kB / 476.4 MB, free: 18.33 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000211/0.3291, allocations: 16.48 kB / 476.4 MB, free: 18.32 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001062/0.3292, allocations: 37.92 kB / 476.4 MB, free: 18.31 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.857e-05/0.3292, allocations: 19.52 kB / 476.4 MB, free: 18.31 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001406/0.3307, allocations: 0.8861 MB / 477.3 MB, free: 17.85 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.3307, allocations: 0 / 477.3 MB, free: 17.85 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007316/0.3314, allocations: 211.6 kB / 477.5 MB, free: 17.64 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 (67): * Single equations (assignments): 67 * 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.0001984/0.3316, allocations: 120.2 kB / 477.6 MB, free: 17.52 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001091/0.3327, allocations: 0.9783 MB / 478.6 MB, free: 16.65 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3327, allocations: 4.062 kB / 478.6 MB, free: 16.65 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004704/0.3332, allocations: 0.5096 MB / 479.1 MB, free: 16.19 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006186/0.3338, allocations: 85.61 kB / 479.2 MB, free: 16.11 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003542/0.3374, allocations: 3.207 MB / 482.4 MB, free: 13.15 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007723/0.3382, allocations: 1.309 MB / 483.7 MB, free: 12.04 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002433/0.3384, allocations: 75.8 kB / 483.8 MB, free: 11.98 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001041/0.3385, allocations: 45.64 kB / 483.9 MB, free: 11.94 MB / 350.1 MB Notification: Performance of SimCode: time 1.492e-06/0.3385, allocations: 4 kB / 483.9 MB, free: 11.93 MB / 350.1 MB Notification: Performance of Templates: time 0.0102/0.3487, allocations: 4.668 MB / 488.5 MB, free: 7.68 MB / 350.1 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.makefile Environment - environmentSimulation: (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe 2>&1) Environment - environmentSimulation: