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.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.001333/0.001333, allocations: 78.64 kB / 19.76 MB, free: 2.035 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.001409/0.001409, allocations: 159.3 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.353/1.353, allocations: 177.2 MB / 203.4 MB, free: 8.965 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.1754/0.1754, 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_6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6") [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.00208/0.00208, allocations: 63.84 kB / 418.8 MB, free: 14.68 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1076, allocations: 60.75 MB / 479.5 MB, free: 1.809 MB / 446.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.197/0.3046, allocations: 3.107 MB / 482.6 MB, free: 42.55 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001415/0.306, allocations: 0.7644 MB / 483.4 MB, free: 42.32 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000389/0.3064, allocations: 16.31 kB / 483.4 MB, free: 42.31 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004177/0.3069, allocations: 178 kB / 483.6 MB, free: 42.21 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002883/0.3071, allocations: 140.6 kB / 483.7 MB, free: 42.14 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007092/0.3078, allocations: 377.1 kB / 484.1 MB, free: 42.12 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006214/0.3085, allocations: 0.8546 MB / 485 MB, free: 42.02 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005133/0.309, allocations: 472.1 kB / 485.4 MB, free: 41.76 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000225/0.3092, allocations: 354.1 kB / 485.8 MB, free: 41.57 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000257/0.3095, allocations: 391.5 kB / 486.1 MB, free: 41.36 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001099/0.3096, allocations: 83.69 kB / 486.2 MB, free: 41.36 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001931/0.3098, allocations: 113.3 kB / 486.3 MB, free: 41.36 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000259/0.31, allocations: 462 kB / 486.8 MB, free: 41.14 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002362/0.3103, allocations: 475.1 kB / 487.2 MB, free: 40.81 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008735/0.3111, allocations: 1.288 MB / 488.5 MB, free: 40.15 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.3111, allocations: 7.812 kB / 488.5 MB, free: 40.14 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.3111, allocations: 2.625 kB / 488.5 MB, free: 40.14 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.557e-05/0.3112, allocations: 0 / 488.5 MB, free: 40.14 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: 265 * Number of variables: 265 Notification: Performance of Generate backend data structure: time 0.001611/0.3128, allocations: 1.783 MB / 490.3 MB, free: 38.92 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.396e-05/0.3128, allocations: 9.594 kB / 490.3 MB, free: 38.92 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001709/0.313, allocations: 210 kB / 490.5 MB, free: 38.81 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007078/0.3137, allocations: 0.7151 MB / 491.3 MB, free: 38.3 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.799e-05/0.3137, allocations: 78.84 kB / 491.3 MB, free: 38.27 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.736e-05/0.3138, allocations: 115.5 kB / 491.5 MB, free: 38.22 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001164/0.315, allocations: 1.17 MB / 492.6 MB, free: 37.74 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.335e-05/0.315, allocations: 192 / 492.6 MB, free: 37.74 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.064e-05/0.3151, allocations: 45.59 kB / 492.7 MB, free: 37.7 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.541e-05/0.3151, allocations: 25.66 kB / 492.7 MB, free: 37.7 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001054/0.3161, allocations: 1.109 MB / 493.8 MB, free: 37.43 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002845/0.319, allocations: 3.261 MB / 497.1 MB, free: 35.56 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001103/0.3201, allocations: 1.323 MB / 498.4 MB, free: 35.25 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003839/0.3205, allocations: 469.9 kB / 498.8 MB, free: 35.14 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.813e-05/0.3205, allocations: 27.02 kB / 498.9 MB, free: 35.13 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005163/0.321, allocations: 0.5563 MB / 499.4 MB, free: 34.95 MB / 446.1 MB Notification: Performance of pre-optimization done (n=72): time 2.504e-06/0.321, allocations: 0 / 499.4 MB, free: 34.95 MB / 446.1 MB Notification: Performance of matching and sorting (n=72): time 0.00142/0.3225, allocations: 1.576 MB / 0.4893 GB, free: 34.52 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.287e-05/0.3225, allocations: 61 kB / 0.4893 GB, free: 34.45 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009715/0.3235, allocations: 1.28 MB / 0.4906 GB, free: 34.01 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.058e-05/0.3235, allocations: 40.95 kB / 0.4906 GB, free: 33.96 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003589/0.3238, allocations: 0.7644 MB / 0.4914 GB, free: 33.37 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001141/0.324, allocations: 254.7 kB / 0.4916 GB, free: 33.16 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001225/0.3241, allocations: 120.2 kB / 0.4917 GB, free: 33.1 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.342e-05/0.3241, allocations: 342.5 kB / 0.492 GB, free: 32.78 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003836/0.3245, allocations: 442.4 kB / 0.4925 GB, free: 32.68 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004084/0.3249, allocations: 0.55 MB / 0.493 GB, free: 32.46 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009043/0.3258, allocations: 1.055 MB / 0.494 GB, free: 32.08 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.3258, allocations: 3.062 kB / 0.494 GB, free: 32.08 MB / 446.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001055/0.3269, allocations: 1.227 MB / 0.4952 GB, free: 31.69 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/0.3269, allocations: 6.656 kB / 0.4952 GB, free: 31.69 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.3269, allocations: 3.219 kB / 0.4952 GB, free: 31.69 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.801e-05/0.3269, allocations: 6.562 kB / 0.4952 GB, free: 31.69 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004169/0.3273, allocations: 135.8 kB / 0.4954 GB, free: 31.68 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.008e-05/0.3274, allocations: 9.312 kB / 0.4954 GB, free: 31.68 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002248/0.3276, allocations: 51.72 kB / 0.4954 GB, free: 31.64 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.514e-05/0.3276, allocations: 24.12 kB / 0.4955 GB, free: 31.63 MB / 446.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.0003853/0.328, allocations: 394.3 kB / 0.4958 GB, free: 31.41 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.564e-05/0.3281, allocations: 148 kB / 0.496 GB, free: 31.33 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001121/0.3292, allocations: 1.235 MB / 0.4972 GB, free: 30.96 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.591e-06/0.3292, allocations: 6.062 kB / 0.4972 GB, free: 30.96 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.3292, allocations: 0 / 0.4972 GB, free: 30.96 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.294e-06/0.3292, allocations: 6.328 kB / 0.4972 GB, free: 30.96 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001771/0.331, allocations: 2.192 MB / 0.4993 GB, free: 30.19 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.331, allocations: 3.062 kB / 0.4993 GB, free: 30.19 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004054/0.3314, allocations: 119.8 kB / 0.4994 GB, free: 30.17 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.3314, allocations: 1.938 kB / 0.4994 GB, free: 30.17 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.026e-05/0.3315, allocations: 21.59 kB / 0.4995 GB, free: 30.16 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.547e-06/0.3315, allocations: 3.188 kB / 0.4995 GB, free: 30.16 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.3315, allocations: 0 / 0.4995 GB, free: 30.16 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00175/0.3332, allocations: 1.934 MB / 0.5014 GB, free: 29.52 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002233/0.3334, allocations: 176.3 kB / 0.5015 GB, free: 29.41 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.276e-05/0.3335, allocations: 17.06 kB / 0.5015 GB, free: 29.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002201/0.3337, allocations: 14.91 kB / 0.5016 GB, free: 29.39 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.536e-05/0.3338, allocations: 41.89 kB / 0.5016 GB, free: 29.39 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.375e-05/0.3338, allocations: 25.58 kB / 0.5016 GB, free: 29.38 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0008319/0.3347, allocations: 0.8861 MB / 0.5025 GB, free: 29.07 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3347, allocations: 0 / 0.5025 GB, free: 29.07 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0005053/0.3352, allocations: 223 kB / 0.5027 GB, free: 28.98 MB / 446.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.0001373/0.3353, allocations: 110.9 kB / 0.5028 GB, free: 28.89 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001056/0.3364, allocations: 0.9911 MB / 0.5038 GB, free: 28.67 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.113e-06/0.3364, allocations: 5.062 kB / 0.5038 GB, free: 28.66 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004961/0.3369, allocations: 0.5148 MB / 0.5043 GB, free: 28.55 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005365/0.3374, allocations: 91.67 kB / 0.5044 GB, free: 28.49 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002963/0.3404, allocations: 2.831 MB / 0.5071 GB, free: 27.17 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006418/0.341, allocations: 0.7216 MB / 0.5078 GB, free: 27 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0002277/0.3412, allocations: 73.66 kB / 0.5079 GB, free: 26.99 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001109/0.3413, allocations: 51.38 kB / 0.508 GB, free: 26.98 MB / 446.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3413, allocations: 4 kB / 0.508 GB, free: 26.98 MB / 446.1 MB Notification: Performance of Templates: time 0.01067/0.352, allocations: 4.519 MB / 0.5124 GB, free: 26.22 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.makefile [Timeout 660] (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 -s ida -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.602625357918441] Failed to read output from testmodel.py, exit status != 0: 0.35985842207446694 0.369729581 0.056154082 Calling exit ...