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.001114/0.001114, allocations: 104.9 kB / 16.27 MB, free: 5.871 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.00113/0.00113, allocations: 188.3 kB / 17.2 MB, free: 5.512 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.358/1.358, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1753/0.1753, allocations: 28.78 MB / 319.8 MB, free: 1.988 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001214, allocations: 69.14 kB / 387.2 MB, free: 41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08554/0.08677, allocations: 56.44 MB / 443.7 MB, free: 3.797 MB / 318.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_3): time 0.004811/0.09162, allocations: 3.64 MB / 447.3 MB, free: 144 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001624/0.09328, allocations: 0.6857 MB / 448 MB, free: 15.45 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004701/0.09377, allocations: 19.94 kB / 448 MB, free: 15.43 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004427/0.09427, allocations: 174.3 kB / 448.2 MB, free: 15.26 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003385/0.09462, allocations: 134.8 kB / 448.3 MB, free: 15.13 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007001/0.09533, allocations: 363.5 kB / 448.7 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007627/0.0961, allocations: 0.8251 MB / 449.5 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008468/0.09696, allocations: 0.6481 MB / 450.2 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002883/0.09725, allocations: 338.4 kB / 450.5 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003301/0.09759, allocations: 409.6 kB / 450.9 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001374/0.09774, allocations: 84 kB / 451 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001874/0.09793, allocations: 119.9 kB / 451.1 MB, free: 12.33 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003405/0.09828, allocations: 426.5 kB / 451.5 MB, free: 11.91 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004619/0.09875, allocations: 0.6203 MB / 452.1 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001064/0.09982, allocations: 1.179 MB / 453.3 MB, free: 10.1 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.09984, allocations: 0 / 453.3 MB, free: 10.1 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.09985, allocations: 4 kB / 453.3 MB, free: 10.1 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.437e-05/0.09987, allocations: 0 / 453.3 MB, free: 10.1 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.002064/0.1019, allocations: 1.791 MB / 455.1 MB, free: 8.242 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.922e-05/0.102, allocations: 8.031 kB / 455.1 MB, free: 8.234 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002114/0.1022, allocations: 194.5 kB / 455.3 MB, free: 8.043 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007758/0.103, allocations: 0.7471 MB / 456 MB, free: 7.246 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.923e-05/0.1031, allocations: 78.45 kB / 456.1 MB, free: 7.168 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000114/0.1032, allocations: 104.4 kB / 456.2 MB, free: 7.066 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001523/0.1047, allocations: 1.158 MB / 457.4 MB, free: 5.844 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.084e-05/0.1048, allocations: 8.172 kB / 457.4 MB, free: 5.836 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.3e-05/0.1048, allocations: 43.94 kB / 457.4 MB, free: 5.793 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.952e-05/0.1049, allocations: 24 kB / 457.5 MB, free: 5.77 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001459/0.1063, allocations: 1.109 MB / 458.6 MB, free: 4.66 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004243/0.1106, allocations: 3.681 MB / 462.2 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001535/0.1122, allocations: 1.338 MB / 463.6 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005376/0.1127, allocations: 486.3 kB / 464.1 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.822e-05/0.1128, allocations: 24.53 kB / 464.1 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.763e-05/0.1128, allocations: 43.11 kB / 464.1 MB, free: 14.97 MB / 350.1 MB Notification: Performance of pre-optimization done (n=68): time 1.226e-05/0.1128, allocations: 0 / 464.1 MB, free: 14.97 MB / 350.1 MB Notification: Performance of matching and sorting (n=68): time 0.001862/0.1147, allocations: 1.54 MB / 465.7 MB, free: 13.42 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.245e-05/0.1148, allocations: 55.97 kB / 465.7 MB, free: 13.36 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001361/0.1161, allocations: 1.277 MB / 467 MB, free: 12.07 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.156e-05/0.1162, allocations: 41.7 kB / 467 MB, free: 12.02 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005511/0.1167, allocations: 0.7715 MB / 467.8 MB, free: 11.24 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001854/0.1169, allocations: 228.6 kB / 468 MB, free: 11.02 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001539/0.1171, allocations: 114.7 kB / 468.1 MB, free: 10.9 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.1173, allocations: 345.8 kB / 468.5 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000544/0.1178, allocations: 437.8 kB / 468.9 MB, free: 10.12 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005925/0.1184, allocations: 0.535 MB / 469.4 MB, free: 9.551 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001146/0.1196, allocations: 1.002 MB / 470.4 MB, free: 8.516 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.1196, allocations: 0 / 470.4 MB, free: 8.516 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001457/0.1211, allocations: 1.191 MB / 471.6 MB, free: 7.316 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.06e-05/0.1211, allocations: 4 kB / 471.6 MB, free: 7.312 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.091e-05/0.1211, allocations: 4 kB / 471.6 MB, free: 7.309 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.409e-05/0.1211, allocations: 7.984 kB / 471.6 MB, free: 7.301 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004712/0.1216, allocations: 135.8 kB / 471.8 MB, free: 7.168 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.35e-05/0.1216, allocations: 8 kB / 471.8 MB, free: 7.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002649/0.1219, allocations: 55.36 kB / 471.8 MB, free: 7.105 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.027e-05/0.122, allocations: 28 kB / 471.9 MB, free: 7.078 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.0004818/0.1224, allocations: 383.9 kB / 472.2 MB, free: 6.695 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001446/0.1226, allocations: 138.2 kB / 472.4 MB, free: 6.559 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001506/0.1241, allocations: 1.193 MB / 473.6 MB, free: 5.359 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.343e-06/0.1241, allocations: 4 kB / 473.6 MB, free: 5.355 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/0.1241, allocations: 4 kB / 473.6 MB, free: 5.352 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.155e-06/0.1242, allocations: 3.984 kB / 473.6 MB, free: 5.348 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002661/0.1268, allocations: 2.379 MB / 476 MB, free: 2.906 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.1268, allocations: 0 / 476 MB, free: 2.906 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004711/0.1273, allocations: 119.8 kB / 476.1 MB, free: 2.789 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.025e-06/0.1273, allocations: 0 / 476.1 MB, free: 2.789 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.68e-05/0.1274, allocations: 23.92 kB / 476.1 MB, free: 2.766 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.558e-06/0.1274, allocations: 0 / 476.1 MB, free: 2.766 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.1274, allocations: 3.938 kB / 476.1 MB, free: 2.762 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002075/0.1295, allocations: 1.887 MB / 478 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000194/0.1297, allocations: 203.2 kB / 478.2 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.13e-05/0.1298, allocations: 12 kB / 478.2 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002295/0.13, allocations: 8 kB / 478.2 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.926e-05/0.1301, allocations: 44.44 kB / 478.3 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.968e-05/0.1302, allocations: 20 kB / 478.3 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001088/0.1313, allocations: 0.9004 MB / 479.2 MB, free: 15.66 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.265e-06/0.1313, allocations: 0 / 479.2 MB, free: 15.66 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005914/0.1319, allocations: 210.9 kB / 479.4 MB, free: 15.45 MB / 366.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.0001751/0.1321, allocations: 107.2 kB / 479.5 MB, free: 15.34 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001563/0.1336, allocations: 1.024 MB / 480.5 MB, free: 14.31 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.1336, allocations: 4.125 kB / 480.5 MB, free: 14.31 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005763/0.1342, allocations: 0.5146 MB / 481 MB, free: 13.79 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006561/0.1349, allocations: 91.95 kB / 481.1 MB, free: 13.7 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003953/0.1389, allocations: 2.887 MB / 484 MB, free: 10.78 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008941/0.1398, allocations: 1.307 MB / 485.3 MB, free: 9.441 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001919/0.14, allocations: 59.42 kB / 485.4 MB, free: 9.383 MB / 366.1 MB Notification: Performance of SimCode: time 5.71e-07/0.14, allocations: 0 / 485.4 MB, free: 9.383 MB / 366.1 MB Notification: Performance of Templates: time 0.01672/0.1567, allocations: 11 MB / 496.4 MB, free: 14.36 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)