Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.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_6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001055/0.001055, 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.001363/0.001363, allocations: 197 kB / 16.14 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.393/1.393, allocations: 222.9 MB / 239.8 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3554/0.3554, allocations: 28.8 MB / 318.8 MB, free: 5.957 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001039/0.001039, allocations: 55.92 kB / 385.9 MB, free: 4.082 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3682/0.3693, allocations: 56.41 MB / 442.3 MB, free: 39.77 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.003904/0.3732, allocations: 3.67 MB / 446 MB, free: 37.48 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001513/0.3748, allocations: 0.7634 MB / 446.8 MB, free: 37.23 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003387/0.3751, allocations: 14.75 kB / 446.8 MB, free: 37.23 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003588/0.3755, allocations: 123.9 kB / 446.9 MB, free: 37.18 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002863/0.3758, allocations: 97.77 kB / 447 MB, free: 37.14 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006142/0.3764, allocations: 321.6 kB / 447.3 MB, free: 37.12 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006837/0.3771, allocations: 0.8313 MB / 448.2 MB, free: 37.02 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006758/0.3778, allocations: 0.6172 MB / 448.8 MB, free: 36.86 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003048/0.3781, allocations: 315.5 kB / 449.1 MB, free: 36.77 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003091/0.3784, allocations: 438.7 kB / 449.5 MB, free: 36.52 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001067/0.3785, allocations: 59.56 kB / 449.6 MB, free: 36.52 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001817/0.3787, allocations: 79.17 kB / 449.6 MB, free: 36.51 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002789/0.379, allocations: 416.4 kB / 450.1 MB, free: 36.33 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003041/0.3793, allocations: 0.5975 MB / 450.6 MB, free: 35.88 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007352/0.3801, allocations: 1.144 MB / 451.8 MB, free: 35.29 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.3801, allocations: 0 / 451.8 MB, free: 35.29 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.3801, allocations: 0 / 451.8 MB, free: 35.29 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.749e-05/0.3801, allocations: 0 / 451.8 MB, free: 35.29 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: 265 * Number of variables: 265 Notification: Performance of Generate backend data structure: time 0.002016/0.3821, allocations: 1.812 MB / 453.6 MB, free: 34.02 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.29e-05/0.3822, allocations: 8.062 kB / 453.6 MB, free: 34.02 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002066/0.3824, allocations: 200.4 kB / 453.8 MB, free: 33.91 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007027/0.3831, allocations: 0.754 MB / 454.6 MB, free: 33.34 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.587e-05/0.3832, allocations: 88.98 kB / 454.6 MB, free: 33.3 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001115/0.3833, allocations: 100.4 kB / 454.7 MB, free: 33.27 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001523/0.3848, allocations: 1.173 MB / 455.9 MB, free: 32.78 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.498e-05/0.3849, allocations: 192 / 455.9 MB, free: 32.78 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.611e-05/0.3849, allocations: 50.38 kB / 456 MB, free: 32.74 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.237e-05/0.385, allocations: 27.31 kB / 456 MB, free: 32.74 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001417/0.3864, allocations: 1.105 MB / 457.1 MB, free: 32.47 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004431/0.3908, allocations: 3.702 MB / 460.8 MB, free: 30.43 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00151/0.3924, allocations: 1.36 MB / 462.2 MB, free: 30.1 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000471/0.3928, allocations: 498.5 kB / 462.6 MB, free: 29.97 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.152e-05/0.393, allocations: 26.11 kB / 462.7 MB, free: 29.96 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007627/0.3937, allocations: 0.5491 MB / 463.2 MB, free: 29.8 MB / 366.1 MB Notification: Performance of pre-optimization done (n=72): time 3.206e-06/0.3937, allocations: 0 / 463.2 MB, free: 29.8 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.001847/0.3956, allocations: 1.567 MB / 464.8 MB, free: 29.37 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.124e-05/0.3957, allocations: 59.94 kB / 464.8 MB, free: 29.3 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001468/0.3971, allocations: 1.3 MB / 466.1 MB, free: 28.86 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.674e-05/0.3972, allocations: 40.2 kB / 466.2 MB, free: 28.81 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005491/0.3977, allocations: 0.7624 MB / 467 MB, free: 28.22 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001672/0.3979, allocations: 244.6 kB / 467.2 MB, free: 28.02 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001763/0.3981, allocations: 126.9 kB / 467.3 MB, free: 27.96 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.286e-05/0.3982, allocations: 333.9 kB / 467.6 MB, free: 27.64 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005095/0.3987, allocations: 446.7 kB / 468.1 MB, free: 27.54 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006829/0.3994, allocations: 0.5565 MB / 468.6 MB, free: 27.32 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001389/0.4008, allocations: 1.042 MB / 469.7 MB, free: 26.94 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.873e-06/0.4008, allocations: 1.25 kB / 469.7 MB, free: 26.94 MB / 366.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.00176/0.4026, allocations: 1.221 MB / 470.9 MB, free: 26.56 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.371e-05/0.4026, allocations: 12 kB / 470.9 MB, free: 26.55 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.227e-05/0.4026, allocations: 3.312 kB / 470.9 MB, free: 26.55 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.006e-05/0.4026, allocations: 6.781 kB / 470.9 MB, free: 26.55 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005239/0.4032, allocations: 138.2 kB / 471.1 MB, free: 26.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.796e-05/0.4032, allocations: 5.844 kB / 471.1 MB, free: 26.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002927/0.4035, allocations: 60.72 kB / 471.1 MB, free: 26.49 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.673e-05/0.4036, allocations: 27.58 kB / 471.1 MB, free: 26.49 MB / 366.1 MB Warning: Assuming fixed start value for the following 2 variables: min_QL:DISCRETE(start = 1.0 fixed = true ) "Minimum quality of life" type: Real min_dPop:DISCRETE(unit = "1/yr" fixed = true ) "Minimal derivative of population" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$PRE.min_QL,$PRE.min_dPop,min_QL,min_dPop,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 (89): * Single equations (assignments): 89 * 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.0007021/0.4043, allocations: 393.4 kB / 471.5 MB, free: 26.26 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001673/0.4044, allocations: 142.9 kB / 471.7 MB, free: 26.18 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00173/0.4062, allocations: 1.23 MB / 472.9 MB, free: 25.82 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.388e-06/0.4062, allocations: 9.969 kB / 472.9 MB, free: 25.81 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/0.4062, allocations: 1.344 kB / 472.9 MB, free: 25.81 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.704e-06/0.4062, allocations: 7.219 kB / 472.9 MB, free: 25.81 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003347/0.4096, allocations: 2.425 MB / 475.3 MB, free: 24.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.169e-06/0.4096, allocations: 1.156 kB / 475.3 MB, free: 24.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004987/0.4101, allocations: 115.4 kB / 475.5 MB, free: 24.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.785e-06/0.4101, allocations: 2.625 kB / 475.5 MB, free: 24.89 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.552e-05/0.4102, allocations: 18.09 kB / 475.5 MB, free: 24.88 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.528e-06/0.4102, allocations: 6.016 kB / 475.5 MB, free: 24.88 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.4102, allocations: 3.938 kB / 475.5 MB, free: 24.88 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002635/0.4128, allocations: 1.927 MB / 477.4 MB, free: 24.25 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003116/0.4132, allocations: 249.3 kB / 477.7 MB, free: 24.04 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.088e-05/0.4132, allocations: 19.42 kB / 477.7 MB, free: 24.03 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002228/0.4135, allocations: 10.84 kB / 477.7 MB, free: 24.02 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001034/0.4136, allocations: 42.62 kB / 477.7 MB, free: 24.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.925e-05/0.4136, allocations: 22.91 kB / 477.8 MB, free: 24.01 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001282/0.4149, allocations: 0.8963 MB / 478.6 MB, free: 23.7 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.4149, allocations: 4 kB / 478.7 MB, free: 23.7 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008133/0.4158, allocations: 215.6 kB / 478.9 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: 3 ($whenCondition1,min_dPop,min_QL) * Number of discrete states: 2 (min_dPop,min_QL) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0002193/0.416, allocations: 123 kB / 479 MB, free: 23.51 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001469/0.4175, allocations: 1.016 MB / 480 MB, free: 23.29 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.4175, allocations: 0.6875 kB / 480 MB, free: 23.29 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007465/0.4182, allocations: 0.5294 MB / 480.5 MB, free: 23.16 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006792/0.4189, allocations: 98.97 kB / 480.6 MB, free: 23.09 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004391/0.4233, allocations: 3.392 MB / 484 MB, free: 21.23 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008953/0.4242, allocations: 1.311 MB / 485.3 MB, free: 20.46 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002834/0.4245, allocations: 73.83 kB / 485.4 MB, free: 20.45 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001375/0.4247, allocations: 48.66 kB / 485.4 MB, free: 20.43 MB / 366.1 MB Notification: Performance of SimCode: time 1.232e-06/0.4247, allocations: 1.281 kB / 485.4 MB, free: 20.43 MB / 366.1 MB Notification: Performance of Templates: time 0.01534/0.44, allocations: 5.174 MB / 490.6 MB, free: 19.93 MB / 366.1 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe 2>&1)