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.001038/0.001038, allocations: 77.09 kB / 20.66 MB, free: 3.844 MB / 18.57 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.001265/0.001265, allocations: 169 kB / 24.06 MB, free: 456 kB / 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.9885/0.9885, allocations: 177.1 MB / 204.5 MB, free: 5.504 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.1315/0.1315, allocations: 21.8 MB / 282.8 MB, free: 7.035 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_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.803e-06/1.803e-06, allocations: 0 / 360.1 MB, free: 3.586 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.143e-05/2.323e-05, allocations: 2.312 kB / 360.1 MB, free: 3.582 MB / 282.7 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.003211/0.003235, allocations: 3.149 MB / 363.2 MB, free: 428 kB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001559/0.004794, allocations: 0.7634 MB / 364 MB, free: 15.65 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004297/0.005223, allocations: 23.88 kB / 364 MB, free: 15.63 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003618/0.005585, allocations: 178.3 kB / 364.2 MB, free: 15.45 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002992/0.005884, allocations: 142.8 kB / 364.3 MB, free: 15.31 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006872/0.006571, allocations: 379.4 kB / 364.7 MB, free: 14.94 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007639/0.007335, allocations: 0.86 MB / 365.5 MB, free: 14.08 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005386/0.007874, allocations: 472.2 kB / 366 MB, free: 13.58 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005101/0.008384, allocations: 0.4949 MB / 366.5 MB, free: 13.08 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000396/0.00878, allocations: 310.7 kB / 366.8 MB, free: 12.78 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001074/0.008887, allocations: 88 kB / 366.9 MB, free: 12.69 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001669/0.009054, allocations: 116 kB / 367 MB, free: 12.58 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002678/0.009322, allocations: 458.3 kB / 367.4 MB, free: 12.13 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001957/0.009518, allocations: 330.6 kB / 367.8 MB, free: 11.8 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008243/0.01034, allocations: 0.9252 MB / 368.7 MB, free: 10.88 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.01035, allocations: 7.938 kB / 368.7 MB, free: 10.87 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.01035, allocations: 0 / 368.7 MB, free: 10.87 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.698e-05/0.01037, allocations: 0 / 368.7 MB, free: 10.87 MB / 298.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.00175/0.01212, allocations: 1.91 MB / 370.6 MB, free: 8.902 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.432e-05/0.01216, allocations: 12.03 kB / 370.6 MB, free: 8.891 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002326/0.01239, allocations: 303.5 kB / 370.9 MB, free: 8.594 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006682/0.01306, allocations: 0.7216 MB / 371.6 MB, free: 7.836 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.754e-05/0.01314, allocations: 78.47 kB / 371.7 MB, free: 7.758 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001246/0.01326, allocations: 104.3 kB / 371.8 MB, free: 7.656 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006976/0.01396, allocations: 0.7285 MB / 372.5 MB, free: 6.844 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.782e-05/0.01398, allocations: 192 / 372.5 MB, free: 6.844 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.293e-05/0.01402, allocations: 44.38 kB / 372.6 MB, free: 6.801 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.483e-05/0.01403, allocations: 24.38 kB / 372.6 MB, free: 6.777 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003383/0.01437, allocations: 301.6 kB / 372.9 MB, free: 6.469 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002473/0.01685, allocations: 3.113 MB / 376 MB, free: 3.258 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004607/0.01731, allocations: 357.1 kB / 376.4 MB, free: 2.902 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001236/0.01743, allocations: 113.6 kB / 376.5 MB, free: 2.789 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.896e-05/0.01749, allocations: 32.58 kB / 376.5 MB, free: 2.758 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002324/0.01772, allocations: 210 kB / 376.7 MB, free: 2.535 MB / 298.7 MB Notification: Performance of pre-optimization done (n=72): time 2.104e-06/0.01772, allocations: 0 / 376.7 MB, free: 2.535 MB / 298.7 MB Notification: Performance of matching and sorting (n=72): time 0.0005987/0.01832, allocations: 0.5516 MB / 377.3 MB, free: 1.98 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.897e-05/0.01836, allocations: 60.06 kB / 377.3 MB, free: 1.906 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007297/0.01909, allocations: 1.169 MB / 378.5 MB, free: 0.7109 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.12e-05/0.01912, allocations: 37.7 kB / 378.5 MB, free: 0.668 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004679/0.01959, allocations: 0.8586 MB / 379.4 MB, free: 15.8 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001369/0.01973, allocations: 257.8 kB / 379.6 MB, free: 15.54 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001182/0.01984, allocations: 128.3 kB / 379.8 MB, free: 15.41 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001164/0.01996, allocations: 0.5004 MB / 380.3 MB, free: 14.9 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.852e-05/0.02006, allocations: 77.92 kB / 380.3 MB, free: 14.82 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001742/0.02023, allocations: 238.4 kB / 380.6 MB, free: 14.54 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003373/0.02057, allocations: 364.7 kB / 380.9 MB, free: 14.13 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.02058, allocations: 0 / 380.9 MB, free: 14.13 MB / 314.7 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.0005012/0.02108, allocations: 0.539 MB / 381.5 MB, free: 13.58 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.04e-05/0.0211, allocations: 8.969 kB / 381.5 MB, free: 13.57 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.0211, allocations: 7.984 kB / 381.5 MB, free: 13.57 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.363e-05/0.02112, allocations: 8 kB / 381.5 MB, free: 13.56 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002824/0.0214, allocations: 135.8 kB / 381.6 MB, free: 13.43 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.057e-06/0.02141, allocations: 11.94 kB / 381.6 MB, free: 13.41 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001416/0.02155, allocations: 55.56 kB / 381.7 MB, free: 13.36 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.38e-05/0.02157, allocations: 23.98 kB / 381.7 MB, free: 13.34 MB / 314.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.0002381/0.02181, allocations: 204.5 kB / 381.9 MB, free: 13.12 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001063/0.02192, allocations: 171 kB / 382.1 MB, free: 12.96 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005468/0.02247, allocations: 0.5237 MB / 382.6 MB, free: 12.42 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.354e-06/0.02247, allocations: 11.98 kB / 382.6 MB, free: 12.41 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.014e-06/0.02248, allocations: 0 / 382.6 MB, free: 12.41 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/0.02248, allocations: 0 / 382.6 MB, free: 12.41 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00104/0.02352, allocations: 1.108 MB / 383.7 MB, free: 11.26 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.02352, allocations: 4 kB / 383.7 MB, free: 11.26 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002656/0.02379, allocations: 119.8 kB / 383.9 MB, free: 11.14 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.968e-06/0.02379, allocations: 4 kB / 383.9 MB, free: 11.14 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.187e-05/0.02382, allocations: 12 kB / 383.9 MB, free: 11.12 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.02382, allocations: 4 kB / 383.9 MB, free: 11.12 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.02382, allocations: 4 kB / 383.9 MB, free: 11.12 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006268/0.02445, allocations: 0.7561 MB / 384.6 MB, free: 10.34 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001671/0.02461, allocations: 178.8 kB / 384.8 MB, free: 10.16 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.915e-05/0.02466, allocations: 16 kB / 384.8 MB, free: 10.14 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001139/0.02478, allocations: 12 kB / 384.8 MB, free: 10.13 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.202e-05/0.02483, allocations: 44.56 kB / 384.9 MB, free: 10.09 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2e-05/0.02485, allocations: 16 kB / 384.9 MB, free: 10.07 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004062/0.02525, allocations: 0.646 MB / 385.5 MB, free: 9.43 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.02525, allocations: 0 / 385.5 MB, free: 9.43 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003932/0.02565, allocations: 219.2 kB / 385.8 MB, free: 9.215 MB / 314.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.0001478/0.02579, allocations: 129.7 kB / 385.9 MB, free: 9.082 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003509/0.02615, allocations: 323 kB / 386.2 MB, free: 8.762 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.02615, allocations: 0 / 386.2 MB, free: 8.762 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001629/0.02631, allocations: 180.6 kB / 386.4 MB, free: 8.586 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000393/0.0267, allocations: 95.48 kB / 386.5 MB, free: 8.5 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002218/0.02892, allocations: 2.272 MB / 388.7 MB, free: 6.176 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002267/0.02915, allocations: 337.1 kB / 389.1 MB, free: 5.828 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001588/0.02931, allocations: 72.59 kB / 389.1 MB, free: 5.754 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001528/0.02946, allocations: 146.2 kB / 389.3 MB, free: 5.609 MB / 314.7 MB Notification: Performance of SimCode: time 9.92e-07/0.02946, allocations: 0 / 389.3 MB, free: 5.609 MB / 314.7 MB Notification: Performance of Templates: time 0.01004/0.0395, allocations: 5.103 MB / 394.4 MB, free: 0.5469 MB / 314.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: 3.0447972351685166]