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.001186/0.001186, allocations: 92.31 kB / 20.19 MB, free: 4.352 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.001123/0.001123, allocations: 169 kB / 23.49 MB, free: 1.047 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.147/1.147, allocations: 177.1 MB / 203.8 MB, free: 5.641 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.1703/0.1703, allocations: 21.79 MB / 282.1 MB, free: 7.266 MB / 266.7 MB " [Timeout remaining time 179] 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 4.168e-06/4.168e-06, allocations: 3.984 kB / 358.8 MB, free: 5.383 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.272e-05/3.689e-05, allocations: 6.312 kB / 358.8 MB, free: 5.375 MB / 330.7 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.003868/0.003904, allocations: 3.188 MB / 362 MB, free: 2.176 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001723/0.005627, allocations: 0.7634 MB / 362.8 MB, free: 1.41 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004358/0.006063, allocations: 23.88 kB / 362.8 MB, free: 1.387 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003933/0.006456, allocations: 178.3 kB / 363 MB, free: 1.211 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002971/0.006754, allocations: 138.7 kB / 363.1 MB, free: 1.074 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007592/0.007513, allocations: 379.4 kB / 363.5 MB, free: 0.7031 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007963/0.008309, allocations: 0.8639 MB / 364.4 MB, free: 15.84 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005871/0.008896, allocations: 468.2 kB / 364.8 MB, free: 15.34 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004019/0.009298, allocations: 0.4949 MB / 365.3 MB, free: 14.85 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002799/0.009578, allocations: 314.7 kB / 365.6 MB, free: 14.54 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001059/0.009684, allocations: 84 kB / 365.7 MB, free: 14.46 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001898/0.009874, allocations: 119.9 kB / 365.8 MB, free: 14.34 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002939/0.01017, allocations: 458.3 kB / 366.3 MB, free: 13.89 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002446/0.01041, allocations: 334.6 kB / 366.6 MB, free: 13.56 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008985/0.01131, allocations: 0.9213 MB / 367.5 MB, free: 12.64 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.01131, allocations: 4 kB / 367.5 MB, free: 12.63 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.01132, allocations: 0 / 367.5 MB, free: 12.63 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.968e-05/0.01134, allocations: 0 / 367.5 MB, free: 12.63 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: 265 * Number of variables: 265 Notification: Performance of Generate backend data structure: time 0.001785/0.01312, allocations: 1.899 MB / 369.4 MB, free: 10.68 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.296e-05/0.01317, allocations: 12.03 kB / 369.4 MB, free: 10.67 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002607/0.01343, allocations: 291.6 kB / 369.7 MB, free: 10.38 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006796/0.01411, allocations: 0.7331 MB / 370.4 MB, free: 9.613 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.131e-05/0.0142, allocations: 78.45 kB / 370.5 MB, free: 9.535 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.627e-05/0.01428, allocations: 104.4 kB / 370.6 MB, free: 9.434 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008368/0.01512, allocations: 0.7794 MB / 371.4 MB, free: 8.57 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.404e-05/0.01514, allocations: 4.125 kB / 371.4 MB, free: 8.566 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.994e-05/0.01519, allocations: 44.38 kB / 371.5 MB, free: 8.523 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.474e-05/0.01522, allocations: 24.38 kB / 371.5 MB, free: 8.5 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005133/0.01573, allocations: 375.6 kB / 371.8 MB, free: 8.121 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002839/0.01857, allocations: 3.347 MB / 375.2 MB, free: 4.664 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005915/0.01916, allocations: 401.1 kB / 375.6 MB, free: 4.266 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001717/0.01933, allocations: 133.6 kB / 375.7 MB, free: 4.133 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.278e-05/0.0194, allocations: 32.58 kB / 375.7 MB, free: 4.102 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002861/0.01969, allocations: 226.1 kB / 376 MB, free: 3.863 MB / 346.7 MB Notification: Performance of pre-optimization done (n=72): time 2.585e-06/0.01969, allocations: 0 / 376 MB, free: 3.863 MB / 346.7 MB Notification: Performance of matching and sorting (n=72): time 0.0008061/0.0205, allocations: 0.6141 MB / 376.6 MB, free: 3.246 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.662e-05/0.02056, allocations: 64.05 kB / 376.6 MB, free: 3.168 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008988/0.02145, allocations: 1.182 MB / 377.8 MB, free: 1.961 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.155e-05/0.02149, allocations: 37.7 kB / 377.9 MB, free: 1.918 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004744/0.02196, allocations: 0.8393 MB / 378.7 MB, free: 1.066 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001415/0.0221, allocations: 253.8 kB / 379 MB, free: 0.8164 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000129/0.02223, allocations: 128.3 kB / 379.1 MB, free: 0.6836 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001571/0.02239, allocations: 0.5004 MB / 379.6 MB, free: 180 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001501/0.02254, allocations: 97.94 kB / 379.7 MB, free: 80 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002462/0.02278, allocations: 258.6 kB / 379.9 MB, free: 15.77 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004572/0.02324, allocations: 412.7 kB / 380.3 MB, free: 15.31 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.798e-06/0.02325, allocations: 0 / 380.3 MB, free: 15.31 MB / 362.7 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.0006668/0.02391, allocations: 0.5859 MB / 380.9 MB, free: 14.72 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.781e-05/0.02394, allocations: 8 kB / 380.9 MB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.025e-05/0.02395, allocations: 4 kB / 380.9 MB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.596e-05/0.02398, allocations: 8.344 kB / 380.9 MB, free: 14.7 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003098/0.02429, allocations: 139.8 kB / 381.1 MB, free: 14.56 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.532e-05/0.0243, allocations: 11.94 kB / 381.1 MB, free: 14.55 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000142/0.02444, allocations: 51.62 kB / 381.1 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.933e-05/0.02447, allocations: 27.98 kB / 381.2 MB, free: 14.47 MB / 362.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,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.0002733/0.02475, allocations: 208.4 kB / 381.4 MB, free: 14.26 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000109/0.02486, allocations: 171 kB / 381.5 MB, free: 14.09 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006688/0.02552, allocations: 0.5706 MB / 382.1 MB, free: 13.51 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/0.02553, allocations: 4 kB / 382.1 MB, free: 13.5 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.211e-06/0.02554, allocations: 4 kB / 382.1 MB, free: 13.5 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.183e-06/0.02554, allocations: 3.984 kB / 382.1 MB, free: 13.5 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001294/0.02684, allocations: 1.366 MB / 383.5 MB, free: 12.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.529e-06/0.02684, allocations: 3.984 kB / 383.5 MB, free: 12.08 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002737/0.02712, allocations: 111.9 kB / 383.6 MB, free: 11.97 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.693e-06/0.02712, allocations: 4 kB / 383.6 MB, free: 11.97 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.79e-05/0.02715, allocations: 12 kB / 383.6 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.779e-06/0.02716, allocations: 8 kB / 383.6 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.02716, allocations: 0 / 383.6 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008196/0.02798, allocations: 0.8225 MB / 384.4 MB, free: 11.1 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001849/0.02816, allocations: 182.8 kB / 384.6 MB, free: 10.92 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.871e-05/0.02822, allocations: 12 kB / 384.6 MB, free: 10.91 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001142/0.02834, allocations: 8 kB / 384.6 MB, free: 10.9 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.393e-05/0.02841, allocations: 48.56 kB / 384.7 MB, free: 10.86 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.459e-05/0.02843, allocations: 16 kB / 384.7 MB, free: 10.84 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005684/0.029, allocations: 0.6931 MB / 385.4 MB, free: 10.15 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.029, allocations: 0 / 385.4 MB, free: 10.15 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004243/0.02943, allocations: 211.2 kB / 385.6 MB, free: 9.941 MB / 362.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.000209/0.02964, allocations: 131 kB / 385.7 MB, free: 9.801 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004752/0.03011, allocations: 367 kB / 386.1 MB, free: 9.438 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.03011, allocations: 0 / 386.1 MB, free: 9.438 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002131/0.03033, allocations: 200.6 kB / 386.3 MB, free: 9.242 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004056/0.03073, allocations: 93.2 kB / 386.4 MB, free: 9.148 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00241/0.03314, allocations: 2.296 MB / 388.7 MB, free: 6.801 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002211/0.03336, allocations: 333.2 kB / 389 MB, free: 6.457 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001429/0.03351, allocations: 76.59 kB / 389.1 MB, free: 6.383 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.064e-05/0.0336, allocations: 52.48 kB / 389.1 MB, free: 6.328 MB / 362.7 MB Notification: Performance of SimCode: time 1.303e-06/0.0336, allocations: 0 / 389.1 MB, free: 6.328 MB / 362.7 MB Notification: Performance of Templates: time 0.009625/0.04322, allocations: 4.561 MB / 393.7 MB, free: 1.801 MB / 362.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.848461316898465]