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.00116/0.00116, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.000942/0.000942, allocations: 177.3 kB / 15.94 MB, free: 228 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.401/1.401, allocations: 223.2 MB / 239.9 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3261/0.3261, allocations: 28.85 MB / 319.8 MB, free: 6.254 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003103/0.0003106, allocations: 8 kB / 387.8 MB, free: 3.582 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3664/0.3668, allocations: 57.49 MB / 445.3 MB, free: 32.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_1): time 0.003159/0.37, allocations: 2.937 MB / 448.2 MB, free: 30.48 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001879/0.3719, allocations: 0.6434 MB / 448.8 MB, free: 30.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007752/0.3727, allocations: 15.12 kB / 448.9 MB, free: 30.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002615/0.373, allocations: 91.11 kB / 448.9 MB, free: 29.97 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003074/0.3733, allocations: 93.98 kB / 449 MB, free: 29.92 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006127/0.3739, allocations: 254.2 kB / 449.3 MB, free: 29.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005705/0.3745, allocations: 0.5135 MB / 449.8 MB, free: 29.53 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005658/0.3751, allocations: 494.4 kB / 450.3 MB, free: 29.31 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000159/0.3752, allocations: 233 kB / 450.5 MB, free: 29.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002329/0.3755, allocations: 291.6 kB / 450.8 MB, free: 29.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.784e-05/0.3755, allocations: 24.97 kB / 450.8 MB, free: 29.04 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001312/0.3757, allocations: 42.83 kB / 450.9 MB, free: 29.03 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002218/0.3759, allocations: 332.2 kB / 451.2 MB, free: 28.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001061/0.376, allocations: 224.3 kB / 451.4 MB, free: 28.74 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005367/0.3766, allocations: 0.7677 MB / 452.2 MB, free: 28.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.3766, allocations: 3.938 kB / 452.2 MB, free: 28.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.3766, allocations: 0 / 452.2 MB, free: 28.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.659e-05/0.3766, allocations: 0 / 452.2 MB, free: 28.52 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.001536/0.3781, allocations: 1.48 MB / 453.7 MB, free: 27.46 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.545e-05/0.3782, allocations: 8.812 kB / 453.7 MB, free: 27.46 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001594/0.3783, allocations: 195.6 kB / 453.9 MB, free: 27.36 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000685/0.379, allocations: 0.672 MB / 454.5 MB, free: 26.87 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.056e-05/0.3791, allocations: 74.83 kB / 454.6 MB, free: 26.83 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.513e-05/0.3792, allocations: 107.4 kB / 454.7 MB, free: 26.79 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001178/0.3804, allocations: 1.117 MB / 455.8 MB, free: 26.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.199e-05/0.3804, allocations: 4 kB / 455.8 MB, free: 26.31 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.07e-05/0.3805, allocations: 42.5 kB / 455.9 MB, free: 26.28 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.151e-05/0.3805, allocations: 23.62 kB / 455.9 MB, free: 26.28 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001199/0.3817, allocations: 1.044 MB / 456.9 MB, free: 26.03 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004072/0.3858, allocations: 3.616 MB / 460.6 MB, free: 24.01 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001521/0.3874, allocations: 1.269 MB / 461.8 MB, free: 23.7 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.261e-05/0.3875, allocations: 27.11 kB / 461.8 MB, free: 23.7 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.839e-05/0.3875, allocations: 38.06 kB / 461.9 MB, free: 23.65 MB / 350.1 MB Notification: Performance of pre-optimization done (n=66): time 2.826e-06/0.3875, allocations: 0 / 461.9 MB, free: 23.65 MB / 350.1 MB Notification: Performance of matching and sorting (n=66): time 0.001833/0.3893, allocations: 1.448 MB / 463.3 MB, free: 23.25 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.56e-05/0.3894, allocations: 58.53 kB / 463.4 MB, free: 23.19 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00141/0.3908, allocations: 1.221 MB / 464.6 MB, free: 22.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.428e-05/0.3908, allocations: 35.64 kB / 464.6 MB, free: 22.71 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004471/0.3913, allocations: 0.7481 MB / 465.4 MB, free: 22.13 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001331/0.3914, allocations: 222.7 kB / 465.6 MB, free: 21.95 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.41e-05/0.3915, allocations: 15.12 kB / 465.6 MB, free: 21.94 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.446e-05/0.3916, allocations: 329.7 kB / 465.9 MB, free: 21.62 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004972/0.3921, allocations: 410.2 kB / 466.3 MB, free: 21.54 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006034/0.3927, allocations: 0.4994 MB / 466.8 MB, free: 21.34 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005549/0.3932, allocations: 453.1 kB / 467.3 MB, free: 21.21 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.3932, allocations: 1.094 kB / 467.3 MB, free: 21.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001426/0.3947, allocations: 1.127 MB / 468.4 MB, free: 20.86 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.264e-05/0.3947, allocations: 10.45 kB / 468.4 MB, free: 20.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.3947, allocations: 2.625 kB / 468.4 MB, free: 20.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.914e-05/0.3947, allocations: 6.562 kB / 468.4 MB, free: 20.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004539/0.3952, allocations: 129.7 kB / 468.6 MB, free: 20.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.637e-05/0.3952, allocations: 5.969 kB / 468.6 MB, free: 20.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002575/0.3955, allocations: 51.94 kB / 468.6 MB, free: 20.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.786e-05/0.3955, allocations: 26.89 kB / 468.6 MB, free: 20.79 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.0005071/0.396, allocations: 357 kB / 469 MB, free: 20.59 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001263/0.3962, allocations: 147.6 kB / 469.1 MB, free: 20.5 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001572/0.3978, allocations: 1.142 MB / 470.3 MB, free: 20.14 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.156e-05/0.3978, allocations: 11.91 kB / 470.3 MB, free: 20.14 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.521e-06/0.3978, allocations: 0 / 470.3 MB, free: 20.14 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.074e-05/0.3978, allocations: 3 kB / 470.3 MB, free: 20.14 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003092/0.4009, allocations: 2.275 MB / 472.6 MB, free: 19.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.4009, allocations: 4 kB / 472.6 MB, free: 19.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004826/0.4014, allocations: 105.8 kB / 472.7 MB, free: 19.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.245e-05/0.4014, allocations: 3.375 kB / 472.7 MB, free: 19.27 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.781e-05/0.4015, allocations: 17.84 kB / 472.7 MB, free: 19.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.404e-06/0.4015, allocations: 3.047 kB / 472.7 MB, free: 19.25 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.4015, allocations: 0 / 472.7 MB, free: 19.25 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00252/0.404, allocations: 1.781 MB / 474.5 MB, free: 18.66 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002091/0.4042, allocations: 204.6 kB / 474.7 MB, free: 18.47 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.755e-05/0.4043, allocations: 10.78 kB / 474.7 MB, free: 18.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002257/0.4046, allocations: 14.72 kB / 474.7 MB, free: 18.45 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8e-05/0.4047, allocations: 38.09 kB / 474.7 MB, free: 18.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.98e-05/0.4047, allocations: 18.64 kB / 474.8 MB, free: 18.45 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001342/0.406, allocations: 0.8443 MB / 475.6 MB, free: 18.14 MB / 350.1 MB Notification: Performance of sort global known variables: time 4e-07/0.4061, allocations: 0 / 475.6 MB, free: 18.14 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009688/0.407, allocations: 200.4 kB / 475.8 MB, free: 18.07 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.0001854/0.4072, allocations: 117.1 kB / 475.9 MB, free: 17.97 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001316/0.4085, allocations: 0.9414 MB / 476.9 MB, free: 17.76 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.4086, allocations: 0 / 476.9 MB, free: 17.76 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000608/0.4092, allocations: 493.8 kB / 477.3 MB, free: 17.62 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006044/0.4098, allocations: 76.42 kB / 477.4 MB, free: 17.55 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003951/0.4137, allocations: 3.099 MB / 480.5 MB, free: 14.68 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009002/0.4147, allocations: 1.312 MB / 481.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002076/0.4149, allocations: 72.27 kB / 481.9 MB, free: 13.54 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.947e-05/0.415, allocations: 44.98 kB / 481.9 MB, free: 13.49 MB / 350.1 MB Notification: Performance of SimCode: time 1.152e-06/0.415, allocations: 4 kB / 481.9 MB, free: 13.49 MB / 350.1 MB Notification: Performance of Templates: time 0.0104/0.4254, allocations: 4.579 MB / 486.5 MB, free: 9.625 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: