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.001322/0.001322, allocations: 79.34 kB / 19.76 MB, free: 2.031 MB / 14.72 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.001354/0.001354, allocations: 156.2 kB / 23.01 MB, free: 4.941 MB / 14.72 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.344/1.344, allocations: 177.2 MB / 203.4 MB, free: 8.961 MB / 190.1 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.179/0.179, allocations: 21.8 MB / 281.6 MB, free: 10.79 MB / 270.1 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: SystemDynamics requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002038/0.002038, allocations: 71.83 kB / 418.8 MB, free: 14.66 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.1077, allocations: 60.75 MB / 479.5 MB, free: 1.785 MB / 446.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_5): time 0.2077/0.3154, allocations: 2.761 MB / 482.3 MB, free: 42.86 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001068/0.3165, allocations: 0.5215 MB / 482.8 MB, free: 42.69 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002313/0.3167, allocations: 9.469 kB / 482.8 MB, free: 42.69 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002366/0.317, allocations: 151.3 kB / 483 MB, free: 42.61 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002451/0.3172, allocations: 128.4 kB / 483.1 MB, free: 42.54 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000478/0.3177, allocations: 285.2 kB / 483.4 MB, free: 42.53 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004601/0.3181, allocations: 0.7188 MB / 484.1 MB, free: 42.46 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003895/0.3185, allocations: 350 kB / 484.4 MB, free: 42.38 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001781/0.3187, allocations: 320.4 kB / 484.7 MB, free: 42.26 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00021/0.3189, allocations: 355.2 kB / 485.1 MB, free: 42.07 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001045/0.319, allocations: 75.62 kB / 485.2 MB, free: 42.07 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001648/0.3192, allocations: 97.56 kB / 485.3 MB, free: 42.07 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002414/0.3194, allocations: 444.5 kB / 485.7 MB, free: 41.87 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002078/0.3196, allocations: 443.4 kB / 486.1 MB, free: 41.57 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006957/0.3203, allocations: 1.165 MB / 487.3 MB, free: 40.96 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.3203, allocations: 0 / 487.3 MB, free: 40.96 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.3203, allocations: 0 / 487.3 MB, free: 40.96 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.61e-05/0.3204, allocations: 3.938 kB / 487.3 MB, free: 40.96 MB / 446.1 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.001533/0.3219, allocations: 1.699 MB / 489 MB, free: 39.8 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.31e-05/0.3219, allocations: 9.719 kB / 489 MB, free: 39.8 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001545/0.3221, allocations: 196.7 kB / 489.2 MB, free: 39.69 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000323/0.3224, allocations: 0.5263 MB / 489.7 MB, free: 39.26 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.175e-05/0.3225, allocations: 76.56 kB / 489.8 MB, free: 39.22 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.833e-05/0.3225, allocations: 96.41 kB / 489.9 MB, free: 39.19 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001207/0.3237, allocations: 1.08 MB / 491 MB, free: 38.85 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.638e-05/0.3238, allocations: 192 / 491 MB, free: 38.85 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.723e-05/0.3238, allocations: 42.31 kB / 491 MB, free: 38.81 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.873e-05/0.3239, allocations: 58.5 kB / 491.1 MB, free: 38.81 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00126/0.3251, allocations: 1.214 MB / 492.3 MB, free: 38.53 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002784/0.3279, allocations: 2.46 MB / 494.7 MB, free: 37.5 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009955/0.3289, allocations: 0.9694 MB / 495.7 MB, free: 37.27 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004785/0.3294, allocations: 493 kB / 496.2 MB, free: 37.15 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.939e-05/0.3294, allocations: 26.78 kB / 496.2 MB, free: 37.15 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.624e-05/0.3295, allocations: 42.25 kB / 496.3 MB, free: 37.11 MB / 446.1 MB Notification: Performance of pre-optimization done (n=66): time 3.507e-06/0.3295, allocations: 0 / 496.3 MB, free: 37.11 MB / 446.1 MB Notification: Performance of matching and sorting (n=66): time 0.001689/0.3312, allocations: 1.601 MB / 497.9 MB, free: 36.68 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.535e-05/0.3312, allocations: 58.28 kB / 497.9 MB, free: 36.62 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009793/0.3322, allocations: 1.242 MB / 499.2 MB, free: 36.19 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.915e-05/0.3322, allocations: 36.77 kB / 499.2 MB, free: 36.15 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003443/0.3326, allocations: 0.7801 MB / 500 MB, free: 35.54 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001123/0.3327, allocations: 246.7 kB / 0.4885 GB, free: 35.34 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001236/0.3328, allocations: 127.8 kB / 0.4886 GB, free: 35.28 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.143e-05/0.3328, allocations: 333.9 kB / 0.4889 GB, free: 34.96 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004852/0.3333, allocations: 474.5 kB / 0.4894 GB, free: 34.87 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005644/0.3339, allocations: 0.663 MB / 0.49 GB, free: 34.54 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003256/0.3371, allocations: 2.117 MB / 0.4921 GB, free: 33.89 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.88e-06/0.3371, allocations: 3.031 kB / 0.4921 GB, free: 33.89 MB / 446.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001354/0.3385, allocations: 1.349 MB / 0.4934 GB, free: 33.49 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.656e-05/0.3385, allocations: 7.812 kB / 0.4934 GB, free: 33.49 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.3385, allocations: 7.344 kB / 0.4934 GB, free: 33.49 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.151e-05/0.3386, allocations: 13.53 kB / 0.4935 GB, free: 33.48 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004866/0.339, allocations: 184 kB / 0.4936 GB, free: 33.46 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.155e-05/0.339, allocations: 9.469 kB / 0.4936 GB, free: 33.46 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003043/0.3394, allocations: 80.73 kB / 0.4937 GB, free: 33.41 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.491e-05/0.3394, allocations: 34.8 kB / 0.4938 GB, free: 33.41 MB / 446.1 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.000488/0.3399, allocations: 389 kB / 0.4941 GB, free: 33.2 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001049/0.34, allocations: 144.3 kB / 0.4943 GB, free: 33.12 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00131/0.3413, allocations: 1.259 MB / 0.4955 GB, free: 32.76 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.3413, allocations: 9.375 kB / 0.4955 GB, free: 32.76 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.3413, allocations: 0 / 0.4955 GB, free: 32.76 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.102e-06/0.3413, allocations: 3.375 kB / 0.4955 GB, free: 32.76 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001964/0.3433, allocations: 2.155 MB / 0.4976 GB, free: 32.03 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.856e-06/0.3433, allocations: 3.938 kB / 0.4976 GB, free: 32.02 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000448/0.3437, allocations: 126.5 kB / 0.4977 GB, free: 32.02 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.27e-06/0.3437, allocations: 7.156 kB / 0.4977 GB, free: 32.01 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.893e-05/0.3438, allocations: 18.16 kB / 0.4978 GB, free: 32 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.3438, allocations: 7.938 kB / 0.4978 GB, free: 31.99 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.654e-06/0.3438, allocations: 3.031 kB / 0.4978 GB, free: 31.99 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002127/0.3459, allocations: 1.945 MB / 0.4997 GB, free: 31.38 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000139/0.346, allocations: 132.5 kB / 0.4998 GB, free: 31.29 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.853e-05/0.3461, allocations: 10.78 kB / 0.4998 GB, free: 31.28 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002449/0.3464, allocations: 26.45 kB / 0.4998 GB, free: 31.27 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.25e-05/0.3464, allocations: 49.66 kB / 0.4999 GB, free: 31.26 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.363e-05/0.3465, allocations: 20.84 kB / 0.4999 GB, free: 31.25 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0007989/0.3473, allocations: 0.8544 MB / 0.5007 GB, free: 30.96 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3473, allocations: 1.344 kB / 0.5007 GB, free: 30.96 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.000548/0.3478, allocations: 218.1 kB / 0.5009 GB, free: 30.88 MB / 446.1 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.0001357/0.3479, allocations: 115.2 kB / 0.501 GB, free: 30.77 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001361/0.3493, allocations: 1.062 MB / 0.5021 GB, free: 30.55 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.3493, allocations: 0 / 0.5021 GB, free: 30.55 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006102/0.3499, allocations: 0.5376 MB / 0.5026 GB, free: 30.43 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004235/0.3503, allocations: 58.16 kB / 0.5027 GB, free: 30.38 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003199/0.3535, allocations: 2.784 MB / 0.5054 GB, free: 29.11 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000618/0.3542, allocations: 0.7037 MB / 0.5061 GB, free: 28.94 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0003028/0.3545, allocations: 119.1 kB / 0.5062 GB, free: 28.92 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001247/0.3546, allocations: 52.02 kB / 0.5062 GB, free: 28.91 MB / 446.1 MB Notification: Performance of SimCode: time 6.12e-07/0.3546, allocations: 4 kB / 0.5062 GB, free: 28.9 MB / 446.1 MB Notification: Performance of Templates: time 0.01079/0.3654, allocations: 4.53 MB / 0.5107 GB, free: 28.2 MB / 446.1 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=480 -s ida -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.615508950082585] Failed to read output from testmodel.py, exit status != 0: 0.37286850600503385 0.38465270599999996 0.06188573000000001 Calling exit ...