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.001116/0.001116, 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.001611/0.001611, 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.383/1.383, allocations: 222.9 MB / 240.2 MB, free: 4.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3206/0.3206, allocations: 28.82 MB / 319.2 MB, free: 5.668 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001483/0.001483, allocations: 67.91 kB / 386.6 MB, free: 3.598 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3464/0.3479, allocations: 56.4 MB / 443 MB, free: 39.6 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.004437/0.3524, allocations: 3.676 MB / 446.7 MB, free: 37.3 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001903/0.3543, allocations: 0.7742 MB / 447.5 MB, free: 37.04 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004385/0.3548, allocations: 18.06 kB / 447.5 MB, free: 37.04 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000564/0.3554, allocations: 177 kB / 447.7 MB, free: 36.94 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003384/0.3558, allocations: 134.1 kB / 447.8 MB, free: 36.86 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009478/0.3567, allocations: 376.8 kB / 448.2 MB, free: 36.84 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009187/0.3576, allocations: 0.8567 MB / 449 MB, free: 36.74 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009819/0.3586, allocations: 0.6449 MB / 449.7 MB, free: 36.51 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003474/0.359, allocations: 343.6 kB / 450 MB, free: 36.32 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004103/0.3594, allocations: 437 kB / 450.4 MB, free: 36.05 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001491/0.3596, allocations: 85.44 kB / 450.5 MB, free: 36.05 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002383/0.3598, allocations: 112.7 kB / 450.6 MB, free: 36.05 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003858/0.3602, allocations: 437.1 kB / 451 MB, free: 35.84 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005283/0.3607, allocations: 0.6254 MB / 451.7 MB, free: 35.36 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001139/0.3619, allocations: 1.192 MB / 452.9 MB, free: 34.75 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.184e-06/0.3619, allocations: 3.25 kB / 452.9 MB, free: 34.75 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.3619, allocations: 4 kB / 452.9 MB, free: 34.75 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.005e-05/0.3619, allocations: 0 / 452.9 MB, free: 34.75 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.001878/0.3638, allocations: 1.801 MB / 454.7 MB, free: 33.48 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.746e-05/0.3639, allocations: 7.969 kB / 454.7 MB, free: 33.48 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002186/0.3641, allocations: 200.2 kB / 454.9 MB, free: 33.38 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007473/0.3649, allocations: 0.7504 MB / 455.6 MB, free: 32.81 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.653e-05/0.365, allocations: 80.84 kB / 455.7 MB, free: 32.77 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001223/0.3651, allocations: 104.5 kB / 455.8 MB, free: 32.74 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00149/0.3666, allocations: 1.176 MB / 457 MB, free: 32.25 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.46e-05/0.3666, allocations: 6.781 kB / 457 MB, free: 32.25 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.646e-05/0.3667, allocations: 43.56 kB / 457 MB, free: 32.21 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.98e-05/0.3667, allocations: 29.25 kB / 457.1 MB, free: 32.21 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001206/0.3679, allocations: 1.104 MB / 458.2 MB, free: 31.94 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003597/0.3715, allocations: 3.707 MB / 461.9 MB, free: 29.89 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001295/0.3728, allocations: 1.364 MB / 463.2 MB, free: 29.56 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004782/0.3733, allocations: 490.9 kB / 463.7 MB, free: 29.44 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.134e-05/0.3734, allocations: 27.44 kB / 463.7 MB, free: 29.43 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006228/0.374, allocations: 0.5474 MB / 464.3 MB, free: 29.27 MB / 366.1 MB Notification: Performance of pre-optimization done (n=72): time 2.314e-06/0.3741, allocations: 0 / 464.3 MB, free: 29.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.001525/0.3756, allocations: 1.568 MB / 465.9 MB, free: 28.83 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.644e-05/0.3756, allocations: 67.28 kB / 465.9 MB, free: 28.77 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001111/0.3768, allocations: 1.296 MB / 467.2 MB, free: 28.32 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.061e-05/0.3768, allocations: 40.33 kB / 467.3 MB, free: 28.28 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003862/0.3772, allocations: 0.762 MB / 468 MB, free: 27.68 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001219/0.3773, allocations: 241.5 kB / 468.3 MB, free: 27.49 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001301/0.3775, allocations: 129.4 kB / 468.4 MB, free: 27.42 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.283e-05/0.3775, allocations: 339.7 kB / 468.7 MB, free: 27.1 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004234/0.3779, allocations: 440.5 kB / 469.1 MB, free: 27 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005699/0.3785, allocations: 0.5558 MB / 469.7 MB, free: 26.78 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001224/0.3798, allocations: 1.043 MB / 470.7 MB, free: 26.4 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.07e-06/0.3798, allocations: 1.125 kB / 470.7 MB, free: 26.4 MB / 366.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001614/0.3814, allocations: 1.227 MB / 472 MB, free: 26.02 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.762e-05/0.3814, allocations: 6.906 kB / 472 MB, free: 26.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/0.3814, allocations: 2.156 kB / 472 MB, free: 26.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.53e-05/0.3815, allocations: 6.281 kB / 472 MB, free: 26.02 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004781/0.382, allocations: 132.7 kB / 472.1 MB, free: 26 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.358e-05/0.382, allocations: 7.031 kB / 472.1 MB, free: 26 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002918/0.3823, allocations: 64.62 kB / 472.2 MB, free: 25.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.024e-05/0.3823, allocations: 24.31 kB / 472.2 MB, free: 25.95 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.0005395/0.3829, allocations: 414.3 kB / 472.6 MB, free: 25.71 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001227/0.383, allocations: 143.3 kB / 472.8 MB, free: 25.63 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001427/0.3844, allocations: 1.237 MB / 474 MB, free: 25.25 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.868e-06/0.3845, allocations: 6.562 kB / 474 MB, free: 25.25 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.732e-06/0.3845, allocations: 0 / 474 MB, free: 25.25 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.566e-06/0.3845, allocations: 8.5 kB / 474 MB, free: 25.25 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002493/0.387, allocations: 2.418 MB / 476.4 MB, free: 24.36 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.387, allocations: 0 / 476.4 MB, free: 24.36 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000446/0.3874, allocations: 116.1 kB / 476.5 MB, free: 24.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.272e-06/0.3875, allocations: 6.344 kB / 476.5 MB, free: 24.34 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.411e-05/0.3875, allocations: 13.81 kB / 476.6 MB, free: 24.33 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.729e-06/0.3875, allocations: 2.406 kB / 476.6 MB, free: 24.33 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.3875, allocations: 8.609 kB / 476.6 MB, free: 24.33 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001881/0.3894, allocations: 1.927 MB / 478.5 MB, free: 23.7 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002253/0.3896, allocations: 245.5 kB / 478.7 MB, free: 23.5 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.445e-05/0.3897, allocations: 16.72 kB / 478.8 MB, free: 23.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002281/0.39, allocations: 17.78 kB / 478.8 MB, free: 23.47 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.22e-05/0.3901, allocations: 43.64 kB / 478.8 MB, free: 23.46 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.191e-05/0.3901, allocations: 21.16 kB / 478.8 MB, free: 23.46 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0009723/0.3911, allocations: 0.8961 MB / 479.7 MB, free: 23.15 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3911, allocations: 0 / 479.7 MB, free: 23.15 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000569/0.3917, allocations: 216.2 kB / 479.9 MB, free: 23.07 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.0001587/0.3918, allocations: 122.3 kB / 480.1 MB, free: 22.96 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001393/0.3932, allocations: 1.055 MB / 481.1 MB, free: 22.71 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.3932, allocations: 0 / 481.1 MB, free: 22.71 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005277/0.3938, allocations: 0.5243 MB / 481.6 MB, free: 22.59 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005733/0.3944, allocations: 95.92 kB / 481.7 MB, free: 22.53 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003292/0.3977, allocations: 2.825 MB / 484.6 MB, free: 21.23 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006762/0.3983, allocations: 1.316 MB / 485.9 MB, free: 20.46 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002208/0.3986, allocations: 74 kB / 485.9 MB, free: 20.45 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000112/0.3987, allocations: 51.5 kB / 486 MB, free: 20.43 MB / 366.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3987, allocations: 5.25 kB / 486 MB, free: 20.43 MB / 366.1 MB Notification: Performance of Templates: time 0.01269/0.4114, allocations: 5.401 MB / 491.4 MB, free: 19.77 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)