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.001089/0.001089, allocations: 99.36 kB / 15.33 MB, free: 0.5078 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.001156/0.001156, allocations: 195.6 kB / 16.25 MB, free: 6.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.286/1.286, allocations: 222.9 MB / 239.9 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2954/0.2954, allocations: 28.8 MB / 318.9 MB, free: 5.781 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001324/0.001324, allocations: 60.09 kB / 386.1 MB, free: 3.969 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3731/0.3745, allocations: 56.41 MB / 442.5 MB, free: 39.09 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_1): time 0.004514/0.379, allocations: 3.645 MB / 446.2 MB, free: 36.82 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001587/0.3807, allocations: 0.6524 MB / 446.8 MB, free: 36.61 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004062/0.3811, allocations: 17.59 kB / 446.8 MB, free: 36.61 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003674/0.3815, allocations: 118.5 kB / 447 MB, free: 36.55 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002521/0.3817, allocations: 83.69 kB / 447 MB, free: 36.52 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005823/0.3823, allocations: 303.9 kB / 447.3 MB, free: 36.51 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005985/0.3829, allocations: 0.8447 MB / 448.2 MB, free: 36.41 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006052/0.3835, allocations: 0.6398 MB / 448.8 MB, free: 36.26 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001782/0.3837, allocations: 329.7 kB / 449.1 MB, free: 36.17 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002201/0.384, allocations: 446.5 kB / 449.6 MB, free: 36.02 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.786e-05/0.3841, allocations: 87.03 kB / 449.7 MB, free: 36.02 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001522/0.3842, allocations: 115.5 kB / 449.8 MB, free: 36.02 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002481/0.3845, allocations: 428.1 kB / 450.2 MB, free: 35.91 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002545/0.3847, allocations: 0.6031 MB / 450.8 MB, free: 35.44 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006846/0.3854, allocations: 1.15 MB / 451.9 MB, free: 34.85 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.3854, allocations: 0 / 451.9 MB, free: 34.85 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3854, allocations: 0 / 451.9 MB, free: 34.85 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.659e-05/0.3855, allocations: 0 / 451.9 MB, free: 34.85 MB / 366.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.001452/0.3869, allocations: 1.729 MB / 453.7 MB, free: 33.62 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.435e-05/0.387, allocations: 12.45 kB / 453.7 MB, free: 33.62 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001549/0.3871, allocations: 196.2 kB / 453.9 MB, free: 33.52 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005554/0.3877, allocations: 0.7281 MB / 454.6 MB, free: 32.97 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.192e-05/0.3877, allocations: 75.17 kB / 454.7 MB, free: 32.93 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.002e-05/0.3878, allocations: 108.1 kB / 454.8 MB, free: 32.9 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00117/0.389, allocations: 1.122 MB / 455.9 MB, free: 32.43 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.685e-05/0.389, allocations: 10.27 kB / 455.9 MB, free: 32.42 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.228e-05/0.3891, allocations: 48.28 kB / 456 MB, free: 32.38 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.2e-05/0.3891, allocations: 25.12 kB / 456 MB, free: 32.38 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001062/0.3902, allocations: 1.047 MB / 457 MB, free: 32.13 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003038/0.3933, allocations: 3.618 MB / 460.6 MB, free: 30.11 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001134/0.3944, allocations: 1.261 MB / 461.9 MB, free: 29.81 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003738/0.3948, allocations: 469 kB / 462.4 MB, free: 29.69 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.345e-05/0.3949, allocations: 28.22 kB / 462.4 MB, free: 29.68 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.28e-05/0.3949, allocations: 37.88 kB / 462.4 MB, free: 29.64 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.254e-06/0.3949, allocations: 0 / 462.4 MB, free: 29.64 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.001392/0.3963, allocations: 1.449 MB / 463.9 MB, free: 29.24 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.866e-05/0.3963, allocations: 67 kB / 463.9 MB, free: 29.17 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001165/0.3975, allocations: 1.234 MB / 465.2 MB, free: 28.73 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.31e-05/0.3976, allocations: 36.33 kB / 465.2 MB, free: 28.7 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004437/0.398, allocations: 0.7444 MB / 466 MB, free: 28.11 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001452/0.3982, allocations: 222.8 kB / 466.2 MB, free: 27.93 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001432/0.3983, allocations: 111.6 kB / 466.3 MB, free: 27.88 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.329e-05/0.3984, allocations: 337.2 kB / 466.6 MB, free: 27.55 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003862/0.3988, allocations: 417.8 kB / 467 MB, free: 27.46 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004487/0.3992, allocations: 0.5051 MB / 467.5 MB, free: 27.27 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008897/0.4001, allocations: 0.9548 MB / 468.5 MB, free: 26.92 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.4001, allocations: 1.125 kB / 468.5 MB, free: 26.92 MB / 366.1 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001345/0.4015, allocations: 1.128 MB / 469.6 MB, free: 26.57 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.244e-05/0.4015, allocations: 5.469 kB / 469.6 MB, free: 26.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.347e-06/0.4015, allocations: 2.625 kB / 469.6 MB, free: 26.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.435e-05/0.4016, allocations: 9.844 kB / 469.6 MB, free: 26.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004327/0.402, allocations: 124.6 kB / 469.8 MB, free: 26.55 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.683e-05/0.402, allocations: 13.88 kB / 469.8 MB, free: 26.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002147/0.4023, allocations: 55.09 kB / 469.8 MB, free: 26.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.131e-05/0.4023, allocations: 22.75 kB / 469.8 MB, free: 26.5 MB / 366.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004057/0.4027, allocations: 364.3 kB / 470.2 MB, free: 26.29 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001368/0.4029, allocations: 138.7 kB / 470.3 MB, free: 26.21 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00138/0.4042, allocations: 1.148 MB / 471.5 MB, free: 25.86 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.698e-06/0.4043, allocations: 10.28 kB / 471.5 MB, free: 25.85 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.4043, allocations: 0 / 471.5 MB, free: 25.85 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/0.4043, allocations: 4.5 kB / 471.5 MB, free: 25.85 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002596/0.4069, allocations: 2.274 MB / 473.8 MB, free: 24.99 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.4069, allocations: 0 / 473.8 MB, free: 24.99 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000419/0.4073, allocations: 108.4 kB / 473.9 MB, free: 24.98 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.755e-06/0.4073, allocations: 2.125 kB / 473.9 MB, free: 24.98 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.703e-05/0.4074, allocations: 16.78 kB / 473.9 MB, free: 24.97 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.739e-06/0.4074, allocations: 2.219 kB / 473.9 MB, free: 24.97 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.4074, allocations: 4 kB / 473.9 MB, free: 24.97 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001857/0.4093, allocations: 1.788 MB / 475.7 MB, free: 24.38 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001379/0.4094, allocations: 196.2 kB / 475.9 MB, free: 24.2 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.414e-05/0.4095, allocations: 15.38 kB / 475.9 MB, free: 24.19 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001933/0.4097, allocations: 13.45 kB / 475.9 MB, free: 24.18 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.451e-05/0.4098, allocations: 35.92 kB / 475.9 MB, free: 24.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.355e-05/0.4098, allocations: 24.52 kB / 476 MB, free: 24.17 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0009445/0.4108, allocations: 0.8581 MB / 476.8 MB, free: 23.86 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4108, allocations: 0 / 476.8 MB, free: 23.86 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000585/0.4113, allocations: 205 kB / 477 MB, free: 23.79 MB / 366.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001635/0.4115, allocations: 113.6 kB / 477.1 MB, free: 23.69 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001236/0.4128, allocations: 0.9695 MB / 478.1 MB, free: 23.45 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.4128, allocations: 0.625 kB / 478.1 MB, free: 23.45 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004769/0.4133, allocations: 495.2 kB / 478.6 MB, free: 23.34 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006573/0.4139, allocations: 100 kB / 478.7 MB, free: 23.28 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003233/0.4172, allocations: 3.245 MB / 481.9 MB, free: 21.48 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006969/0.4179, allocations: 1.285 MB / 483.2 MB, free: 20.72 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002106/0.4181, allocations: 74.56 kB / 483.3 MB, free: 20.7 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001083/0.4182, allocations: 49.12 kB / 483.3 MB, free: 20.69 MB / 366.1 MB Notification: Performance of SimCode: time 1.002e-06/0.4182, allocations: 0 / 483.3 MB, free: 20.69 MB / 366.1 MB Notification: Performance of Templates: time 0.01181/0.43, allocations: 5.093 MB / 488.4 MB, free: 20.21 MB / 366.1 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)