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.001358/0.001358, allocations: 108 kB / 15.61 MB, free: 152 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.001664/0.001664, allocations: 192.7 kB / 16.53 MB, free: 6.664 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.438/1.438, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3196/0.3196, allocations: 28.82 MB / 319.2 MB, free: 5.73 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001265/0.001265, allocations: 55.91 kB / 386.6 MB, free: 3.641 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3958/0.397, allocations: 56.41 MB / 443 MB, free: 39.57 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_3): time 0.00422/0.4013, allocations: 3.645 MB / 446.7 MB, free: 37.29 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001874/0.4032, allocations: 0.6821 MB / 447.3 MB, free: 37.07 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000453/0.4037, allocations: 20.03 kB / 447.4 MB, free: 37.07 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004376/0.4042, allocations: 177.8 kB / 447.5 MB, free: 36.96 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003061/0.4045, allocations: 133.4 kB / 447.7 MB, free: 36.89 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007422/0.4052, allocations: 357.9 kB / 448 MB, free: 36.87 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007223/0.406, allocations: 0.8381 MB / 448.9 MB, free: 36.78 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007258/0.4067, allocations: 0.6398 MB / 449.5 MB, free: 36.58 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002499/0.407, allocations: 333.3 kB / 449.8 MB, free: 36.39 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002796/0.4073, allocations: 419.7 kB / 450.2 MB, free: 36.13 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001223/0.4074, allocations: 85.53 kB / 450.3 MB, free: 36.13 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000178/0.4076, allocations: 113.7 kB / 450.4 MB, free: 36.13 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002611/0.4078, allocations: 442.4 kB / 450.9 MB, free: 35.92 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002951/0.4081, allocations: 0.6225 MB / 451.5 MB, free: 35.44 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008132/0.409, allocations: 1.174 MB / 452.7 MB, free: 34.84 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.409, allocations: 0 / 452.7 MB, free: 34.84 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.409, allocations: 3.938 kB / 452.7 MB, free: 34.84 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.919e-05/0.409, allocations: 0 / 452.7 MB, free: 34.84 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.001842/0.4109, allocations: 1.779 MB / 454.4 MB, free: 33.58 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.843e-05/0.4109, allocations: 11.16 kB / 454.5 MB, free: 33.58 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002181/0.4111, allocations: 201.3 kB / 454.6 MB, free: 33.47 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007096/0.4119, allocations: 0.7469 MB / 455.4 MB, free: 32.91 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.599e-05/0.4119, allocations: 81.89 kB / 455.5 MB, free: 32.87 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001164/0.4121, allocations: 103 kB / 455.6 MB, free: 32.84 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001389/0.4135, allocations: 1.171 MB / 456.7 MB, free: 32.35 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.211e-05/0.4135, allocations: 192 / 456.7 MB, free: 32.35 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.23e-05/0.4136, allocations: 44.75 kB / 456.8 MB, free: 32.32 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.147e-05/0.4136, allocations: 26.72 kB / 456.8 MB, free: 32.32 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001257/0.4149, allocations: 1.099 MB / 457.9 MB, free: 32.05 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003886/0.4188, allocations: 3.687 MB / 461.6 MB, free: 30.02 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001529/0.4203, allocations: 1.329 MB / 462.9 MB, free: 29.7 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005344/0.4209, allocations: 489 kB / 463.4 MB, free: 29.58 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.804e-05/0.421, allocations: 26.59 kB / 463.4 MB, free: 29.57 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.035e-05/0.421, allocations: 41.91 kB / 463.5 MB, free: 29.52 MB / 366.1 MB Notification: Performance of pre-optimization done (n=68): time 4.198e-06/0.421, allocations: 0 / 463.5 MB, free: 29.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=68): time 0.001897/0.4229, allocations: 1.526 MB / 465 MB, free: 29.11 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.79e-05/0.423, allocations: 63.69 kB / 465.1 MB, free: 29.05 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001335/0.4243, allocations: 1.287 MB / 466.4 MB, free: 28.6 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.201e-05/0.4244, allocations: 36.33 kB / 466.4 MB, free: 28.56 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003977/0.4248, allocations: 0.7737 MB / 467.2 MB, free: 27.95 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001204/0.4249, allocations: 226.8 kB / 467.4 MB, free: 27.77 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001335/0.425, allocations: 123.1 kB / 467.5 MB, free: 27.71 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.7e-05/0.4251, allocations: 332.5 kB / 467.8 MB, free: 27.39 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004289/0.4255, allocations: 446.4 kB / 468.3 MB, free: 27.29 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004761/0.426, allocations: 0.5348 MB / 468.8 MB, free: 27.09 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001259/0.4273, allocations: 0.9991 MB / 469.8 MB, free: 26.74 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.4273, allocations: 0 / 469.8 MB, free: 26.74 MB / 366.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001903/0.4292, allocations: 1.186 MB / 471 MB, free: 26.38 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.658e-05/0.4293, allocations: 5.688 kB / 471 MB, free: 26.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.545e-05/0.4293, allocations: 14.52 kB / 471 MB, free: 26.37 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.389e-05/0.4293, allocations: 5.438 kB / 471 MB, free: 26.37 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000531/0.4299, allocations: 132.5 kB / 471.1 MB, free: 26.35 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.161e-05/0.4299, allocations: 5.656 kB / 471.1 MB, free: 26.35 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003245/0.4302, allocations: 60.06 kB / 471.2 MB, free: 26.31 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.119e-05/0.4303, allocations: 22.44 kB / 471.2 MB, free: 26.3 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.0007303/0.431, allocations: 381.2 kB / 471.6 MB, free: 26.09 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001935/0.4312, allocations: 141.5 kB / 471.7 MB, free: 26.01 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002116/0.4333, allocations: 1.202 MB / 472.9 MB, free: 25.66 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-05/0.4334, allocations: 11.06 kB / 472.9 MB, free: 25.65 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.092e-05/0.4334, allocations: 0 / 472.9 MB, free: 25.65 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.3e-05/0.4334, allocations: 4.609 kB / 473 MB, free: 25.65 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003184/0.4366, allocations: 2.366 MB / 475.3 MB, free: 24.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.4366, allocations: 1.031 kB / 475.3 MB, free: 24.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004344/0.4371, allocations: 115.3 kB / 475.4 MB, free: 24.76 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.093e-06/0.4371, allocations: 1.5 kB / 475.4 MB, free: 24.76 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.274e-05/0.4371, allocations: 13.78 kB / 475.4 MB, free: 24.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.961e-06/0.4371, allocations: 6.375 kB / 475.5 MB, free: 24.75 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.4371, allocations: 3.938 kB / 475.5 MB, free: 24.75 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002539/0.4397, allocations: 1.88 MB / 477.3 MB, free: 24.14 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002668/0.44, allocations: 205.3 kB / 477.5 MB, free: 23.96 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.93e-05/0.4401, allocations: 11.72 kB / 477.5 MB, free: 23.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002314/0.4403, allocations: 18.61 kB / 477.6 MB, free: 23.94 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001191/0.4404, allocations: 41.12 kB / 477.6 MB, free: 23.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.056e-05/0.4405, allocations: 25.22 kB / 477.6 MB, free: 23.92 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001326/0.4418, allocations: 0.8871 MB / 478.5 MB, free: 23.61 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.4418, allocations: 4 kB / 478.5 MB, free: 23.61 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007923/0.4426, allocations: 206.9 kB / 478.7 MB, free: 23.54 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.0002086/0.4428, allocations: 116.6 kB / 478.8 MB, free: 23.43 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001863/0.4447, allocations: 1.02 MB / 479.9 MB, free: 23.2 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/0.4447, allocations: 0.625 kB / 479.9 MB, free: 23.2 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007957/0.4455, allocations: 0.5151 MB / 480.4 MB, free: 23.07 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000792/0.4463, allocations: 100 kB / 480.5 MB, free: 23.02 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004182/0.4505, allocations: 2.798 MB / 483.3 MB, free: 21.73 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008678/0.4514, allocations: 1.305 MB / 484.6 MB, free: 20.97 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002661/0.4517, allocations: 73.41 kB / 484.6 MB, free: 20.95 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001212/0.4518, allocations: 49.98 kB / 484.7 MB, free: 20.94 MB / 366.1 MB Notification: Performance of SimCode: time 7.81e-07/0.4518, allocations: 0 / 484.7 MB, free: 20.94 MB / 366.1 MB Notification: Performance of Templates: time 0.01353/0.4653, allocations: 5.217 MB / 489.9 MB, free: 20.44 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)