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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(SystemDynamics.WorldDynamics.World2.Scenario_3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001577/0.001578, allocations: 110.4 kB / 15.99 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001679/0.001679, allocations: 194 kB / 16.91 MB, free: 6.191 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.304/1.304, allocations: 222.9 MB / 240.6 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1802/0.1802, allocations: 28.77 MB / 319.5 MB, free: 2.098 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001328/0.001328, allocations: 64.61 kB / 386.7 MB, free: 41.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1047, allocations: 56.43 MB / 443.1 MB, free: 4.16 MB / 318.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_3): time 0.00519/0.1099, allocations: 3.64 MB / 446.8 MB, free: 0.5 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001903/0.1119, allocations: 0.6623 MB / 447.4 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008223/0.1127, allocations: 19.94 kB / 447.5 MB, free: 15.82 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000654/0.1134, allocations: 123.1 kB / 447.6 MB, free: 15.7 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006467/0.1141, allocations: 95.48 kB / 447.7 MB, free: 15.6 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009217/0.115, allocations: 307.7 kB / 448 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001375/0.1164, allocations: 0.8563 MB / 448.8 MB, free: 14.44 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009951/0.1174, allocations: 0.6442 MB / 449.5 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000358/0.1178, allocations: 338.4 kB / 449.8 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003774/0.1182, allocations: 445.5 kB / 450.2 MB, free: 13 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001112/0.1183, allocations: 84 kB / 450.3 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001933/0.1185, allocations: 112 kB / 450.4 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003284/0.1188, allocations: 442.4 kB / 450.9 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003943/0.1192, allocations: 0.6125 MB / 451.5 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008913/0.1201, allocations: 0.8466 MB / 452.3 MB, free: 10.9 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.1202, allocations: 0 / 452.3 MB, free: 10.9 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.1202, allocations: 3.938 kB / 452.3 MB, free: 10.9 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.669e-05/0.1202, allocations: 0 / 452.3 MB, free: 10.9 MB / 334.1 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.002043/0.1222, allocations: 1.78 MB / 454.1 MB, free: 9.055 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.33e-05/0.1223, allocations: 8.031 kB / 454.1 MB, free: 9.047 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002076/0.1225, allocations: 194.5 kB / 454.3 MB, free: 8.855 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000786/0.1233, allocations: 0.7549 MB / 455.1 MB, free: 8.051 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.767e-05/0.1234, allocations: 82.45 kB / 455.1 MB, free: 7.969 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001089/0.1235, allocations: 100.4 kB / 455.2 MB, free: 7.871 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001594/0.1251, allocations: 1.17 MB / 456.4 MB, free: 6.637 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.322e-05/0.1251, allocations: 192 / 456.4 MB, free: 6.637 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.639e-05/0.1252, allocations: 43.94 kB / 456.5 MB, free: 6.594 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.134e-05/0.1252, allocations: 31.94 kB / 456.5 MB, free: 6.562 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001327/0.1266, allocations: 1.097 MB / 457.6 MB, free: 5.465 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004156/0.1307, allocations: 3.689 MB / 461.3 MB, free: 1.668 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001423/0.1322, allocations: 1.326 MB / 462.6 MB, free: 344 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005193/0.1327, allocations: 490.3 kB / 463.1 MB, free: 15.85 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.629e-05/0.1328, allocations: 32.77 kB / 463.1 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.69e-05/0.1328, allocations: 43.06 kB / 463.2 MB, free: 15.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=68): time 2.896e-06/0.1328, allocations: 0 / 463.2 MB, free: 15.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=68): time 0.001739/0.1346, allocations: 1.528 MB / 464.7 MB, free: 14.23 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.218e-05/0.1346, allocations: 59.97 kB / 464.7 MB, free: 14.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001298/0.136, allocations: 1.28 MB / 466 MB, free: 12.88 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.783e-05/0.136, allocations: 41.7 kB / 466.1 MB, free: 12.83 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005144/0.1365, allocations: 0.7676 MB / 466.8 MB, free: 12.05 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001659/0.1367, allocations: 236.5 kB / 467.1 MB, free: 11.82 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001475/0.1368, allocations: 114.7 kB / 467.2 MB, free: 11.7 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001157/0.137, allocations: 329.9 kB / 467.5 MB, free: 11.37 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005049/0.1375, allocations: 441.8 kB / 467.9 MB, free: 10.94 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005443/0.138, allocations: 0.5389 MB / 468.5 MB, free: 10.36 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001078/0.1391, allocations: 1.002 MB / 469.5 MB, free: 9.324 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.1391, allocations: 4 kB / 469.5 MB, free: 9.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001341/0.1405, allocations: 1.186 MB / 470.7 MB, free: 8.125 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.104e-05/0.1405, allocations: 8 kB / 470.7 MB, free: 8.117 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/0.1405, allocations: 4 kB / 470.7 MB, free: 8.113 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.116e-05/0.1406, allocations: 4.312 kB / 470.7 MB, free: 8.109 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004503/0.141, allocations: 135.8 kB / 470.8 MB, free: 7.977 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.19e-05/0.141, allocations: 4 kB / 470.8 MB, free: 7.973 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002669/0.1413, allocations: 55.38 kB / 470.9 MB, free: 7.918 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.583e-05/0.1414, allocations: 31.92 kB / 470.9 MB, free: 7.887 MB / 350.1 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 (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 (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.000467/0.1418, allocations: 383.8 kB / 471.3 MB, free: 7.504 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001359/0.142, allocations: 138.2 kB / 471.4 MB, free: 7.367 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001421/0.1434, allocations: 1.201 MB / 472.6 MB, free: 6.156 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.534e-06/0.1434, allocations: 15.88 kB / 472.6 MB, free: 6.141 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.1434, allocations: 0 / 472.6 MB, free: 6.141 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.415e-06/0.1434, allocations: 3.984 kB / 472.6 MB, free: 6.137 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00248/0.1459, allocations: 2.371 MB / 475 MB, free: 3.703 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.496e-06/0.1459, allocations: 4 kB / 475 MB, free: 3.699 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004471/0.1464, allocations: 111.8 kB / 475.1 MB, free: 3.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.145e-06/0.1464, allocations: 4 kB / 475.1 MB, free: 3.586 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.8e-05/0.1465, allocations: 16 kB / 475.1 MB, free: 3.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.651e-06/0.1465, allocations: 8 kB / 475.1 MB, free: 3.562 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.1465, allocations: 3.938 kB / 475.1 MB, free: 3.559 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001906/0.1484, allocations: 1.887 MB / 477 MB, free: 1.656 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001721/0.1486, allocations: 191.2 kB / 477.2 MB, free: 1.449 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.798e-05/0.1487, allocations: 16.06 kB / 477.2 MB, free: 1.434 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002167/0.1489, allocations: 15.98 kB / 477.2 MB, free: 1.418 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.504e-05/0.149, allocations: 44.39 kB / 477.3 MB, free: 1.375 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.928e-05/0.149, allocations: 19.98 kB / 477.3 MB, free: 1.355 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009797/0.15, allocations: 0.8926 MB / 478.2 MB, free: 476 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.15, allocations: 0 / 478.2 MB, free: 476 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005578/0.1506, allocations: 203 kB / 478.4 MB, free: 272 kB / 350.1 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.0001914/0.1508, allocations: 123.2 kB / 478.5 MB, free: 136 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001425/0.1522, allocations: 1.019 MB / 479.5 MB, free: 15.11 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.1522, allocations: 0 / 479.5 MB, free: 15.11 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005535/0.1528, allocations: 0.5113 MB / 480 MB, free: 14.6 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006871/0.1535, allocations: 89.14 kB / 480.1 MB, free: 14.52 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004001/0.1575, allocations: 3.458 MB / 483.6 MB, free: 11.02 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008142/0.1583, allocations: 1.303 MB / 484.9 MB, free: 9.688 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001806/0.1585, allocations: 59.42 kB / 485 MB, free: 9.629 MB / 366.1 MB Notification: Performance of SimCode: time 7.11e-07/0.1585, allocations: 0 / 485 MB, free: 9.629 MB / 366.1 MB Notification: Performance of Templates: time 0.01725/0.1758, allocations: 11.01 MB / 496 MB, free: 14.6 MB / 382.1 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.makefile (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=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe 2>&1)