Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.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.001628/0.001628, allocations: 92.2 kB / 20.19 MB, free: 4.359 MB / 18.57 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.001313/0.001313, allocations: 173 kB / 23.49 MB, free: 1.059 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 1.046/1.046, allocations: 177.1 MB / 203.8 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.1502/0.1502, allocations: 21.8 MB / 282.1 MB, free: 7.254 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_5,tolerance=1e-10,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_5,tolerance=1e-10,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.753e-06/1.753e-06, allocations: 0 / 358.8 MB, free: 4.184 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.632e-05/1.807e-05, allocations: 2.312 kB / 358.8 MB, free: 4.18 MB / 282.7 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_5): time 0.003086/0.003104, allocations: 2.826 MB / 361.7 MB, free: 1.34 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001234/0.004338, allocations: 0.5337 MB / 362.2 MB, free: 0.8047 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002634/0.004601, allocations: 12 kB / 362.2 MB, free: 0.793 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002756/0.004877, allocations: 150.6 kB / 362.4 MB, free: 0.6445 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002718/0.005149, allocations: 130.9 kB / 362.5 MB, free: 0.5156 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006104/0.005759, allocations: 291.5 kB / 362.8 MB, free: 236 kB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005306/0.00629, allocations: 0.7276 MB / 363.5 MB, free: 15.5 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004631/0.006753, allocations: 353.7 kB / 363.8 MB, free: 15.12 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003397/0.007092, allocations: 450.9 kB / 364.3 MB, free: 14.68 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002154/0.007308, allocations: 286.8 kB / 364.6 MB, free: 14.4 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.182e-05/0.00739, allocations: 72 kB / 364.6 MB, free: 14.33 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001738/0.007563, allocations: 104 kB / 364.7 MB, free: 14.23 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002904/0.007854, allocations: 446.4 kB / 365.2 MB, free: 13.79 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001921/0.008046, allocations: 306.6 kB / 365.5 MB, free: 13.49 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007179/0.008764, allocations: 0.8552 MB / 366.3 MB, free: 12.63 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.008767, allocations: 0 / 366.3 MB, free: 12.63 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.008769, allocations: 0 / 366.3 MB, free: 12.63 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.618e-05/0.008785, allocations: 4 kB / 366.3 MB, free: 12.63 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.001657/0.01044, allocations: 1.797 MB / 368.1 MB, free: 10.78 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.496e-05/0.01049, allocations: 16.03 kB / 368.1 MB, free: 10.77 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002302/0.01072, allocations: 271.7 kB / 368.4 MB, free: 10.5 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003714/0.01109, allocations: 0.5248 MB / 368.9 MB, free: 9.938 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.755e-05/0.01116, allocations: 70.38 kB / 369 MB, free: 9.867 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.468e-05/0.01124, allocations: 100.4 kB / 369.1 MB, free: 9.77 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009051/0.01215, allocations: 0.6106 MB / 369.7 MB, free: 9.141 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.646e-05/0.01217, allocations: 192 / 369.7 MB, free: 9.141 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.986e-05/0.01223, allocations: 40.38 kB / 369.8 MB, free: 9.102 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.804e-05/0.01231, allocations: 58.48 kB / 369.8 MB, free: 9.043 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007163/0.01303, allocations: 404.5 kB / 370.2 MB, free: 8.637 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002825/0.01585, allocations: 2.068 MB / 372.3 MB, free: 6.508 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005664/0.01642, allocations: 324.2 kB / 372.6 MB, free: 6.176 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002147/0.01663, allocations: 129.6 kB / 372.7 MB, free: 6.047 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.397e-05/0.01671, allocations: 36.62 kB / 372.8 MB, free: 6.012 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.193e-05/0.01674, allocations: 38.05 kB / 372.8 MB, free: 5.965 MB / 298.7 MB Notification: Performance of pre-optimization done (n=66): time 2.564e-06/0.01674, allocations: 0 / 372.8 MB, free: 5.965 MB / 298.7 MB Notification: Performance of matching and sorting (n=66): time 0.0009162/0.01766, allocations: 0.5828 MB / 373.4 MB, free: 5.375 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.637e-05/0.0177, allocations: 68.05 kB / 373.4 MB, free: 5.297 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0011/0.0188, allocations: 1.154 MB / 374.6 MB, free: 4.113 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.333e-05/0.01884, allocations: 33.7 kB / 374.6 MB, free: 4.074 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000574/0.01941, allocations: 0.8575 MB / 375.5 MB, free: 3.203 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001604/0.01957, allocations: 234 kB / 375.7 MB, free: 2.973 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001579/0.01973, allocations: 136.3 kB / 375.8 MB, free: 2.832 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000171/0.0199, allocations: 0.5082 MB / 376.4 MB, free: 2.316 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002005/0.0201, allocations: 101.9 kB / 376.5 MB, free: 2.215 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003614/0.02046, allocations: 376.6 kB / 376.8 MB, free: 1.746 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007857/0.02125, allocations: 0.6295 MB / 377.5 MB, free: 1.008 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.479e-06/0.02125, allocations: 0 / 377.5 MB, free: 1.008 MB / 298.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0008314/0.02208, allocations: 0.6489 MB / 378.1 MB, free: 360 kB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.119e-05/0.02211, allocations: 8 kB / 378.1 MB, free: 352 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.127e-05/0.02212, allocations: 4 kB / 378.1 MB, free: 348 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.214e-05/0.02214, allocations: 12 kB / 378.1 MB, free: 336 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004153/0.02255, allocations: 167.7 kB / 378.3 MB, free: 168 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.773e-05/0.02257, allocations: 19.88 kB / 378.3 MB, free: 148 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002184/0.02279, allocations: 75.44 kB / 378.4 MB, free: 72 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.145e-05/0.02284, allocations: 36 kB / 378.4 MB, free: 36 kB / 298.7 MB Warning: Assuming fixed start value for the following 6 variables: years:VARIABLE(start = 1900.0 fixed = true ) \"Time in calendar years\" type: Real Population.level:VARIABLE(start = Population.x0 fixed = true ) \"Reversible state variable\" type: Real Natural_Resources.level:VARIABLE(start = Natural_Resources.x0 fixed = true ) \"Reversible state variable\" type: Real Capital_Investment.level:VARIABLE(start = Capital_Investment.x0 fixed = true ) \"Reversible state variable\" type: Real Pollution.level:VARIABLE(start = Pollution.x0 fixed = true ) \"Reversible state variable\" type: Real CIAF.level:VARIABLE(start = CIAF.x0 fixed = true ) \"Reversible state variable\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 96 * 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.0003057/0.02315, allocations: 222.4 kB / 378.6 MB, free: 15.81 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001455/0.02329, allocations: 159.1 kB / 378.8 MB, free: 15.65 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007817/0.02408, allocations: 0.5426 MB / 379.3 MB, free: 15.1 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/0.02408, allocations: 4 kB / 379.3 MB, free: 15.1 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.02409, allocations: 4 kB / 379.3 MB, free: 15.09 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.307e-06/0.02409, allocations: 7.922 kB / 379.3 MB, free: 15.09 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001531/0.02563, allocations: 1.306 MB / 380.7 MB, free: 13.73 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.02563, allocations: 4 kB / 380.7 MB, free: 13.72 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003603/0.02599, allocations: 123.8 kB / 380.8 MB, free: 13.6 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.949e-06/0.02599, allocations: 3.938 kB / 380.8 MB, free: 13.6 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.19e-05/0.02603, allocations: 16 kB / 380.8 MB, free: 13.58 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.44e-06/0.02603, allocations: 3.938 kB / 380.8 MB, free: 13.58 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.02603, allocations: 4 kB / 380.8 MB, free: 13.57 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009103/0.02694, allocations: 0.7791 MB / 381.6 MB, free: 12.77 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001043/0.02705, allocations: 122.9 kB / 381.7 MB, free: 12.65 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.401e-05/0.02711, allocations: 12 kB / 381.7 MB, free: 12.64 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001628/0.02728, allocations: 27.92 kB / 381.7 MB, free: 12.61 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001032/0.02738, allocations: 48.56 kB / 381.8 MB, free: 12.56 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.894e-05/0.02741, allocations: 20 kB / 381.8 MB, free: 12.54 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000639/0.02805, allocations: 0.6639 MB / 382.5 MB, free: 11.88 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02805, allocations: 0 / 382.5 MB, free: 11.88 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004864/0.02853, allocations: 215.2 kB / 382.7 MB, free: 11.67 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (years,Population.level,Natural_Resources.level,Capital_Investment.level,Pollution.level,CIAF.level) * 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 (66): * Single equations (assignments): 66 * 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.0001798/0.02871, allocations: 123.1 kB / 382.8 MB, free: 11.54 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005893/0.0293, allocations: 395.1 kB / 383.2 MB, free: 11.15 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.0293, allocations: 0 / 383.2 MB, free: 11.15 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002668/0.02957, allocations: 208.7 kB / 383.4 MB, free: 10.94 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004122/0.02998, allocations: 69.11 kB / 383.5 MB, free: 10.88 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002646/0.03263, allocations: 2.242 MB / 385.7 MB, free: 8.582 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002758/0.0329, allocations: 333.1 kB / 386 MB, free: 8.238 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002616/0.03317, allocations: 112.4 kB / 386.1 MB, free: 8.125 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001186/0.03329, allocations: 52.48 kB / 386.2 MB, free: 8.074 MB / 314.7 MB Notification: Performance of SimCode: time 9.72e-07/0.03329, allocations: 0 / 386.2 MB, free: 8.074 MB / 314.7 MB Notification: Performance of Templates: time 0.01041/0.04369, allocations: 4.573 MB / 390.8 MB, free: 3.531 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.makefile [Timeout 660] (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5 -abortSlowSimulation -alarm=240 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.6341625289060175]