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.001836/0.001836, allocations: 88.05 kB / 19.44 MB, free: 332 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.001988/0.001988, allocations: 165.7 kB / 22.76 MB, free: 1.656 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.551/1.551, allocations: 177.1 MB / 203.1 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 178] 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.1962/0.1962, allocations: 21.8 MB / 281.4 MB, free: 7.211 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 2.054e-06/2.054e-06, allocations: 0 / 358.1 MB, free: 5.387 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.979e-05/3.184e-05, allocations: 6.25 kB / 358.1 MB, free: 5.379 MB / 330.7 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_5): time 0.004721/0.004753, allocations: 2.818 MB / 360.9 MB, free: 2.551 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001351/0.006105, allocations: 0.5415 MB / 361.5 MB, free: 2.008 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002553/0.00636, allocations: 8 kB / 361.5 MB, free: 2 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003267/0.006686, allocations: 142.6 kB / 361.6 MB, free: 1.859 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003542/0.007041, allocations: 130.9 kB / 361.7 MB, free: 1.73 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000657/0.007698, allocations: 283.6 kB / 362 MB, free: 1.453 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008665/0.008564, allocations: 0.7394 MB / 362.7 MB, free: 0.7109 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005808/0.009145, allocations: 349.7 kB / 363.1 MB, free: 356 kB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005156/0.009661, allocations: 446.9 kB / 363.5 MB, free: 15.91 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003742/0.01003, allocations: 282.8 kB / 363.8 MB, free: 15.63 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002095/0.01024, allocations: 76 kB / 363.9 MB, free: 15.56 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000334/0.01058, allocations: 107.9 kB / 364 MB, free: 15.45 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005496/0.01113, allocations: 454.4 kB / 364.4 MB, free: 15.01 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003259/0.01145, allocations: 302.7 kB / 364.7 MB, free: 14.71 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001582/0.01304, allocations: 1.105 MB / 365.8 MB, free: 13.6 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.01304, allocations: 0 / 365.8 MB, free: 13.6 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.01304, allocations: 0 / 365.8 MB, free: 13.6 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.287e-05/0.01305, allocations: 0 / 365.8 MB, free: 13.6 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.002812/0.01587, allocations: 1.867 MB / 367.7 MB, free: 11.68 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.706e-05/0.0159, allocations: 8.031 kB / 367.7 MB, free: 11.67 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000375/0.01628, allocations: 275.6 kB / 368 MB, free: 11.4 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006594/0.01694, allocations: 0.5326 MB / 368.5 MB, free: 10.83 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001072/0.01705, allocations: 74.38 kB / 368.6 MB, free: 10.76 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001497/0.01719, allocations: 100.4 kB / 368.7 MB, free: 10.66 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001501/0.0187, allocations: 0.7036 MB / 369.4 MB, free: 9.941 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.201e-05/0.01873, allocations: 4.188 kB / 369.4 MB, free: 9.938 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.165e-05/0.0188, allocations: 40.38 kB / 369.4 MB, free: 9.898 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.352e-05/0.01889, allocations: 58.48 kB / 369.5 MB, free: 9.84 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001279/0.02017, allocations: 0.5549 MB / 370 MB, free: 9.277 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004336/0.02451, allocations: 2.279 MB / 372.3 MB, free: 6.938 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009096/0.02542, allocations: 413.1 kB / 372.7 MB, free: 6.52 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004197/0.02584, allocations: 189.6 kB / 372.9 MB, free: 6.332 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001014/0.02594, allocations: 36.62 kB / 372.9 MB, free: 6.297 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.045e-05/0.02598, allocations: 42.05 kB / 373 MB, free: 6.246 MB / 346.7 MB Notification: Performance of pre-optimization done (n=66): time 2.374e-06/0.02598, allocations: 0 / 373 MB, free: 6.246 MB / 346.7 MB Notification: Performance of matching and sorting (n=66): time 0.001638/0.02762, allocations: 0.7352 MB / 373.7 MB, free: 5.504 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.179e-05/0.0277, allocations: 64 kB / 373.8 MB, free: 5.43 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001834/0.02954, allocations: 1.29 MB / 375.1 MB, free: 4.109 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.752e-05/0.02958, allocations: 41.7 kB / 375.1 MB, free: 4.062 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001033/0.03062, allocations: 0.8925 MB / 376 MB, free: 3.156 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000262/0.03088, allocations: 250.1 kB / 376.2 MB, free: 2.91 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002288/0.03111, allocations: 148.2 kB / 376.4 MB, free: 2.758 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002889/0.0314, allocations: 0.516 MB / 376.9 MB, free: 2.234 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004105/0.03181, allocations: 157.9 kB / 377.1 MB, free: 2.078 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006348/0.03244, allocations: 430.7 kB / 377.5 MB, free: 1.555 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001721/0.03416, allocations: 0.8248 MB / 378.3 MB, free: 0.625 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.551e-06/0.03417, allocations: 0 / 378.3 MB, free: 0.625 MB / 346.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001466/0.03563, allocations: 0.7619 MB / 379.1 MB, free: 15.86 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.973e-05/0.03565, allocations: 4.625 kB / 379.1 MB, free: 15.85 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.324e-05/0.03567, allocations: 8 kB / 379.1 MB, free: 15.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.335e-05/0.03569, allocations: 8 kB / 379.1 MB, free: 15.84 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006033/0.03629, allocations: 175.7 kB / 379.3 MB, free: 15.66 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.226e-05/0.03632, allocations: 15.88 kB / 379.3 MB, free: 15.65 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003299/0.03665, allocations: 79.44 kB / 379.3 MB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.299e-05/0.03671, allocations: 32.28 kB / 379.4 MB, free: 15.54 MB / 362.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.0004301/0.03714, allocations: 250.4 kB / 379.6 MB, free: 15.29 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002047/0.03734, allocations: 163 kB / 379.8 MB, free: 15.12 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00138/0.03872, allocations: 0.648 MB / 380.4 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.193e-05/0.03874, allocations: 12 kB / 380.4 MB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.03874, allocations: 3.938 kB / 380.4 MB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.209e-05/0.03875, allocations: 7.922 kB / 380.5 MB, free: 14.44 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00255/0.0413, allocations: 1.56 MB / 382 MB, free: 12.83 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.04131, allocations: 0 / 382 MB, free: 12.83 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005298/0.04184, allocations: 115.9 kB / 382.1 MB, free: 12.71 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.764e-06/0.04184, allocations: 7.938 kB / 382.1 MB, free: 12.71 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.978e-05/0.04188, allocations: 16 kB / 382.2 MB, free: 12.69 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.081e-06/0.04189, allocations: 7.938 kB / 382.2 MB, free: 12.68 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.04189, allocations: 0 / 382.2 MB, free: 12.68 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001669/0.04356, allocations: 0.9627 MB / 383.1 MB, free: 11.7 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002161/0.04378, allocations: 130.9 kB / 383.3 MB, free: 11.57 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.934e-05/0.04386, allocations: 12 kB / 383.3 MB, free: 11.55 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002457/0.0441, allocations: 27.98 kB / 383.3 MB, free: 11.53 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001205/0.04422, allocations: 52.58 kB / 383.3 MB, free: 11.48 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.817e-05/0.04427, allocations: 23.98 kB / 383.4 MB, free: 11.45 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0009727/0.04524, allocations: 0.7108 MB / 384.1 MB, free: 10.74 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.04524, allocations: 4 kB / 384.1 MB, free: 10.74 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000652/0.04589, allocations: 215.2 kB / 384.3 MB, free: 10.53 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.0002176/0.04611, allocations: 115.1 kB / 384.4 MB, free: 10.41 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0011/0.04721, allocations: 0.5068 MB / 384.9 MB, free: 9.895 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.04722, allocations: 4 kB / 384.9 MB, free: 9.891 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005091/0.04773, allocations: 274 kB / 385.2 MB, free: 9.621 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004503/0.04818, allocations: 67.94 kB / 385.2 MB, free: 9.555 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003768/0.05194, allocations: 2.291 MB / 387.5 MB, free: 7.211 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008555/0.0528, allocations: 0.6811 MB / 388.2 MB, free: 6.5 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003711/0.05317, allocations: 112.3 kB / 388.3 MB, free: 6.391 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001584/0.05333, allocations: 60.42 kB / 388.4 MB, free: 6.332 MB / 362.7 MB Notification: Performance of SimCode: time 1.252e-06/0.05333, allocations: 0 / 388.4 MB, free: 6.332 MB / 362.7 MB Notification: Performance of Templates: time 0.01302/0.06635, allocations: 4.461 MB / 392.8 MB, free: 1.895 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: 4.87666359404102]