Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.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_3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000953/0.0009529, allocations: 103.4 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.001027/0.001027, allocations: 190.6 kB / 16.25 MB, free: 6.617 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.316/1.316, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3722/0.3722, allocations: 28.81 MB / 318.9 MB, free: 5.863 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001235/0.001235, allocations: 59.91 kB / 386.1 MB, free: 3.949 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3261/0.3273, allocations: 56.42 MB / 442.5 MB, free: 39.7 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_3): time 0.003588/0.331, allocations: 3.642 MB / 446.2 MB, free: 37.43 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001255/0.3322, allocations: 0.6609 MB / 446.8 MB, free: 37.21 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003272/0.3326, allocations: 18.88 kB / 446.9 MB, free: 37.21 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003621/0.333, allocations: 128.3 kB / 447 MB, free: 37.16 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002592/0.3332, allocations: 90.72 kB / 447.1 MB, free: 37.12 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006269/0.3339, allocations: 307.1 kB / 447.4 MB, free: 37.11 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008546/0.3347, allocations: 0.8636 MB / 448.2 MB, free: 37.01 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007523/0.3355, allocations: 0.632 MB / 448.9 MB, free: 36.86 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002269/0.3357, allocations: 336.9 kB / 449.2 MB, free: 36.7 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002879/0.336, allocations: 439.1 kB / 449.6 MB, free: 36.45 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001078/0.3361, allocations: 90.69 kB / 449.7 MB, free: 36.44 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001831/0.3363, allocations: 114.1 kB / 449.8 MB, free: 36.44 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003237/0.3367, allocations: 435.4 kB / 450.3 MB, free: 36.24 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003577/0.337, allocations: 0.6218 MB / 450.9 MB, free: 35.75 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008265/0.3379, allocations: 1.176 MB / 452.1 MB, free: 35.15 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.3379, allocations: 2.969 kB / 452.1 MB, free: 35.15 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.143e-06/0.3379, allocations: 0 / 452.1 MB, free: 35.15 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.901e-05/0.3379, allocations: 0 / 452.1 MB, free: 35.15 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: 263 * Number of variables: 263 Notification: Performance of Generate backend data structure: time 0.001655/0.3396, allocations: 1.791 MB / 453.8 MB, free: 33.89 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.634e-05/0.3396, allocations: 12.62 kB / 453.9 MB, free: 33.88 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001751/0.3398, allocations: 200.1 kB / 454.1 MB, free: 33.78 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005839/0.3404, allocations: 0.7492 MB / 454.8 MB, free: 33.21 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.565e-05/0.3404, allocations: 74.73 kB / 454.9 MB, free: 33.18 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.333e-05/0.3405, allocations: 104 kB / 455 MB, free: 33.14 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001276/0.3418, allocations: 1.165 MB / 456.1 MB, free: 32.66 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.369e-05/0.3418, allocations: 2.594 kB / 456.1 MB, free: 32.66 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.691e-05/0.3419, allocations: 47.84 kB / 456.2 MB, free: 32.62 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.842e-05/0.3419, allocations: 25.34 kB / 456.2 MB, free: 32.62 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001124/0.3431, allocations: 1.099 MB / 457.3 MB, free: 32.36 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003486/0.3466, allocations: 3.689 MB / 461 MB, free: 30.32 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001278/0.3478, allocations: 1.337 MB / 462.3 MB, free: 30 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004293/0.3483, allocations: 488 kB / 462.8 MB, free: 29.88 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.219e-05/0.3484, allocations: 28.05 kB / 462.8 MB, free: 29.87 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.957e-05/0.3484, allocations: 38.03 kB / 462.9 MB, free: 29.83 MB / 366.1 MB Notification: Performance of pre-optimization done (n=68): time 2.164e-06/0.3484, allocations: 0 / 462.9 MB, free: 29.83 MB / 366.1 MB Notification: Performance of matching and sorting (n=68): time 0.00153/0.3499, allocations: 1.531 MB / 464.4 MB, free: 29.41 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.571e-05/0.35, allocations: 59.56 kB / 464.5 MB, free: 29.35 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001087/0.3511, allocations: 1.285 MB / 465.8 MB, free: 28.91 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.382e-05/0.3511, allocations: 39.98 kB / 465.8 MB, free: 28.87 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000439/0.3516, allocations: 0.7695 MB / 466.6 MB, free: 28.27 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001343/0.3517, allocations: 227.8 kB / 466.8 MB, free: 28.09 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001495/0.3519, allocations: 114.1 kB / 466.9 MB, free: 28.02 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.124e-05/0.352, allocations: 336.6 kB / 467.2 MB, free: 27.7 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004199/0.3524, allocations: 446.6 kB / 467.7 MB, free: 27.6 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004752/0.3529, allocations: 0.5337 MB / 468.2 MB, free: 27.4 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001134/0.354, allocations: 1.003 MB / 469.2 MB, free: 27.05 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.115e-06/0.354, allocations: 1.125 kB / 469.2 MB, free: 27.05 MB / 366.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001464/0.3555, allocations: 1.18 MB / 470.4 MB, free: 26.69 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.218e-05/0.3555, allocations: 10.84 kB / 470.4 MB, free: 26.69 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.068e-05/0.3555, allocations: 2 kB / 470.4 MB, free: 26.69 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.17e-05/0.3556, allocations: 5.75 kB / 470.4 MB, free: 26.69 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004474/0.356, allocations: 137.3 kB / 470.5 MB, free: 26.67 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.327e-05/0.356, allocations: 8.906 kB / 470.5 MB, free: 26.67 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002344/0.3563, allocations: 52.16 kB / 470.6 MB, free: 26.63 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.015e-05/0.3563, allocations: 30.28 kB / 470.6 MB, free: 26.62 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 (83): * Single equations (assignments): 83 * 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.0004574/0.3568, allocations: 375.5 kB / 471 MB, free: 26.41 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001467/0.3569, allocations: 147 kB / 471.1 MB, free: 26.32 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00158/0.3585, allocations: 1.201 MB / 472.3 MB, free: 25.96 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.14e-05/0.3585, allocations: 11.17 kB / 472.3 MB, free: 25.96 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.3586, allocations: 0 / 472.3 MB, free: 25.96 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.167e-06/0.3586, allocations: 8.781 kB / 472.4 MB, free: 25.96 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003231/0.3618, allocations: 2.375 MB / 474.7 MB, free: 25.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.3618, allocations: 1.031 kB / 474.7 MB, free: 25.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004722/0.3623, allocations: 114.4 kB / 474.8 MB, free: 25.06 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.075e-06/0.3623, allocations: 5.625 kB / 474.8 MB, free: 25.06 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.596e-05/0.3624, allocations: 12.78 kB / 474.9 MB, free: 25.05 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.527e-06/0.3624, allocations: 2.438 kB / 474.9 MB, free: 25.05 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.3624, allocations: 5.156 kB / 474.9 MB, free: 25.05 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002188/0.3646, allocations: 1.881 MB / 476.7 MB, free: 24.44 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001717/0.3648, allocations: 205.9 kB / 476.9 MB, free: 24.25 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.211e-05/0.3648, allocations: 11.94 kB / 477 MB, free: 24.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002114/0.3651, allocations: 13.58 kB / 477 MB, free: 24.24 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001028/0.3652, allocations: 43.02 kB / 477 MB, free: 24.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.64e-05/0.3652, allocations: 17 kB / 477 MB, free: 24.23 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001245/0.3665, allocations: 0.8977 MB / 477.9 MB, free: 23.91 MB / 366.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3665, allocations: 0 / 477.9 MB, free: 23.91 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007075/0.3672, allocations: 207.3 kB / 478.1 MB, free: 23.84 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 (68): * Single equations (assignments): 68 * 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.0002117/0.3674, allocations: 117.8 kB / 478.2 MB, free: 23.73 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00149/0.3689, allocations: 1.02 MB / 479.3 MB, free: 23.5 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.3689, allocations: 0 / 479.3 MB, free: 23.5 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005717/0.3695, allocations: 0.5115 MB / 479.8 MB, free: 23.38 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007111/0.3702, allocations: 95.05 kB / 479.9 MB, free: 23.32 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003771/0.374, allocations: 3.37 MB / 483.2 MB, free: 21.46 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008199/0.3748, allocations: 1.306 MB / 484.5 MB, free: 20.7 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002527/0.3751, allocations: 77.94 kB / 484.6 MB, free: 20.68 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000124/0.3752, allocations: 45.97 kB / 484.7 MB, free: 20.66 MB / 366.1 MB Notification: Performance of SimCode: time 9.62e-07/0.3752, allocations: 5.188 kB / 484.7 MB, free: 20.66 MB / 366.1 MB Notification: Performance of Templates: time 0.01266/0.3879, allocations: 5.183 MB / 489.9 MB, free: 20.18 MB / 366.1 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe 2>&1)