Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.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.0009897/0.0009897, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001411/0.002401, 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.001054/0.001054, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001426/0.00248, 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.9322/0.9322, allocations: 177.2 MB / 189.7 MB, free: 5.234 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07783/1.01, allocations: 53.66 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.1093/0.1093, allocations: 21.8 MB / 265.9 MB, free: 8.898 MB / 266.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.01218/0.1215, allocations: 7.855 MB / 273.8 MB, free: 1.023 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_3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.573e-06/1.573e-06, allocations: 0 / 275.1 MB, free: 1.418 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 8.546e-06/1.012e-05, allocations: 5.812 kB / 275.1 MB, free: 1.414 MB / 266.7 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_3): time 0.002891/0.002901, allocations: 3.199 MB / 278.3 MB, free: 15.8 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001505/0.004406, allocations: 0.7371 MB / 279.1 MB, free: 15.27 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002905/0.004697, allocations: 22.78 kB / 279.1 MB, free: 15.26 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002871/0.004984, allocations: 174.7 kB / 279.3 MB, free: 15.16 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002307/0.005214, allocations: 132.4 kB / 279.4 MB, free: 15.08 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005102/0.005725, allocations: 362.6 kB / 279.7 MB, free: 14.88 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006959/0.006421, allocations: 0.8179 MB / 280.6 MB, free: 14.48 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005175/0.006938, allocations: 486.6 kB / 281 MB, free: 14.18 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005212/0.007459, allocations: 0.5854 MB / 281.6 MB, free: 13.89 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002748/0.007734, allocations: 296 kB / 281.9 MB, free: 13.76 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001142/0.007848, allocations: 89.84 kB / 282 MB, free: 13.76 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001924/0.008041, allocations: 115.1 kB / 282.1 MB, free: 13.75 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002632/0.008304, allocations: 391.8 kB / 282.5 MB, free: 13.63 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001862/0.00849, allocations: 267.9 kB / 282.8 MB, free: 13.56 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007383/0.009228, allocations: 0.834 MB / 283.6 MB, free: 13.19 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.808e-06/0.009238, allocations: 0 / 283.6 MB, free: 13.19 MB / 282.7 MB Notification: Performance of FrontEnd: time 8.81e-07/0.009239, allocations: 1.219 kB / 283.6 MB, free: 13.19 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.045e-05/0.00927, allocations: 0 / 283.6 MB, free: 13.19 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: 263 * Number of variables: 263 Notification: Performance of Generate backend data structure: time 0.001692/0.01096, allocations: 1.996 MB / 285.6 MB, free: 11.98 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.902e-05/0.01099, allocations: 10.55 kB / 285.6 MB, free: 11.98 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001973/0.01119, allocations: 206.7 kB / 285.8 MB, free: 11.94 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005283/0.01172, allocations: 0.6278 MB / 286.4 MB, free: 11.49 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.975e-05/0.01177, allocations: 76.92 kB / 286.5 MB, free: 11.45 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.17e-05/0.01185, allocations: 108.4 kB / 286.6 MB, free: 11.41 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006726/0.01252, allocations: 0.7035 MB / 287.3 MB, free: 11.08 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.696e-05/0.01254, allocations: 5.5 kB / 287.3 MB, free: 11.07 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.547e-05/0.01257, allocations: 44.62 kB / 287.4 MB, free: 11.04 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.595e-05/0.01259, allocations: 27.3 kB / 287.4 MB, free: 11.04 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002963/0.01288, allocations: 254.1 kB / 287.6 MB, free: 11.01 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002014/0.0149, allocations: 2.259 MB / 289.9 MB, free: 9.48 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003907/0.01529, allocations: 346.5 kB / 290.2 MB, free: 9.32 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.896e-05/0.01539, allocations: 93.66 kB / 290.3 MB, free: 9.285 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.626e-05/0.01545, allocations: 33.33 kB / 290.4 MB, free: 9.273 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.19e-05/0.01547, allocations: 44.12 kB / 290.4 MB, free: 9.227 MB / 282.7 MB Notification: Performance of pre-optimization done (n=68): time 1.543e-06/0.01547, allocations: 0 / 290.4 MB, free: 9.227 MB / 282.7 MB Notification: Performance of matching and sorting (n=68): time 0.0004025/0.01587, allocations: 366.1 kB / 290.8 MB, free: 9.109 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.941e-05/0.0159, allocations: 59.38 kB / 290.8 MB, free: 9.047 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006101/0.01651, allocations: 0.9846 MB / 291.8 MB, free: 8.484 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.446e-05/0.01654, allocations: 36.42 kB / 291.8 MB, free: 8.445 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002275/0.01676, allocations: 0.5033 MB / 292.3 MB, free: 8.031 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001117/0.01687, allocations: 244.5 kB / 292.6 MB, free: 7.816 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.251e-05/0.01697, allocations: 109.3 kB / 292.7 MB, free: 7.746 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.55e-05/0.01704, allocations: 331.9 kB / 293 MB, free: 7.422 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.814e-05/0.01713, allocations: 70.78 kB / 293.1 MB, free: 7.398 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000125/0.01726, allocations: 168.6 kB / 293.2 MB, free: 7.27 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002375/0.01749, allocations: 297.1 kB / 293.5 MB, free: 6.949 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.0175, allocations: 0 / 293.5 MB, free: 6.949 MB / 282.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.0003348/0.01783, allocations: 367.8 kB / 293.9 MB, free: 6.582 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/0.01785, allocations: 12.56 kB / 293.9 MB, free: 6.57 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.01785, allocations: 0 / 293.9 MB, free: 6.57 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.157e-05/0.01786, allocations: 8 kB / 293.9 MB, free: 6.562 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002574/0.01812, allocations: 151.8 kB / 294.1 MB, free: 6.414 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.103e-06/0.01813, allocations: 10.89 kB / 294.1 MB, free: 6.406 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001149/0.01824, allocations: 54.12 kB / 294.1 MB, free: 6.355 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.747e-05/0.01826, allocations: 12.31 kB / 294.1 MB, free: 6.344 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 5 (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 (83): * Single equations (assignments): 83 * 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.0001552/0.01841, allocations: 156.5 kB / 294.3 MB, free: 6.18 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.89e-05/0.01849, allocations: 103.8 kB / 294.4 MB, free: 6.078 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003979/0.01889, allocations: 418.3 kB / 294.8 MB, free: 5.66 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.85e-06/0.0189, allocations: 8 kB / 294.8 MB, free: 5.652 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.094e-06/0.0189, allocations: 2.578 kB / 294.8 MB, free: 5.652 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.743e-06/0.0189, allocations: 3.984 kB / 294.8 MB, free: 5.648 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007748/0.01968, allocations: 0.9 MB / 295.7 MB, free: 4.723 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.01968, allocations: 0 / 295.7 MB, free: 4.723 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002501/0.01993, allocations: 123.8 kB / 295.8 MB, free: 4.602 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.007e-05/0.02001, allocations: 142.8 kB / 296 MB, free: 4.461 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.02002, allocations: 4 kB / 296 MB, free: 4.457 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.095e-05/0.02004, allocations: 12 kB / 296 MB, free: 4.445 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.02004, allocations: 8 kB / 296 MB, free: 4.438 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.02004, allocations: 0 / 296 MB, free: 4.438 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004358/0.02048, allocations: 0.57 MB / 296.6 MB, free: 3.852 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.385e-05/0.02052, allocations: 12 kB / 296.6 MB, free: 3.84 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.791e-05/0.02062, allocations: 12 kB / 296.6 MB, free: 3.828 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.232e-05/0.02067, allocations: 44.56 kB / 296.6 MB, free: 3.785 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.369e-05/0.02068, allocations: 12 kB / 296.6 MB, free: 3.773 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003303/0.02101, allocations: 0.4978 MB / 297.1 MB, free: 3.273 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02101, allocations: 0 / 297.1 MB, free: 3.273 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002956/0.02131, allocations: 211.2 kB / 297.4 MB, free: 3.066 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (68): * Single equations (assignments): 68 * 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.000115/0.02143, allocations: 102.2 kB / 297.5 MB, free: 2.961 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002764/0.0217, allocations: 285.8 kB / 297.7 MB, free: 2.68 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-05/0.02172, allocations: 23.98 kB / 297.8 MB, free: 2.656 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001669/0.02189, allocations: 191.1 kB / 297.9 MB, free: 2.469 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004249/0.02231, allocations: 295.5 kB / 298.2 MB, free: 2.152 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002423/0.02474, allocations: 2.381 MB / 300.6 MB, free: 15.72 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002067/0.02494, allocations: 345 kB / 300.9 MB, free: 15.36 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001366/0.02508, allocations: 72.36 kB / 301 MB, free: 15.29 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001328/0.02521, allocations: 115.4 kB / 301.1 MB, free: 15.17 MB / 298.7 MB Notification: Performance of SimCode: time 8.22e-07/0.02521, allocations: 0 / 301.1 MB, free: 15.17 MB / 298.7 MB Notification: Performance of Templates: time 0.00888/0.03409, allocations: 4.798 MB / 305.9 MB, free: 10.45 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.makefile [Timeout 660] (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3 -abortSlowSimulation -alarm=240 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.6037704832851887]