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.001441/0.001441, allocations: 108 kB / 15.61 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001953/0.001953, allocations: 198 kB / 16.53 MB, free: 6.668 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.42/1.42, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3299/0.3299, allocations: 28.81 MB / 319.2 MB, free: 5.754 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001245/0.001245, allocations: 63.89 kB / 386.6 MB, free: 3.621 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3158/0.317, allocations: 56.4 MB / 443 MB, free: 39.62 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_2): time 0.00372/0.3208, allocations: 3.644 MB / 446.7 MB, free: 37.33 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001265/0.3221, allocations: 0.6762 MB / 447.3 MB, free: 37.12 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003143/0.3224, allocations: 17.09 kB / 447.4 MB, free: 37.12 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003298/0.3227, allocations: 181.4 kB / 447.5 MB, free: 37.02 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002689/0.323, allocations: 133.2 kB / 447.7 MB, free: 36.94 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005515/0.3236, allocations: 363 kB / 448 MB, free: 36.92 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005997/0.3242, allocations: 0.8365 MB / 448.9 MB, free: 36.82 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006283/0.3248, allocations: 0.6353 MB / 449.5 MB, free: 36.64 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002049/0.3251, allocations: 331.5 kB / 449.8 MB, free: 36.45 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002272/0.3253, allocations: 419.5 kB / 450.2 MB, free: 36.19 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001061/0.3254, allocations: 83.34 kB / 450.3 MB, free: 36.19 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001506/0.3256, allocations: 110.4 kB / 450.4 MB, free: 36.19 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002371/0.3258, allocations: 444.9 kB / 450.9 MB, free: 35.98 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002764/0.3261, allocations: 0.6117 MB / 451.5 MB, free: 35.5 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007086/0.3268, allocations: 1.181 MB / 452.6 MB, free: 34.89 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.3268, allocations: 0 / 452.6 MB, free: 34.89 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.3268, allocations: 2.531 kB / 452.6 MB, free: 34.89 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.946e-05/0.3269, allocations: 0 / 452.6 MB, free: 34.89 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.001543/0.3284, allocations: 1.783 MB / 454.4 MB, free: 33.63 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.512e-05/0.3284, allocations: 8.906 kB / 454.4 MB, free: 33.63 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001601/0.3286, allocations: 193.9 kB / 454.6 MB, free: 33.53 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005872/0.3292, allocations: 0.752 MB / 455.4 MB, free: 32.97 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.508e-05/0.3293, allocations: 74.22 kB / 455.5 MB, free: 32.93 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.016e-05/0.3294, allocations: 103.2 kB / 455.6 MB, free: 32.9 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00117/0.3305, allocations: 1.159 MB / 456.7 MB, free: 32.42 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.918e-05/0.3306, allocations: 4.125 kB / 456.7 MB, free: 32.41 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.007e-05/0.3306, allocations: 44.25 kB / 456.8 MB, free: 32.38 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.651e-05/0.3306, allocations: 25.09 kB / 456.8 MB, free: 32.38 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001104/0.3317, allocations: 1.095 MB / 457.9 MB, free: 32.12 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003145/0.3349, allocations: 3.682 MB / 461.6 MB, free: 30.08 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001241/0.3362, allocations: 1.336 MB / 462.9 MB, free: 29.76 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004186/0.3366, allocations: 482.5 kB / 463.4 MB, free: 29.64 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.62e-05/0.3367, allocations: 29.31 kB / 463.4 MB, free: 29.63 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.875e-05/0.3367, allocations: 38.09 kB / 463.4 MB, free: 29.59 MB / 366.1 MB Notification: Performance of pre-optimization done (n=67): time 1.854e-06/0.3367, allocations: 0 / 463.4 MB, free: 29.59 MB / 366.1 MB Notification: Performance of matching and sorting (n=67): time 0.00148/0.3382, allocations: 1.521 MB / 465 MB, free: 29.17 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.118e-05/0.3382, allocations: 57.75 kB / 465 MB, free: 29.11 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001122/0.3394, allocations: 1.29 MB / 466.3 MB, free: 28.66 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.06e-05/0.3394, allocations: 36.7 kB / 466.3 MB, free: 28.62 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004328/0.3398, allocations: 0.7667 MB / 467.1 MB, free: 28.02 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001269/0.34, allocations: 235.9 kB / 467.3 MB, free: 27.84 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001376/0.3401, allocations: 116.4 kB / 467.4 MB, free: 27.77 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.166e-05/0.3402, allocations: 337.1 kB / 467.8 MB, free: 27.45 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003925/0.3406, allocations: 434.5 kB / 468.2 MB, free: 27.36 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004248/0.341, allocations: 0.5263 MB / 468.7 MB, free: 27.16 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001018/0.342, allocations: 0.994 MB / 469.7 MB, free: 26.82 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.3421, allocations: 0 / 469.7 MB, free: 26.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001399/0.3435, allocations: 1.18 MB / 470.9 MB, free: 26.45 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.113e-05/0.3435, allocations: 8.844 kB / 470.9 MB, free: 26.45 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.325e-06/0.3435, allocations: 2.25 kB / 470.9 MB, free: 26.45 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.171e-05/0.3435, allocations: 5.594 kB / 470.9 MB, free: 26.45 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004454/0.344, allocations: 130.6 kB / 471 MB, free: 26.44 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.227e-05/0.344, allocations: 9.281 kB / 471.1 MB, free: 26.44 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002426/0.3443, allocations: 52.16 kB / 471.1 MB, free: 26.4 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.808e-05/0.3443, allocations: 26.97 kB / 471.1 MB, free: 26.39 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 (82): * Single equations (assignments): 82 * 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.000449/0.3448, allocations: 379.2 kB / 471.5 MB, free: 26.18 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001546/0.3449, allocations: 145.2 kB / 471.6 MB, free: 26.1 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001643/0.3466, allocations: 1.19 MB / 472.8 MB, free: 25.74 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.337e-05/0.3466, allocations: 6.875 kB / 472.8 MB, free: 25.74 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.985e-06/0.3466, allocations: 9.312 kB / 472.9 MB, free: 25.73 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.095e-06/0.3466, allocations: 3.328 kB / 472.9 MB, free: 25.73 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003438/0.3501, allocations: 2.357 MB / 475.2 MB, free: 24.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.56e-06/0.3501, allocations: 0 / 475.2 MB, free: 24.86 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004761/0.3506, allocations: 112.2 kB / 475.3 MB, free: 24.85 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.033e-05/0.3506, allocations: 3.281 kB / 475.3 MB, free: 24.85 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.796e-05/0.3506, allocations: 16.34 kB / 475.3 MB, free: 24.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.257e-06/0.3507, allocations: 5.516 kB / 475.3 MB, free: 24.84 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.3507, allocations: 9.188 kB / 475.4 MB, free: 24.83 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002281/0.3529, allocations: 1.871 MB / 477.2 MB, free: 24.22 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001586/0.3531, allocations: 202.2 kB / 477.4 MB, free: 24.04 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.83e-05/0.3532, allocations: 10.81 kB / 477.4 MB, free: 24.03 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002078/0.3534, allocations: 12.12 kB / 477.4 MB, free: 24.02 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.742e-05/0.3535, allocations: 40.97 kB / 477.5 MB, free: 24.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.097e-05/0.3535, allocations: 19.66 kB / 477.5 MB, free: 24.01 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001249/0.3548, allocations: 0.9006 MB / 478.4 MB, free: 23.7 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3548, allocations: 0 / 478.4 MB, free: 23.7 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007821/0.3556, allocations: 211.3 kB / 478.6 MB, free: 23.62 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 (67): * Single equations (assignments): 67 * 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.0002283/0.3558, allocations: 109.3 kB / 478.7 MB, free: 23.52 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001526/0.3574, allocations: 1.014 MB / 479.7 MB, free: 23.28 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.3574, allocations: 4.062 kB / 479.7 MB, free: 23.27 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005403/0.3579, allocations: 0.509 MB / 480.2 MB, free: 23.15 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000681/0.3586, allocations: 101.7 kB / 480.3 MB, free: 23.09 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003735/0.3624, allocations: 2.789 MB / 483.1 MB, free: 21.81 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007871/0.3632, allocations: 1.309 MB / 484.4 MB, free: 21.05 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002335/0.3634, allocations: 82.83 kB / 484.5 MB, free: 21.02 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001095/0.3635, allocations: 46.09 kB / 484.6 MB, free: 21.01 MB / 366.1 MB Notification: Performance of SimCode: time 6.82e-07/0.3635, allocations: 1.438 kB / 484.6 MB, free: 21.01 MB / 366.1 MB Notification: Performance of Templates: time 0.01202/0.3756, allocations: 5.184 MB / 489.8 MB, free: 20.53 MB / 366.1 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.makefile (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)