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.001197/0.001197, allocations: 93.06 kB / 19.65 MB, free: 280 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.001341/0.001341, allocations: 173.3 kB / 23.02 MB, free: 1.551 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.9261/0.9261, allocations: 177.2 MB / 203.4 MB, free: 5.633 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.136/0.136, allocations: 21.81 MB / 281.7 MB, free: 7.188 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.864e-06/1.864e-06, allocations: 0 / 358.8 MB, free: 5.047 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.993e-05/2.179e-05, allocations: 2.312 kB / 358.8 MB, free: 5.043 MB / 330.7 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_5): time 0.004217/0.004239, allocations: 2.854 MB / 361.7 MB, free: 2.176 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001597/0.005835, allocations: 0.5298 MB / 362.2 MB, free: 1.645 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003571/0.006192, allocations: 12 kB / 362.2 MB, free: 1.633 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003019/0.006494, allocations: 146.6 kB / 362.4 MB, free: 1.488 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003423/0.006836, allocations: 130.9 kB / 362.5 MB, free: 1.359 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006344/0.007471, allocations: 291.5 kB / 362.8 MB, free: 1.074 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007399/0.008211, allocations: 0.7354 MB / 363.5 MB, free: 344 kB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005302/0.008741, allocations: 349.7 kB / 363.9 MB, free: 15.97 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004863/0.009227, allocations: 454.8 kB / 364.3 MB, free: 15.53 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002748/0.009502, allocations: 274.9 kB / 364.6 MB, free: 15.26 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000114/0.009616, allocations: 76 kB / 364.6 MB, free: 15.18 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001823/0.009798, allocations: 107.9 kB / 364.7 MB, free: 15.08 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003171/0.01012, allocations: 454.4 kB / 365.2 MB, free: 14.63 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002453/0.01036, allocations: 306.7 kB / 365.5 MB, free: 14.33 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008805/0.01124, allocations: 0.8551 MB / 366.3 MB, free: 13.47 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.525e-06/0.01124, allocations: 0 / 366.3 MB, free: 13.47 MB / 346.7 MB Notification: Performance of FrontEnd: time 7.81e-07/0.01124, allocations: 0 / 366.3 MB, free: 13.47 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.606e-05/0.01126, allocations: 0 / 366.3 MB, free: 13.47 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: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.001933/0.01319, allocations: 1.793 MB / 368.1 MB, free: 11.62 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.296e-05/0.01323, allocations: 12.03 kB / 368.1 MB, free: 11.61 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002954/0.01352, allocations: 279.6 kB / 368.4 MB, free: 11.34 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006536/0.01418, allocations: 0.6301 MB / 369 MB, free: 10.67 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.824e-05/0.01424, allocations: 70.38 kB / 369.1 MB, free: 10.61 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001119/0.01436, allocations: 96.38 kB / 369.2 MB, free: 10.51 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001078/0.01543, allocations: 0.6029 MB / 369.8 MB, free: 9.887 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.723e-05/0.01546, allocations: 4.188 kB / 369.8 MB, free: 9.883 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.917e-05/0.01552, allocations: 40.38 kB / 369.9 MB, free: 9.844 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.813e-05/0.01559, allocations: 58.44 kB / 369.9 MB, free: 9.785 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007968/0.01638, allocations: 400.5 kB / 370.3 MB, free: 9.383 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003062/0.01945, allocations: 2.08 MB / 372.4 MB, free: 7.242 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006063/0.02005, allocations: 317.2 kB / 372.7 MB, free: 6.918 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002313/0.02028, allocations: 133.6 kB / 372.8 MB, free: 6.785 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.011e-05/0.02035, allocations: 32.64 kB / 372.9 MB, free: 6.754 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.136e-05/0.02039, allocations: 42.05 kB / 372.9 MB, free: 6.703 MB / 346.7 MB Notification: Performance of pre-optimization done (n=66): time 2.425e-06/0.02039, allocations: 0 / 372.9 MB, free: 6.703 MB / 346.7 MB Notification: Performance of matching and sorting (n=66): time 0.0009596/0.02135, allocations: 0.5868 MB / 373.5 MB, free: 6.109 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.464e-05/0.02138, allocations: 56.06 kB / 373.5 MB, free: 6.043 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001207/0.02259, allocations: 1.154 MB / 374.7 MB, free: 4.859 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.529e-05/0.02262, allocations: 37.7 kB / 374.7 MB, free: 4.816 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006099/0.02323, allocations: 0.8496 MB / 375.6 MB, free: 3.953 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001701/0.0234, allocations: 242.1 kB / 375.8 MB, free: 3.715 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001719/0.02358, allocations: 136.3 kB / 375.9 MB, free: 3.574 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001689/0.02375, allocations: 0.5082 MB / 376.5 MB, free: 3.059 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002318/0.02398, allocations: 101.9 kB / 376.6 MB, free: 2.957 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003691/0.02435, allocations: 374.6 kB / 376.9 MB, free: 2.488 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008537/0.0252, allocations: 0.6257 MB / 377.5 MB, free: 1.758 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.252e-06/0.02521, allocations: 8 kB / 377.6 MB, free: 1.75 MB / 346.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0009419/0.02615, allocations: 0.641 MB / 378.2 MB, free: 1.102 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.703e-05/0.02617, allocations: 6.969 kB / 378.2 MB, free: 1.098 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.718e-06/0.02617, allocations: 8 kB / 378.2 MB, free: 1.09 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.972e-05/0.02619, allocations: 8 kB / 378.2 MB, free: 1.082 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005118/0.02671, allocations: 171.7 kB / 378.4 MB, free: 0.9141 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.859e-05/0.02673, allocations: 19.86 kB / 378.4 MB, free: 0.8945 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002679/0.02699, allocations: 67.52 kB / 378.5 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.648e-05/0.02705, allocations: 40 kB / 378.5 MB, free: 0.7891 MB / 346.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.000286/0.02734, allocations: 230.1 kB / 378.7 MB, free: 0.5586 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001614/0.0275, allocations: 163.1 kB / 378.9 MB, free: 408 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008818/0.02838, allocations: 0.5387 MB / 379.4 MB, free: 15.85 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.454e-06/0.02839, allocations: 8 kB / 379.4 MB, free: 15.84 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.02839, allocations: 0 / 379.4 MB, free: 15.84 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.378e-06/0.0284, allocations: 7.922 kB / 379.5 MB, free: 15.83 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001706/0.03011, allocations: 1.31 MB / 380.8 MB, free: 14.47 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.03011, allocations: 0 / 380.8 MB, free: 14.47 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004376/0.03055, allocations: 123.8 kB / 380.9 MB, free: 14.35 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.949e-06/0.03055, allocations: 0 / 380.9 MB, free: 14.35 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.96e-05/0.03059, allocations: 16 kB / 380.9 MB, free: 14.33 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.989e-06/0.0306, allocations: 3.938 kB / 380.9 MB, free: 14.33 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.0306, allocations: 0 / 380.9 MB, free: 14.33 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001014/0.03161, allocations: 0.7752 MB / 381.7 MB, free: 13.53 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001262/0.03174, allocations: 118.9 kB / 381.8 MB, free: 13.41 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.147e-05/0.03181, allocations: 16 kB / 381.8 MB, free: 13.39 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002084/0.03202, allocations: 23.98 kB / 381.8 MB, free: 13.37 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001019/0.03212, allocations: 56.5 kB / 381.9 MB, free: 13.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.661e-05/0.03215, allocations: 20 kB / 381.9 MB, free: 13.3 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007789/0.03293, allocations: 0.6639 MB / 382.6 MB, free: 12.63 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.03293, allocations: 0 / 382.6 MB, free: 12.63 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000564/0.0335, allocations: 219.2 kB / 382.8 MB, free: 12.42 MB / 362.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.0001679/0.03367, allocations: 111.2 kB / 382.9 MB, free: 12.3 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006593/0.03433, allocations: 398.9 kB / 383.3 MB, free: 11.91 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.03433, allocations: 0 / 383.3 MB, free: 11.91 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003134/0.03464, allocations: 210.2 kB / 383.5 MB, free: 11.7 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004424/0.03508, allocations: 72.48 kB / 383.6 MB, free: 11.63 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002997/0.03808, allocations: 2.244 MB / 385.8 MB, free: 9.332 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002999/0.03838, allocations: 333.2 kB / 386.1 MB, free: 8.988 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002748/0.03865, allocations: 112.3 kB / 386.2 MB, free: 8.879 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001366/0.03879, allocations: 52.48 kB / 386.3 MB, free: 8.828 MB / 362.7 MB Notification: Performance of SimCode: time 9.01e-07/0.03879, allocations: 4 kB / 386.3 MB, free: 8.824 MB / 362.7 MB Notification: Performance of Templates: time 0.008763/0.04755, allocations: 4.812 MB / 391.1 MB, free: 4.039 MB / 362.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.0065960283391178]