Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.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_2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001095/0.001094, allocations: 109.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.001103/0.001103, allocations: 199.2 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.333/1.333, allocations: 222.9 MB / 240.6 MB, free: 13.75 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1825/0.1825, allocations: 28.77 MB / 319.5 MB, free: 1.973 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001144/0.001144, allocations: 64 kB / 386.7 MB, free: 40.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1047, allocations: 56.44 MB / 443.2 MB, free: 4.148 MB / 318.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_2): time 0.004791/0.1096, allocations: 3.64 MB / 446.8 MB, free: 500 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001684/0.1113, allocations: 0.6662 MB / 447.5 MB, free: 15.82 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004568/0.1117, allocations: 15.94 kB / 447.5 MB, free: 15.8 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004132/0.1122, allocations: 119.1 kB / 447.6 MB, free: 15.69 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003088/0.1125, allocations: 91.48 kB / 447.7 MB, free: 15.6 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006733/0.1132, allocations: 311.7 kB / 448 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007967/0.114, allocations: 0.8562 MB / 448.8 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008089/0.1148, allocations: 0.6364 MB / 449.5 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000295/0.1151, allocations: 330.5 kB / 449.8 MB, free: 13.44 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003584/0.1155, allocations: 453.5 kB / 450.2 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001108/0.1156, allocations: 84 kB / 450.3 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001941/0.1158, allocations: 111.9 kB / 450.4 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003324/0.1162, allocations: 438.5 kB / 450.9 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003914/0.1166, allocations: 0.6125 MB / 451.5 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008412/0.1174, allocations: 0.8427 MB / 452.3 MB, free: 10.91 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.1174, allocations: 3.938 kB / 452.3 MB, free: 10.91 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.1174, allocations: 0 / 452.3 MB, free: 10.91 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.659e-05/0.1174, allocations: 4 kB / 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.002055/0.1195, allocations: 1.78 MB / 454.1 MB, free: 9.059 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.186e-05/0.1196, allocations: 8.031 kB / 454.1 MB, free: 9.051 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002233/0.1198, allocations: 198.5 kB / 454.3 MB, free: 8.855 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007931/0.1206, allocations: 0.7472 MB / 455.1 MB, free: 8.059 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.804e-05/0.1207, allocations: 74.44 kB / 455.1 MB, free: 7.984 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001099/0.1208, allocations: 104.4 kB / 455.2 MB, free: 7.883 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0016/0.1224, allocations: 1.158 MB / 456.4 MB, free: 6.66 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.407e-05/0.1224, allocations: 4.125 kB / 456.4 MB, free: 6.656 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.595e-05/0.1225, allocations: 47.94 kB / 456.4 MB, free: 6.609 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.247e-05/0.1225, allocations: 28 kB / 456.5 MB, free: 6.582 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001414/0.1239, allocations: 1.085 MB / 457.6 MB, free: 5.496 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004363/0.1283, allocations: 3.689 MB / 461.2 MB, free: 1.699 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001522/0.1299, allocations: 1.334 MB / 462.6 MB, free: 368 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005298/0.1304, allocations: 482.6 kB / 463 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.84e-05/0.1305, allocations: 24.55 kB / 463.1 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.209e-05/0.1306, allocations: 43.12 kB / 463.1 MB, free: 15.8 MB / 350.1 MB Notification: Performance of pre-optimization done (n=67): time 3.316e-06/0.1306, allocations: 0 / 463.1 MB, free: 15.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=67): time 0.001836/0.1324, allocations: 1.512 MB / 464.6 MB, free: 14.29 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.674e-05/0.1325, allocations: 59.97 kB / 464.7 MB, free: 14.22 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001375/0.1339, allocations: 1.292 MB / 466 MB, free: 12.92 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.125e-05/0.1339, allocations: 41.64 kB / 466 MB, free: 12.87 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005479/0.1345, allocations: 0.7677 MB / 466.8 MB, free: 12.09 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001755/0.1347, allocations: 228.7 kB / 467 MB, free: 11.87 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001517/0.1348, allocations: 122.2 kB / 467.1 MB, free: 11.74 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001512/0.135, allocations: 329.9 kB / 467.4 MB, free: 11.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004852/0.1355, allocations: 437.1 kB / 467.9 MB, free: 10.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005458/0.136, allocations: 0.5278 MB / 468.4 MB, free: 10.42 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001074/0.1371, allocations: 0.9939 MB / 469.4 MB, free: 9.391 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/0.1371, allocations: 0 / 469.4 MB, free: 9.391 MB / 350.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001372/0.1385, allocations: 1.179 MB / 470.6 MB, free: 8.203 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.163e-05/0.1385, allocations: 8 kB / 470.6 MB, free: 8.195 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.1385, allocations: 0 / 470.6 MB, free: 8.195 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.226e-05/0.1386, allocations: 8 kB / 470.6 MB, free: 8.188 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000457/0.139, allocations: 135.8 kB / 470.7 MB, free: 8.055 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.368e-05/0.1391, allocations: 11.94 kB / 470.7 MB, free: 8.043 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002387/0.1393, allocations: 51.38 kB / 470.8 MB, free: 7.992 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.1e-05/0.1394, allocations: 27.98 kB / 470.8 MB, free: 7.965 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 (82): * Single equations (assignments): 82 * 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.000476/0.1398, allocations: 380.1 kB / 471.2 MB, free: 7.586 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001396/0.14, allocations: 142.1 kB / 471.3 MB, free: 7.445 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001436/0.1414, allocations: 1.201 MB / 472.5 MB, free: 6.23 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.231e-06/0.1414, allocations: 4 kB / 472.5 MB, free: 6.227 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.084e-06/0.1415, allocations: 0 / 472.5 MB, free: 6.227 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.739e-06/0.1415, allocations: 7.984 kB / 472.5 MB, free: 6.219 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002627/0.1441, allocations: 2.36 MB / 474.9 MB, free: 3.797 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.1441, allocations: 0 / 474.9 MB, free: 3.797 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004342/0.1446, allocations: 111.8 kB / 475 MB, free: 3.688 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.1446, allocations: 0 / 475 MB, free: 3.688 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.788e-05/0.1446, allocations: 19.98 kB / 475 MB, free: 3.668 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.366e-06/0.1446, allocations: 0 / 475 MB, free: 3.668 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.162e-06/0.1446, allocations: 0 / 475 MB, free: 3.668 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0023/0.1469, allocations: 1.879 MB / 476.9 MB, free: 1.773 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001738/0.1471, allocations: 207.1 kB / 477.1 MB, free: 1.551 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.692e-05/0.1472, allocations: 12 kB / 477.1 MB, free: 1.539 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002069/0.1474, allocations: 12 kB / 477.1 MB, free: 1.527 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.237e-05/0.1475, allocations: 44.44 kB / 477.2 MB, free: 1.484 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.83e-05/0.1476, allocations: 16 kB / 477.2 MB, free: 1.469 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009832/0.1485, allocations: 0.8967 MB / 478.1 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1485, allocations: 0 / 478.1 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000544/0.1491, allocations: 211 kB / 478.3 MB, free: 376 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 (67): * Single equations (assignments): 67 * 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.0001865/0.1493, allocations: 111.2 kB / 478.4 MB, free: 252 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001378/0.1507, allocations: 1.011 MB / 479.4 MB, free: 15.23 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.1507, allocations: 3.938 kB / 479.4 MB, free: 15.23 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005365/0.1512, allocations: 0.5074 MB / 479.9 MB, free: 14.72 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006552/0.1519, allocations: 96.02 kB / 480 MB, free: 14.63 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004135/0.1561, allocations: 3.45 MB / 483.5 MB, free: 11.14 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008727/0.157, allocations: 1.307 MB / 484.8 MB, free: 9.809 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002064/0.1572, allocations: 59.42 kB / 484.8 MB, free: 9.75 MB / 366.1 MB Notification: Performance of SimCode: time 9.42e-07/0.1572, allocations: 3.938 kB / 484.8 MB, free: 9.746 MB / 366.1 MB Notification: Performance of Templates: time 0.01696/0.1741, allocations: 10.98 MB / 495.8 MB, free: 14.75 MB / 382.1 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe 2>&1)