Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.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_4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001096/0.001096, allocations: 104.7 kB / 15.98 MB, free: 6.336 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.001451/0.001451, allocations: 193.1 kB / 16.91 MB, free: 6.188 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.266/1.266, 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.1907/0.1907, allocations: 28.78 MB / 319.5 MB, free: 2.16 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001105/0.001105, allocations: 62.92 kB / 386.7 MB, free: 41.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1087, allocations: 56.43 MB / 443.1 MB, free: 4.137 MB / 318.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_4): time 0.004688/0.1134, allocations: 3.659 MB / 446.8 MB, free: 468 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001704/0.1151, allocations: 0.6661 MB / 447.5 MB, free: 15.79 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004982/0.1156, allocations: 19.94 kB / 447.5 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004377/0.1161, allocations: 127 kB / 447.6 MB, free: 15.64 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003003/0.1164, allocations: 95.48 kB / 447.7 MB, free: 15.55 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006758/0.1171, allocations: 315.8 kB / 448 MB, free: 15.24 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007647/0.1179, allocations: 0.8641 MB / 448.9 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007885/0.1187, allocations: 0.6442 MB / 449.5 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002838/0.119, allocations: 334.4 kB / 449.9 MB, free: 13.37 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003453/0.1193, allocations: 457.4 kB / 450.3 MB, free: 12.92 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001084/0.1195, allocations: 84 kB / 450.4 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001894/0.1197, allocations: 116 kB / 450.5 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003429/0.12, allocations: 454.5 kB / 450.9 MB, free: 12.28 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004144/0.1204, allocations: 0.6396 MB / 451.6 MB, free: 11.63 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008419/0.1213, allocations: 0.8622 MB / 452.4 MB, free: 10.77 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.501e-06/0.1213, allocations: 0 / 452.4 MB, free: 10.77 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1213, allocations: 0 / 452.4 MB, free: 10.77 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.885e-05/0.1213, allocations: 0 / 452.4 MB, free: 10.77 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: 290 * Number of variables: 290 Notification: Performance of Generate backend data structure: time 0.002079/0.1234, allocations: 1.827 MB / 454.3 MB, free: 8.879 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.878e-05/0.1235, allocations: 12.03 kB / 454.3 MB, free: 8.867 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000222/0.1237, allocations: 206.3 kB / 454.5 MB, free: 8.664 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007438/0.1244, allocations: 0.7547 MB / 455.2 MB, free: 7.859 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.304e-05/0.1245, allocations: 78.48 kB / 455.3 MB, free: 7.781 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001179/0.1246, allocations: 108.3 kB / 455.4 MB, free: 7.676 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00167/0.1263, allocations: 1.278 MB / 456.7 MB, free: 6.328 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.603e-05/0.1264, allocations: 4.125 kB / 456.7 MB, free: 6.324 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.922e-05/0.1264, allocations: 51.94 kB / 456.7 MB, free: 6.273 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.51e-05/0.1265, allocations: 47.98 kB / 456.8 MB, free: 6.227 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001487/0.128, allocations: 1.226 MB / 458 MB, free: 4.992 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004513/0.1325, allocations: 3.917 MB / 461.9 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001548/0.1341, allocations: 1.369 MB / 463.3 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005577/0.1347, allocations: 495.2 kB / 463.8 MB, free: 15.08 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.369e-05/0.1348, allocations: 32.61 kB / 463.8 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.084e-05/0.1348, allocations: 43.06 kB / 463.9 MB, free: 15 MB / 350.1 MB Notification: Performance of pre-optimization done (n=70): time 3.226e-06/0.1348, allocations: 0 / 463.9 MB, free: 15 MB / 350.1 MB Notification: Performance of matching and sorting (n=70): time 0.001882/0.1367, allocations: 1.559 MB / 465.4 MB, free: 13.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.874e-05/0.1368, allocations: 81.67 kB / 465.5 MB, free: 13.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001427/0.1382, allocations: 1.374 MB / 466.9 MB, free: 11.95 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.658e-05/0.1383, allocations: 41.83 kB / 466.9 MB, free: 11.91 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005617/0.1388, allocations: 0.8371 MB / 467.8 MB, free: 11.06 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002077/0.139, allocations: 248.4 kB / 468 MB, free: 10.81 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002097/0.1393, allocations: 154.6 kB / 468.2 MB, free: 10.66 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001553/0.1394, allocations: 337.9 kB / 468.5 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005423/0.14, allocations: 477.7 kB / 468.9 MB, free: 9.852 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007072/0.1407, allocations: 0.716 MB / 469.7 MB, free: 9.023 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001287/0.142, allocations: 1.245 MB / 470.9 MB, free: 7.664 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.995e-06/0.142, allocations: 4 kB / 470.9 MB, free: 7.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.001637/0.1436, allocations: 1.39 MB / 472.3 MB, free: 6.262 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.522e-05/0.1437, allocations: 8 kB / 472.3 MB, free: 6.254 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.358e-05/0.1437, allocations: 8 kB / 472.3 MB, free: 6.246 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.389e-05/0.1437, allocations: 12 kB / 472.3 MB, free: 6.234 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005575/0.1443, allocations: 183.7 kB / 472.5 MB, free: 6.055 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.955e-05/0.1443, allocations: 15.94 kB / 472.5 MB, free: 6.039 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003536/0.1447, allocations: 91.05 kB / 472.6 MB, free: 5.949 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.87e-05/0.1447, allocations: 40 kB / 472.7 MB, free: 5.91 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * 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 (109): * Single equations (assignments): 109 * 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.000594/0.1453, allocations: 415.8 kB / 473.1 MB, free: 5.496 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001659/0.1455, allocations: 146.1 kB / 473.2 MB, free: 5.352 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001608/0.1471, allocations: 1.237 MB / 474.4 MB, free: 4.105 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.588e-06/0.1471, allocations: 8 kB / 474.4 MB, free: 4.098 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.1472, allocations: 4.031 kB / 474.4 MB, free: 4.094 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.137e-05/0.1472, allocations: 7.922 kB / 474.5 MB, free: 4.086 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002677/0.1499, allocations: 2.4 MB / 476.9 MB, free: 1.625 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.061e-06/0.1499, allocations: 0 / 476.9 MB, free: 1.625 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004534/0.1503, allocations: 123.8 kB / 477 MB, free: 1.504 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.332e-06/0.1504, allocations: 0 / 477 MB, free: 1.504 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.307e-05/0.1504, allocations: 23.92 kB / 477 MB, free: 1.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.302e-06/0.1504, allocations: 8 kB / 477 MB, free: 1.473 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.1504, allocations: 0 / 477 MB, free: 1.473 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002154/0.1526, allocations: 1.984 MB / 479 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001973/0.1528, allocations: 203.1 kB / 479.2 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.321e-05/0.1529, allocations: 20 kB / 479.2 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002632/0.1532, allocations: 19.98 kB / 479.2 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.391e-05/0.1533, allocations: 40.52 kB / 479.3 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.984e-05/0.1533, allocations: 23.98 kB / 479.3 MB, free: 15.15 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001054/0.1544, allocations: 0.9375 MB / 480.2 MB, free: 14.22 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.1544, allocations: 0 / 480.2 MB, free: 14.22 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007113/0.1551, allocations: 222.9 kB / 480.4 MB, free: 14 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (70): * Single equations (assignments): 70 * 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.0002508/0.1553, allocations: 129.8 kB / 480.6 MB, free: 13.86 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00161/0.157, allocations: 1.111 MB / 481.7 MB, free: 12.75 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/0.157, allocations: 7.938 kB / 481.7 MB, free: 12.75 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006022/0.1576, allocations: 0.5185 MB / 482.2 MB, free: 12.22 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007927/0.1584, allocations: 100.2 kB / 482.3 MB, free: 12.12 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004304/0.1627, allocations: 3.577 MB / 485.9 MB, free: 8.508 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009328/0.1637, allocations: 1.335 MB / 487.2 MB, free: 7.141 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002403/0.1639, allocations: 71.42 kB / 487.3 MB, free: 7.07 MB / 366.1 MB Notification: Performance of SimCode: time 6.92e-07/0.1639, allocations: 0 / 487.3 MB, free: 7.07 MB / 366.1 MB Notification: Performance of Templates: time 0.01809/0.182, allocations: 11.82 MB / 499.1 MB, free: 11.23 MB / 382.1 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe 2>&1)