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.001175/0.001175, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001894/0.003069, allocations: 440 kB / 10.41 MB, free: 284 kB / 10.45 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.001118/0.001118, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001601/0.00272, allocations: 475.6 kB / 11.79 MB, free: 2.375 MB / 13.93 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.8757/0.8757, allocations: 177.2 MB / 189.7 MB, free: 5.234 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07739/0.953, allocations: 53.67 MB / 243.4 MB, free: 15.5 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1085/0.1085, allocations: 21.8 MB / 265.9 MB, free: 8.898 MB / 266.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.011/0.1195, allocations: 7.851 MB / 273.8 MB, free: 1.027 MB / 266.7 MB " [Timeout remaining time 180] Using package SystemDynamics with version 2.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-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: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 0 / 275.1 MB, free: 1.41 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.308e-06/1.084e-05, allocations: 2.312 kB / 275.1 MB, free: 1.406 MB / 266.7 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.006659/0.00667, allocations: 3.219 MB / 278.4 MB, free: 15.78 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001954/0.008624, allocations: 0.841 MB / 279.2 MB, free: 15.19 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003413/0.01204, allocations: 21.44 kB / 279.2 MB, free: 15.18 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003589/0.0124, allocations: 175.7 kB / 279.4 MB, free: 15.07 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003363/0.01273, allocations: 139.6 kB / 279.5 MB, free: 14.99 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006937/0.01343, allocations: 374.4 kB / 279.9 MB, free: 14.79 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008208/0.01425, allocations: 0.8342 MB / 280.7 MB, free: 14.39 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003639/0.01789, allocations: 493.9 kB / 281.2 MB, free: 14.07 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006044/0.01849, allocations: 0.599 MB / 281.8 MB, free: 13.78 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003252/0.01881, allocations: 304 kB / 282.1 MB, free: 13.66 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000115/0.01893, allocations: 86.06 kB / 282.2 MB, free: 13.66 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002057/0.01914, allocations: 115.2 kB / 282.3 MB, free: 13.66 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003017/0.01944, allocations: 407.1 kB / 282.7 MB, free: 13.52 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002278/0.01967, allocations: 271.5 kB / 283 MB, free: 13.45 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008354/0.0205, allocations: 0.8457 MB / 283.8 MB, free: 13.08 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.002e-05/0.02051, allocations: 0 / 283.8 MB, free: 13.08 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.02051, allocations: 0.6562 kB / 283.8 MB, free: 13.08 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.873e-05/0.02053, allocations: 1.094 kB / 283.8 MB, free: 13.08 MB / 282.7 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.004809/0.02534, allocations: 2.023 MB / 285.8 MB, free: 11.86 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.989e-05/0.02537, allocations: 8.844 kB / 285.8 MB, free: 11.86 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002395/0.02561, allocations: 199.9 kB / 286 MB, free: 11.82 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006201/0.02623, allocations: 0.6389 MB / 286.7 MB, free: 11.36 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.597e-05/0.02628, allocations: 78.27 kB / 286.8 MB, free: 11.32 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.99e-05/0.02635, allocations: 106.2 kB / 286.9 MB, free: 11.29 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006649/0.02702, allocations: 0.7144 MB / 287.6 MB, free: 10.95 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.742e-05/0.02704, allocations: 5.625 kB / 287.6 MB, free: 10.95 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.002e-05/0.02708, allocations: 46.56 kB / 287.6 MB, free: 10.91 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.733e-05/0.02709, allocations: 29.5 kB / 287.7 MB, free: 10.91 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002995/0.02739, allocations: 260.9 kB / 287.9 MB, free: 10.86 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001951/0.02934, allocations: 2.261 MB / 290.2 MB, free: 9.301 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003836/0.02973, allocations: 361 kB / 290.5 MB, free: 9.125 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.731e-05/0.02983, allocations: 96.47 kB / 290.6 MB, free: 9.094 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.918e-05/0.02988, allocations: 29.02 kB / 290.6 MB, free: 9.086 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000204/0.03009, allocations: 205.1 kB / 290.8 MB, free: 8.941 MB / 282.7 MB Notification: Performance of pre-optimization done (n=72): time 2.184e-06/0.03009, allocations: 0 / 290.8 MB, free: 8.941 MB / 282.7 MB Notification: Performance of matching and sorting (n=72): time 0.0004155/0.03051, allocations: 390.7 kB / 291.2 MB, free: 8.82 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.244e-05/0.03054, allocations: 59.94 kB / 291.3 MB, free: 8.758 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006137/0.03115, allocations: 0.9817 MB / 292.3 MB, free: 8.203 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.829e-05/0.03118, allocations: 45.95 kB / 292.3 MB, free: 8.156 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002339/0.03141, allocations: 0.5048 MB / 292.8 MB, free: 7.73 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001215/0.03154, allocations: 257.8 kB / 293.1 MB, free: 7.477 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.972e-05/0.03164, allocations: 122.6 kB / 293.2 MB, free: 7.352 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.382e-05/0.03171, allocations: 341.8 kB / 293.5 MB, free: 7.012 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.015e-05/0.03179, allocations: 64.8 kB / 293.6 MB, free: 6.945 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001277/0.03192, allocations: 187 kB / 293.8 MB, free: 6.719 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002615/0.03218, allocations: 330.7 kB / 294.1 MB, free: 6.359 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.03218, allocations: 0 / 294.1 MB, free: 6.359 MB / 282.7 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.0003422/0.03252, allocations: 396 kB / 294.5 MB, free: 5.969 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/0.03254, allocations: 15.92 kB / 294.5 MB, free: 5.953 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.538e-06/0.03254, allocations: 0 / 294.5 MB, free: 5.953 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/0.03256, allocations: 8 kB / 294.5 MB, free: 5.945 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00027/0.03283, allocations: 151.8 kB / 294.7 MB, free: 5.797 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.414e-06/0.03283, allocations: 10.89 kB / 294.7 MB, free: 5.789 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000119/0.03295, allocations: 51.62 kB / 294.7 MB, free: 5.738 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.858e-05/0.03297, allocations: 16 kB / 294.7 MB, free: 5.723 MB / 282.7 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,Population.Integrator1.local_reset,Natural_Resources.Integrator1.local_reset,Capital_Investment.Integrator1.local_reset,Pollution.Integrator1.local_reset,CIAF.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.0001937/0.03317, allocations: 169.4 kB / 294.9 MB, free: 5.547 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.681e-05/0.03324, allocations: 103.8 kB / 295 MB, free: 5.445 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004021/0.03364, allocations: 426.6 kB / 295.4 MB, free: 5.02 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.18e-06/0.03365, allocations: 8 kB / 295.4 MB, free: 5.012 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.834e-06/0.03365, allocations: 2.859 kB / 295.4 MB, free: 5.012 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.032e-06/0.03366, allocations: 3.984 kB / 295.4 MB, free: 5.008 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000762/0.03442, allocations: 0.9312 MB / 296.4 MB, free: 4.047 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/0.03442, allocations: 4 kB / 296.4 MB, free: 4.043 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002429/0.03466, allocations: 135.8 kB / 296.5 MB, free: 3.91 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001283/0.03479, allocations: 154.7 kB / 296.6 MB, free: 3.758 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.0348, allocations: 4 kB / 296.6 MB, free: 3.754 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.012e-05/0.03482, allocations: 15.98 kB / 296.7 MB, free: 3.738 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.445e-06/0.03482, allocations: 0 / 296.7 MB, free: 3.738 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.03482, allocations: 0 / 296.7 MB, free: 3.738 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004468/0.03527, allocations: 0.5935 MB / 297.3 MB, free: 3.129 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.699e-05/0.03531, allocations: 12 kB / 297.3 MB, free: 3.117 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001036/0.03542, allocations: 8 kB / 297.3 MB, free: 3.109 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.998e-05/0.03547, allocations: 44.56 kB / 297.3 MB, free: 3.066 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.585e-05/0.03548, allocations: 20 kB / 297.3 MB, free: 3.047 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004271/0.03591, allocations: 0.5021 MB / 297.8 MB, free: 2.543 MB / 282.7 MB Notification: Performance of sort global known variables: time 9e-08/0.03591, allocations: 0 / 297.8 MB, free: 2.543 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002859/0.0362, allocations: 219.2 kB / 298.1 MB, free: 2.328 MB / 282.7 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.0001152/0.03631, allocations: 104.3 kB / 298.2 MB, free: 2.219 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002844/0.0366, allocations: 301.5 kB / 298.5 MB, free: 1.922 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.659e-05/0.03661, allocations: 24.38 kB / 298.5 MB, free: 1.898 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001778/0.03679, allocations: 207.1 kB / 298.7 MB, free: 1.695 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000398/0.03719, allocations: 296.1 kB / 299 MB, free: 1.375 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002364/0.03955, allocations: 2.408 MB / 301.4 MB, free: 14.92 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002049/0.03976, allocations: 345.2 kB / 301.7 MB, free: 14.56 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001386/0.0399, allocations: 72.41 kB / 301.8 MB, free: 14.49 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001388/0.04004, allocations: 119.4 kB / 301.9 MB, free: 14.37 MB / 298.7 MB Notification: Performance of SimCode: time 6.51e-07/0.04004, allocations: 0 / 301.9 MB, free: 14.37 MB / 298.7 MB Notification: Performance of Templates: time 0.008921/0.04896, allocations: 4.976 MB / 306.9 MB, free: 9.469 MB / 298.7 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=240 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.629473398439586]