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.001289/0.001289, allocations: 92.22 kB / 19.65 MB, free: 276 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.001219/0.001219, allocations: 173 kB / 23.02 MB, free: 1.547 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 0.9108/0.9108, allocations: 177.1 MB / 203.4 MB, free: 5.629 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.1744/0.1744, allocations: 21.8 MB / 281.7 MB, free: 7.18 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.973e-06/1.973e-06, allocations: 0 / 358.8 MB, free: 5.023 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.74e-05/2.937e-05, allocations: 2.312 kB / 358.8 MB, free: 5.02 MB / 330.7 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.003877/0.003906, allocations: 3.219 MB / 362 MB, free: 1.785 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.002181/0.006087, allocations: 0.7673 MB / 362.8 MB, free: 1.016 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007744/0.006862, allocations: 19.94 kB / 362.8 MB, free: 0.9961 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004447/0.007306, allocations: 178.3 kB / 363 MB, free: 0.8203 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003789/0.007685, allocations: 138.8 kB / 363.1 MB, free: 0.6836 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007875/0.008473, allocations: 379.4 kB / 363.5 MB, free: 320 kB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009044/0.009377, allocations: 0.86 MB / 364.4 MB, free: 15.45 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000581/0.009958, allocations: 472.2 kB / 364.8 MB, free: 14.95 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004344/0.01039, allocations: 0.4987 MB / 365.3 MB, free: 14.45 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002557/0.01065, allocations: 310.7 kB / 365.6 MB, free: 14.15 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 9.486e-05/0.01074, allocations: 84 kB / 365.7 MB, free: 14.07 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000165/0.01091, allocations: 124 kB / 365.8 MB, free: 13.95 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002707/0.01118, allocations: 454.3 kB / 366.3 MB, free: 13.5 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001932/0.01137, allocations: 334.6 kB / 366.6 MB, free: 13.17 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009009/0.01227, allocations: 0.9213 MB / 367.5 MB, free: 12.25 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.01228, allocations: 4 kB / 367.5 MB, free: 12.24 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.01228, allocations: 0 / 367.5 MB, free: 12.24 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.632e-05/0.0123, allocations: 0 / 367.5 MB, free: 12.24 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.00169/0.01399, allocations: 1.899 MB / 369.4 MB, free: 10.29 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.884e-05/0.01403, allocations: 15.91 kB / 369.4 MB, free: 10.27 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002447/0.01428, allocations: 291.6 kB / 369.7 MB, free: 9.988 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006588/0.01494, allocations: 0.7332 MB / 370.5 MB, free: 9.219 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.763e-05/0.01499, allocations: 82.47 kB / 370.5 MB, free: 9.137 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.243e-05/0.01508, allocations: 100.4 kB / 370.6 MB, free: 9.039 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008135/0.01589, allocations: 0.7794 MB / 371.4 MB, free: 8.176 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.864e-05/0.01591, allocations: 8.125 kB / 371.4 MB, free: 8.168 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.3e-05/0.01595, allocations: 44.36 kB / 371.5 MB, free: 8.125 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.053e-05/0.01597, allocations: 28.38 kB / 371.5 MB, free: 8.098 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000501/0.01647, allocations: 371.6 kB / 371.9 MB, free: 7.723 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00292/0.01939, allocations: 3.344 MB / 375.2 MB, free: 4.27 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000614/0.02001, allocations: 392.9 kB / 375.6 MB, free: 3.879 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001623/0.02017, allocations: 133.6 kB / 375.7 MB, free: 3.746 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.068e-05/0.02024, allocations: 32.58 kB / 375.8 MB, free: 3.715 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002664/0.02051, allocations: 222.1 kB / 376 MB, free: 3.48 MB / 346.7 MB Notification: Performance of pre-optimization done (n=72): time 2.515e-06/0.02051, allocations: 4 kB / 376 MB, free: 3.477 MB / 346.7 MB Notification: Performance of matching and sorting (n=72): time 0.0007258/0.02123, allocations: 0.618 MB / 376.6 MB, free: 2.855 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.92e-05/0.02127, allocations: 60.06 kB / 376.7 MB, free: 2.781 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000832/0.0221, allocations: 1.182 MB / 377.8 MB, free: 1.574 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.623e-05/0.02214, allocations: 41.7 kB / 377.9 MB, free: 1.527 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004376/0.02258, allocations: 0.8435 MB / 378.7 MB, free: 0.6719 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001209/0.0227, allocations: 253.8 kB / 379 MB, free: 432 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001146/0.02281, allocations: 124.3 kB / 379.1 MB, free: 300 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001231/0.02294, allocations: 0.5004 MB / 379.6 MB, free: 15.79 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001544/0.02309, allocations: 105.9 kB / 379.7 MB, free: 15.68 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002109/0.0233, allocations: 262.4 kB / 379.9 MB, free: 15.38 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004209/0.02372, allocations: 412.8 kB / 380.4 MB, free: 14.92 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.02373, allocations: 0 / 380.4 MB, free: 14.92 MB / 362.7 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.0005873/0.02431, allocations: 0.582 MB / 380.9 MB, free: 14.33 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.822e-05/0.02433, allocations: 8 kB / 380.9 MB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.525e-06/0.02434, allocations: 4.344 kB / 380.9 MB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.612e-05/0.02436, allocations: 8 kB / 381 MB, free: 14.31 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002693/0.02463, allocations: 139.8 kB / 381.1 MB, free: 14.17 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.437e-06/0.02464, allocations: 7.984 kB / 381.1 MB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001304/0.02477, allocations: 51.62 kB / 381.1 MB, free: 14.11 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.596e-05/0.02479, allocations: 32 kB / 381.2 MB, free: 14.08 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.0002233/0.02502, allocations: 196.4 kB / 381.4 MB, free: 13.88 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001005/0.02512, allocations: 178.9 kB / 381.5 MB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006198/0.02574, allocations: 0.5667 MB / 382.1 MB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.02574, allocations: 8 kB / 382.1 MB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.02575, allocations: 0 / 382.1 MB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.02575, allocations: 3.984 kB / 382.1 MB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001183/0.02693, allocations: 1.37 MB / 383.5 MB, free: 11.7 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.02694, allocations: 0 / 383.5 MB, free: 11.7 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002532/0.02719, allocations: 111.9 kB / 383.6 MB, free: 11.59 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.699e-06/0.02719, allocations: 4 kB / 383.6 MB, free: 11.58 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.586e-05/0.02722, allocations: 12 kB / 383.6 MB, free: 11.57 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.72e-06/0.02723, allocations: 7.984 kB / 383.6 MB, free: 11.56 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.02723, allocations: 7.938 kB / 383.6 MB, free: 11.55 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007423/0.02797, allocations: 0.8148 MB / 384.4 MB, free: 10.71 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00016/0.02813, allocations: 178.8 kB / 384.6 MB, free: 10.54 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.288e-05/0.02818, allocations: 16 kB / 384.6 MB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001064/0.02829, allocations: 12 kB / 384.7 MB, free: 10.51 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.272e-05/0.02835, allocations: 44.56 kB / 384.7 MB, free: 10.47 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.149e-05/0.02837, allocations: 20 kB / 384.7 MB, free: 10.45 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005552/0.02893, allocations: 0.6892 MB / 385.4 MB, free: 9.762 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02893, allocations: 0 / 385.4 MB, free: 9.762 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004129/0.02934, allocations: 219.2 kB / 385.6 MB, free: 9.547 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.0001737/0.02952, allocations: 131 kB / 385.7 MB, free: 9.406 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004419/0.02996, allocations: 363 kB / 386.1 MB, free: 9.047 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.02996, allocations: 0 / 386.1 MB, free: 9.047 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001932/0.03015, allocations: 200.6 kB / 386.3 MB, free: 8.852 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003785/0.03053, allocations: 100.2 kB / 386.4 MB, free: 8.754 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002724/0.03326, allocations: 2.296 MB / 388.7 MB, free: 6.406 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002372/0.03349, allocations: 329.2 kB / 389 MB, free: 6.066 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001653/0.03366, allocations: 76.59 kB / 389.1 MB, free: 5.992 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.87e-05/0.03375, allocations: 44.48 kB / 389.1 MB, free: 5.945 MB / 362.7 MB Notification: Performance of SimCode: time 1.342e-06/0.03375, allocations: 0 / 389.1 MB, free: 5.945 MB / 362.7 MB Notification: Performance of Templates: time 0.009658/0.04341, allocations: 4.801 MB / 393.9 MB, free: 1.184 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.0696473359130323]