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.001415/0.001415, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001277/0.001277, allocations: 191.7 kB / 16.13 MB, free: 6.656 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.412/1.412, allocations: 222.9 MB / 239.8 MB, free: 4.559 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3361/0.3361, allocations: 28.81 MB / 318.8 MB, free: 5.895 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001092/0.001092, allocations: 63.89 kB / 385.9 MB, free: 4.055 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3167/0.3178, allocations: 56.4 MB / 442.3 MB, free: 39.72 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_3): time 0.005501/0.3233, allocations: 3.645 MB / 446 MB, free: 37.45 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003299/0.3267, allocations: 0.6687 MB / 446.7 MB, free: 37.23 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007603/0.3275, allocations: 15.5 kB / 446.7 MB, free: 37.23 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004809/0.328, allocations: 129.9 kB / 446.8 MB, free: 37.18 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003107/0.3284, allocations: 97.66 kB / 446.9 MB, free: 37.14 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006453/0.329, allocations: 302.1 kB / 447.2 MB, free: 37.12 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008499/0.3299, allocations: 0.8142 MB / 448 MB, free: 37.03 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008443/0.3308, allocations: 0.6044 MB / 448.6 MB, free: 36.88 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003681/0.3311, allocations: 303 kB / 448.9 MB, free: 36.79 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004062/0.3315, allocations: 428 kB / 449.3 MB, free: 36.56 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001081/0.3317, allocations: 60.72 kB / 449.4 MB, free: 36.56 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001876/0.3319, allocations: 82.86 kB / 449.5 MB, free: 36.55 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003127/0.3322, allocations: 404.3 kB / 449.9 MB, free: 36.38 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003204/0.3325, allocations: 0.5878 MB / 450.4 MB, free: 35.93 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007696/0.3333, allocations: 1.136 MB / 451.6 MB, free: 35.35 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.3333, allocations: 0 / 451.6 MB, free: 35.35 MB / 366.1 MB Notification: Performance of FrontEnd: time 9.31e-07/0.3333, allocations: 0 / 451.6 MB, free: 35.35 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.471e-05/0.3333, allocations: 0 / 451.6 MB, free: 35.35 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.001808/0.3351, allocations: 1.784 MB / 453.4 MB, free: 34.09 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.444e-05/0.3352, allocations: 8.344 kB / 453.4 MB, free: 34.09 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002313/0.3354, allocations: 202.1 kB / 453.6 MB, free: 33.98 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006795/0.3361, allocations: 0.7455 MB / 454.3 MB, free: 33.42 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.305e-05/0.3362, allocations: 77.52 kB / 454.4 MB, free: 33.39 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001043/0.3363, allocations: 112.9 kB / 454.5 MB, free: 33.34 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001392/0.3377, allocations: 1.169 MB / 455.7 MB, free: 32.86 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.244e-05/0.3377, allocations: 4.125 kB / 455.7 MB, free: 32.86 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.779e-05/0.3378, allocations: 47.97 kB / 455.7 MB, free: 32.82 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.938e-05/0.3378, allocations: 26.34 kB / 455.7 MB, free: 32.82 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001243/0.3391, allocations: 1.097 MB / 456.8 MB, free: 32.56 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003571/0.3427, allocations: 3.691 MB / 460.5 MB, free: 30.52 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001243/0.3439, allocations: 1.334 MB / 461.9 MB, free: 30.2 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004437/0.3444, allocations: 485 kB / 462.3 MB, free: 30.08 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.312e-05/0.3445, allocations: 29.19 kB / 462.4 MB, free: 30.07 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.259e-05/0.3445, allocations: 46 kB / 462.4 MB, free: 30.02 MB / 366.1 MB Notification: Performance of pre-optimization done (n=68): time 2.195e-06/0.3445, allocations: 0 / 462.4 MB, free: 30.02 MB / 366.1 MB Notification: Performance of matching and sorting (n=68): time 0.001578/0.3461, allocations: 1.522 MB / 463.9 MB, free: 29.61 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.014e-05/0.3461, allocations: 57.22 kB / 464 MB, free: 29.55 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001071/0.3472, allocations: 1.289 MB / 465.3 MB, free: 29.11 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.811e-05/0.3472, allocations: 36.27 kB / 465.3 MB, free: 29.07 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003687/0.3476, allocations: 0.7687 MB / 466.1 MB, free: 28.46 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001099/0.3477, allocations: 229.3 kB / 466.3 MB, free: 28.28 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001484/0.3479, allocations: 121.1 kB / 466.4 MB, free: 28.22 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.773e-05/0.348, allocations: 334.2 kB / 466.8 MB, free: 27.9 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004594/0.3484, allocations: 441.2 kB / 467.2 MB, free: 27.8 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005056/0.349, allocations: 0.536 MB / 467.7 MB, free: 27.6 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001066/0.35, allocations: 0.9982 MB / 468.7 MB, free: 27.25 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.619e-06/0.35, allocations: 1.375 kB / 468.7 MB, free: 27.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.00143/0.3515, allocations: 1.185 MB / 469.9 MB, free: 26.89 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.232e-05/0.3515, allocations: 8.219 kB / 469.9 MB, free: 26.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/0.3515, allocations: 2.812 kB / 469.9 MB, free: 26.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.381e-05/0.3516, allocations: 5.281 kB / 469.9 MB, free: 26.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004549/0.352, allocations: 136.5 kB / 470.1 MB, free: 26.87 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.315e-05/0.352, allocations: 5.25 kB / 470.1 MB, free: 26.87 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002276/0.3523, allocations: 63.47 kB / 470.1 MB, free: 26.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.779e-05/0.3523, allocations: 23.06 kB / 470.1 MB, free: 26.82 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.0004151/0.3527, allocations: 377.1 kB / 470.5 MB, free: 26.61 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001357/0.3529, allocations: 141.5 kB / 470.6 MB, free: 26.53 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00146/0.3543, allocations: 1.211 MB / 471.9 MB, free: 26.16 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.444e-06/0.3544, allocations: 6.562 kB / 471.9 MB, free: 26.16 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.3544, allocations: 0 / 471.9 MB, free: 26.16 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.3544, allocations: 3.234 kB / 471.9 MB, free: 26.16 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002544/0.3569, allocations: 2.371 MB / 474.2 MB, free: 25.28 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.085e-06/0.357, allocations: 0 / 474.2 MB, free: 25.28 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004469/0.3574, allocations: 111.8 kB / 474.3 MB, free: 25.27 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.79e-06/0.3574, allocations: 2.094 kB / 474.4 MB, free: 25.27 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.752e-05/0.3575, allocations: 20.95 kB / 474.4 MB, free: 25.26 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.461e-06/0.3575, allocations: 2.281 kB / 474.4 MB, free: 25.26 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.3575, allocations: 7.875 kB / 474.4 MB, free: 25.25 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002184/0.3597, allocations: 1.884 MB / 476.3 MB, free: 24.64 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001558/0.3598, allocations: 197.5 kB / 476.5 MB, free: 24.46 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.901e-05/0.3599, allocations: 15.56 kB / 476.5 MB, free: 24.46 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000213/0.3601, allocations: 14.75 kB / 476.5 MB, free: 24.45 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.46e-05/0.3602, allocations: 42.81 kB / 476.5 MB, free: 24.44 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.489e-05/0.3603, allocations: 25.17 kB / 476.6 MB, free: 24.43 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00111/0.3614, allocations: 0.8913 MB / 477.4 MB, free: 24.12 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3614, allocations: 0 / 477.4 MB, free: 24.12 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005883/0.362, allocations: 207.2 kB / 477.6 MB, free: 24.05 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.0001605/0.3622, allocations: 120.1 kB / 477.8 MB, free: 23.94 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001199/0.3634, allocations: 0.9955 MB / 478.8 MB, free: 23.72 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.3634, allocations: 0 / 478.8 MB, free: 23.72 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005412/0.3639, allocations: 0.5121 MB / 479.3 MB, free: 23.6 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006557/0.3646, allocations: 93.27 kB / 479.4 MB, free: 23.54 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003521/0.3681, allocations: 3.363 MB / 482.7 MB, free: 21.69 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007894/0.3689, allocations: 1.31 MB / 484 MB, free: 20.93 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002655/0.3692, allocations: 71.33 kB / 484.1 MB, free: 20.91 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001383/0.3694, allocations: 49.36 kB / 484.2 MB, free: 20.89 MB / 366.1 MB Notification: Performance of SimCode: time 7.71e-07/0.3694, allocations: 4 kB / 484.2 MB, free: 20.89 MB / 366.1 MB Notification: Performance of Templates: time 0.0137/0.3831, allocations: 4.995 MB / 489.2 MB, free: 20.41 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)