Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.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_5,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_5,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00122/0.00122, allocations: 105.9 kB / 16.27 MB, free: 6.348 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.001189/0.001189, allocations: 187.6 kB / 17.2 MB, free: 5.949 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.542/1.542, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1788/0.1788, allocations: 28.78 MB / 319.8 MB, free: 1.984 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001396/0.001396, allocations: 66.09 kB / 387.2 MB, free: 41.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08658/0.088, allocations: 56.44 MB / 443.7 MB, free: 3.793 MB / 318.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_5): time 0.004317/0.09236, allocations: 3.255 MB / 446.9 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001434/0.09383, allocations: 0.5221 MB / 447.5 MB, free: 0 / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000379/0.09423, allocations: 12.05 kB / 447.5 MB, free: 15.98 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003411/0.09459, allocations: 150.5 kB / 447.6 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003355/0.095, allocations: 126.9 kB / 447.7 MB, free: 15.71 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000591/0.0956, allocations: 283.6 kB / 448 MB, free: 15.44 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006241/0.09624, allocations: 0.7123 MB / 448.7 MB, free: 14.72 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006112/0.09686, allocations: 473.2 kB / 449.2 MB, free: 14.24 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002755/0.09714, allocations: 310.5 kB / 449.5 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003257/0.09748, allocations: 385.8 kB / 449.9 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001166/0.0976, allocations: 76 kB / 449.9 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002101/0.09782, allocations: 108 kB / 450 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003385/0.09817, allocations: 426.5 kB / 450.5 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003886/0.09856, allocations: 0.5815 MB / 451 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009631/0.09953, allocations: 1.066 MB / 452.1 MB, free: 11.3 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.09955, allocations: 0 / 452.1 MB, free: 11.3 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.09956, allocations: 0 / 452.1 MB, free: 11.3 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.506e-05/0.09958, allocations: 0 / 452.1 MB, free: 11.3 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: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.002129/0.1017, allocations: 1.713 MB / 453.8 MB, free: 9.52 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.624e-05/0.1018, allocations: 12.03 kB / 453.8 MB, free: 9.508 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002053/0.102, allocations: 190.5 kB / 454 MB, free: 9.32 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004684/0.1025, allocations: 0.5703 MB / 454.6 MB, free: 8.699 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.907e-05/0.1025, allocations: 74.38 kB / 454.7 MB, free: 8.629 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001099/0.1026, allocations: 92.38 kB / 454.8 MB, free: 8.539 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001634/0.1043, allocations: 1.082 MB / 455.8 MB, free: 7.438 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.468e-05/0.1043, allocations: 192 / 455.8 MB, free: 7.438 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.577e-05/0.1044, allocations: 39.94 kB / 455.9 MB, free: 7.398 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.642e-05/0.1045, allocations: 62.12 kB / 455.9 MB, free: 7.336 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001721/0.1062, allocations: 1.219 MB / 457.2 MB, free: 6.109 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003894/0.1101, allocations: 2.867 MB / 460 MB, free: 3.168 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0013/0.1114, allocations: 1.003 MB / 461 MB, free: 2.152 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006377/0.1121, allocations: 0.4983 MB / 461.5 MB, free: 1.652 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.379e-05/0.1122, allocations: 32.55 kB / 461.6 MB, free: 1.621 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.39e-05/0.1122, allocations: 39.12 kB / 461.6 MB, free: 1.574 MB / 334.1 MB Notification: Performance of pre-optimization done (n=66): time 2.856e-06/0.1122, allocations: 0 / 461.6 MB, free: 1.574 MB / 334.1 MB Notification: Performance of matching and sorting (n=66): time 0.002187/0.1144, allocations: 1.594 MB / 463.2 MB, free: 15.96 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.64e-05/0.1145, allocations: 55.97 kB / 463.2 MB, free: 15.9 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001348/0.1158, allocations: 1.262 MB / 464.5 MB, free: 14.62 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.046e-05/0.1159, allocations: 37.7 kB / 464.5 MB, free: 14.58 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005336/0.1164, allocations: 0.7821 MB / 465.3 MB, free: 13.79 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001718/0.1166, allocations: 232.6 kB / 465.6 MB, free: 13.56 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001692/0.1168, allocations: 130.6 kB / 465.7 MB, free: 13.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001233/0.1169, allocations: 333.9 kB / 466 MB, free: 13.09 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006451/0.1176, allocations: 473.7 kB / 466.5 MB, free: 12.63 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007705/0.1183, allocations: 0.6599 MB / 467.1 MB, free: 11.89 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004077/0.1224, allocations: 2.126 MB / 469.3 MB, free: 9.691 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.19e-06/0.1225, allocations: 0 / 469.3 MB, free: 9.691 MB / 350.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001799/0.1243, allocations: 1.335 MB / 470.6 MB, free: 8.348 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.258e-05/0.1243, allocations: 16.06 kB / 470.6 MB, free: 8.332 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.279e-05/0.1243, allocations: 4 kB / 470.6 MB, free: 8.328 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.813e-05/0.1244, allocations: 15.94 kB / 470.6 MB, free: 8.312 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005704/0.1249, allocations: 171.8 kB / 470.8 MB, free: 8.145 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.528e-05/0.125, allocations: 11.94 kB / 470.8 MB, free: 8.133 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003542/0.1253, allocations: 83.2 kB / 470.9 MB, free: 8.051 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.038e-05/0.1254, allocations: 39.98 kB / 470.9 MB, free: 8.012 MB / 350.1 MB Warning: Assuming fixed start value for the following 6 variables: years:VARIABLE(start = 1900.0 fixed = true ) "Time in calendar years" type: Real Population.level:VARIABLE(start = Population.x0 fixed = true ) "Reversible state variable" type: Real Natural_Resources.level:VARIABLE(start = Natural_Resources.x0 fixed = true ) "Reversible state variable" type: Real Capital_Investment.level:VARIABLE(start = Capital_Investment.x0 fixed = true ) "Reversible state variable" type: Real Pollution.level:VARIABLE(start = Pollution.x0 fixed = true ) "Reversible state variable" type: Real CIAF.level:VARIABLE(start = CIAF.x0 fixed = true ) "Reversible state variable" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 96 * 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.0006256/0.126, allocations: 399.2 kB / 471.3 MB, free: 7.613 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001629/0.1262, allocations: 134.2 kB / 471.4 MB, free: 7.48 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001751/0.128, allocations: 1.255 MB / 472.7 MB, free: 6.215 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.836e-06/0.128, allocations: 8 kB / 472.7 MB, free: 6.207 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.421e-06/0.128, allocations: 0 / 472.7 MB, free: 6.207 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.236e-06/0.128, allocations: 3.984 kB / 472.7 MB, free: 6.203 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002846/0.1309, allocations: 2.37 MB / 475.1 MB, free: 3.773 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.281e-06/0.1309, allocations: 3.984 kB / 475.1 MB, free: 3.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005281/0.1314, allocations: 123.8 kB / 475.2 MB, free: 3.648 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.326e-06/0.1314, allocations: 4 kB / 475.2 MB, free: 3.645 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.834e-05/0.1315, allocations: 19.98 kB / 475.2 MB, free: 3.625 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.479e-06/0.1315, allocations: 8 kB / 475.2 MB, free: 3.617 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.1315, allocations: 3.984 kB / 475.2 MB, free: 3.613 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002412/0.1339, allocations: 1.941 MB / 477.2 MB, free: 1.652 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001925/0.1341, allocations: 195.2 kB / 477.4 MB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.989e-05/0.1342, allocations: 12.06 kB / 477.4 MB, free: 1.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002649/0.1345, allocations: 23.98 kB / 477.4 MB, free: 1.406 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001125/0.1346, allocations: 44.5 kB / 477.5 MB, free: 1.363 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.713e-05/0.1347, allocations: 23.98 kB / 477.5 MB, free: 1.34 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001027/0.1357, allocations: 0.8716 MB / 478.3 MB, free: 480 kB / 350.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.1357, allocations: 3.938 kB / 478.4 MB, free: 476 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006292/0.1363, allocations: 211 kB / 478.6 MB, free: 264 kB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (years,Population.level,Natural_Resources.level,Capital_Investment.level,Pollution.level,CIAF.level) * 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 (66): * Single equations (assignments): 66 * 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.0001869/0.1365, allocations: 118.8 kB / 478.7 MB, free: 136 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001812/0.1384, allocations: 1.125 MB / 479.8 MB, free: 15.01 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.1384, allocations: 0 / 479.8 MB, free: 15.01 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006939/0.1391, allocations: 0.5427 MB / 480.3 MB, free: 14.46 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004654/0.1396, allocations: 69.09 kB / 480.4 MB, free: 14.39 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003883/0.1434, allocations: 2.856 MB / 483.3 MB, free: 11.5 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008627/0.1443, allocations: 1.295 MB / 484.6 MB, free: 10.17 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002255/0.1446, allocations: 71.42 kB / 484.6 MB, free: 10.1 MB / 366.1 MB Notification: Performance of SimCode: time 7.51e-07/0.1446, allocations: 0 / 484.6 MB, free: 10.1 MB / 366.1 MB Notification: Performance of Templates: time 0.01655/0.1611, allocations: 10.76 MB / 495.4 MB, free: 15.31 MB / 382.1 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe 2>&1)