Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001073/0.001073, allocations: 92.22 kB / 19.65 MB, free: 276 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001479/0.001479, allocations: 173 kB / 23.02 MB, free: 1.547 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9367/0.9367, allocations: 177.1 MB / 203.4 MB, free: 5.641 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics master/package.mo): time 0.1257/0.1257, allocations: 21.8 MB / 281.7 MB, free: 7.184 MB / 266.7 MB " [Timeout remaining time 180] Using package SystemDynamics with version 2.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(SystemDynamics.WorldDynamics.World2.Scenario_4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.753e-06/1.753e-06, allocations: 0 / 358.8 MB, free: 5.047 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.684e-05/1.86e-05, allocations: 10.25 kB / 358.8 MB, free: 5.035 MB / 330.7 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_4): time 0.005429/0.005447, allocations: 3.204 MB / 362 MB, free: 1.816 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.003116/0.008564, allocations: 0.6818 MB / 362.7 MB, free: 1.133 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000817/0.009381, allocations: 23.88 kB / 362.7 MB, free: 1.109 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006198/0.01, allocations: 182.3 kB / 362.9 MB, free: 0.9297 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006171/0.01062, allocations: 142.7 kB / 363.1 MB, free: 0.7891 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009668/0.01158, allocations: 359.5 kB / 363.4 MB, free: 448 kB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001109/0.01269, allocations: 0.8522 MB / 364.3 MB, free: 15.58 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009002/0.01359, allocations: 476.1 kB / 364.7 MB, free: 15.08 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005741/0.01417, allocations: 0.491 MB / 365.2 MB, free: 14.59 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003475/0.01451, allocations: 302.7 kB / 365.5 MB, free: 14.29 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001737/0.01469, allocations: 88 kB / 365.6 MB, free: 14.21 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002339/0.01492, allocations: 119.9 kB / 365.7 MB, free: 14.09 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005134/0.01544, allocations: 462.3 kB / 366.2 MB, free: 13.64 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000288/0.01572, allocations: 338.5 kB / 366.5 MB, free: 13.3 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001165/0.01689, allocations: 0.9407 MB / 367.4 MB, free: 12.36 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.92e-06/0.01689, allocations: 0 / 367.4 MB, free: 12.36 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.454e-06/0.0169, allocations: 0 / 367.4 MB, free: 12.36 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.886e-05/0.01693, allocations: 0 / 367.4 MB, free: 12.36 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 290 * Number of variables: 290 Notification: Performance of Generate backend data structure: time 0.002248/0.01918, allocations: 1.922 MB / 369.4 MB, free: 10.38 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.804e-05/0.01923, allocations: 8.031 kB / 369.4 MB, free: 10.38 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003338/0.01956, allocations: 295.5 kB / 369.7 MB, free: 10.09 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001092/0.02066, allocations: 0.7251 MB / 370.4 MB, free: 9.324 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.141e-05/0.02073, allocations: 82.48 kB / 370.5 MB, free: 9.242 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001083/0.02084, allocations: 104.4 kB / 370.6 MB, free: 9.141 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001174/0.02201, allocations: 0.8351 MB / 371.4 MB, free: 8.219 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.338e-05/0.02203, allocations: 4.188 kB / 371.4 MB, free: 8.215 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.877e-05/0.02209, allocations: 40.38 kB / 371.4 MB, free: 8.176 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.519e-05/0.02216, allocations: 48.36 kB / 371.5 MB, free: 8.129 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007701/0.02293, allocations: 428.2 kB / 371.9 MB, free: 7.699 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002998/0.02593, allocations: 3.584 MB / 375.5 MB, free: 4 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005901/0.02652, allocations: 404.9 kB / 375.9 MB, free: 3.578 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000166/0.02668, allocations: 141.3 kB / 376 MB, free: 3.434 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.679e-05/0.02675, allocations: 36.5 kB / 376.1 MB, free: 3.398 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.469e-05/0.02677, allocations: 46.05 kB / 376.1 MB, free: 3.344 MB / 346.7 MB Notification: Performance of pre-optimization done (n=70): time 2.274e-06/0.02678, allocations: 0 / 376.1 MB, free: 3.344 MB / 346.7 MB Notification: Performance of matching and sorting (n=70): time 0.0007274/0.0275, allocations: 0.6023 MB / 376.7 MB, free: 2.734 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.59e-05/0.02755, allocations: 89.7 kB / 376.8 MB, free: 2.629 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0013/0.02885, allocations: 1.255 MB / 378 MB, free: 1.352 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.256e-05/0.02889, allocations: 33.7 kB / 378.1 MB, free: 1.312 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006095/0.0295, allocations: 0.9287 MB / 379 MB, free: 380 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001505/0.02965, allocations: 245.8 kB / 379.3 MB, free: 132 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001923/0.02984, allocations: 160.3 kB / 379.4 MB, free: 15.96 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001461/0.02999, allocations: 0.5161 MB / 379.9 MB, free: 15.44 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002125/0.0302, allocations: 109.9 kB / 380 MB, free: 15.33 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003887/0.03059, allocations: 475.2 kB / 380.5 MB, free: 14.72 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007189/0.03131, allocations: 0.6419 MB / 381.1 MB, free: 13.92 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.831e-06/0.03132, allocations: 0 / 381.1 MB, free: 13.92 MB / 362.7 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.0009584/0.03227, allocations: 0.73 MB / 381.9 MB, free: 13.18 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.196e-05/0.0323, allocations: 9 kB / 381.9 MB, free: 13.18 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.235e-05/0.03231, allocations: 8 kB / 381.9 MB, free: 13.17 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.316e-05/0.03233, allocations: 16 kB / 381.9 MB, free: 13.15 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004549/0.03279, allocations: 183.7 kB / 382.1 MB, free: 12.97 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.779e-05/0.0328, allocations: 15.98 kB / 382.1 MB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002552/0.03306, allocations: 79.41 kB / 382.2 MB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.195e-05/0.03311, allocations: 40 kB / 382.2 MB, free: 12.84 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * 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 (109): * Single equations (assignments): 109 * 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.0002279/0.03334, allocations: 219 kB / 382.4 MB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001698/0.03351, allocations: 175 kB / 382.6 MB, free: 12.45 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008142/0.03432, allocations: 0.5711 MB / 383.2 MB, free: 11.87 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.987e-06/0.03433, allocations: 8 kB / 383.2 MB, free: 11.86 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.231e-06/0.03434, allocations: 4.031 kB / 383.2 MB, free: 11.86 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.345e-06/0.03435, allocations: 3.984 kB / 383.2 MB, free: 11.85 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001917/0.03626, allocations: 1.363 MB / 384.5 MB, free: 10.44 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/0.03627, allocations: 4 kB / 384.5 MB, free: 10.44 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003598/0.03663, allocations: 115.9 kB / 384.7 MB, free: 10.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.215e-06/0.03664, allocations: 4 kB / 384.7 MB, free: 10.32 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.44e-05/0.03667, allocations: 16 kB / 384.7 MB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.083e-06/0.03668, allocations: 7.938 kB / 384.7 MB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.03668, allocations: 3.984 kB / 384.7 MB, free: 10.29 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009659/0.03765, allocations: 0.9082 MB / 385.6 MB, free: 9.359 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003943/0.03804, allocations: 142.8 kB / 385.7 MB, free: 9.219 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.343e-05/0.03813, allocations: 12 kB / 385.8 MB, free: 9.207 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002091/0.03833, allocations: 16 kB / 385.8 MB, free: 9.191 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.458e-05/0.03843, allocations: 44.56 kB / 385.8 MB, free: 9.145 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.361e-05/0.03846, allocations: 20 kB / 385.8 MB, free: 9.125 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007253/0.03919, allocations: 0.7142 MB / 386.5 MB, free: 8.414 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.03919, allocations: 0 / 386.5 MB, free: 8.414 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006843/0.03987, allocations: 231.1 kB / 386.8 MB, free: 8.188 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (70): * Single equations (assignments): 70 * 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.0002032/0.04008, allocations: 127.1 kB / 386.9 MB, free: 8.055 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006702/0.04075, allocations: 416.4 kB / 387.3 MB, free: 7.648 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.83e-05/0.04077, allocations: 0.625 kB / 387.3 MB, free: 7.648 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002928/0.04107, allocations: 204.6 kB / 387.5 MB, free: 7.445 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006786/0.04175, allocations: 96.94 kB / 387.6 MB, free: 7.352 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003132/0.04488, allocations: 2.355 MB / 390 MB, free: 4.945 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002758/0.04515, allocations: 341.1 kB / 390.3 MB, free: 4.59 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002965/0.04545, allocations: 128.9 kB / 390.4 MB, free: 4.461 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001309/0.04558, allocations: 64.42 kB / 390.5 MB, free: 4.398 MB / 362.7 MB Notification: Performance of SimCode: time 1.463e-06/0.04558, allocations: 0 / 390.5 MB, free: 4.398 MB / 362.7 MB Notification: Performance of Templates: time 0.01231/0.05789, allocations: 5.057 MB / 395.5 MB, free: 15.39 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.makefile [Timeout 660] (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4 -abortSlowSimulation -alarm=240 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.0777280149050057]