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.004816/0.004816, allocations: 100.9 kB / 15.73 MB, free: 6.504 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.001112/0.001112, allocations: 196.7 kB / 16.68 MB, free: 6.375 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.362/1.362, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3157/0.3157, allocations: 28.8 MB / 319.3 MB, free: 5.645 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001276/0.001276, allocations: 59.91 kB / 444.4 MB, free: 36.75 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1295/0.1308, allocations: 56.44 MB / 0.489 GB, free: 8.559 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_2): time 0.00445/0.1353, allocations: 3.643 MB / 0.4926 GB, free: 5.637 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002383/0.1378, allocations: 0.6846 MB / 0.4933 GB, free: 5.059 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001179/0.139, allocations: 18.88 kB / 0.4933 GB, free: 5.055 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004926/0.1395, allocations: 176.5 kB / 0.4935 GB, free: 4.91 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003801/0.1399, allocations: 135.2 kB / 0.4936 GB, free: 4.812 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006998/0.1406, allocations: 357.9 kB / 0.4939 GB, free: 4.527 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006728/0.1413, allocations: 0.8494 MB / 0.4948 GB, free: 3.938 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006587/0.1419, allocations: 0.6364 MB / 0.4954 GB, free: 3.262 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001974/0.1422, allocations: 338.4 kB / 0.4957 GB, free: 2.93 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002253/0.1424, allocations: 413.6 kB / 0.4961 GB, free: 2.523 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001034/0.1425, allocations: 88 kB / 0.4962 GB, free: 2.438 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001625/0.1427, allocations: 112 kB / 0.4963 GB, free: 2.328 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002426/0.1429, allocations: 438.4 kB / 0.4967 GB, free: 1.898 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002688/0.1432, allocations: 0.6048 MB / 0.4973 GB, free: 1.289 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007681/0.144, allocations: 1.26 MB / 0.4985 GB, free: 24 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.144, allocations: 4 kB / 0.4985 GB, free: 20 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.144, allocations: 0 / 0.4985 GB, free: 20 kB / 366.1 MB Notification: Performance of Transformations before backend: time 1.219e-05/0.144, allocations: 0 / 0.4985 GB, free: 20 kB / 366.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.001997/0.146, allocations: 1.78 MB / 0.5003 GB, free: 14.18 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.623e-05/0.1461, allocations: 8.031 kB / 0.5003 GB, free: 14.17 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001982/0.1463, allocations: 194.5 kB / 0.5005 GB, free: 13.98 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009215/0.1472, allocations: 0.7666 MB / 0.5012 GB, free: 13.16 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.201e-05/0.1473, allocations: 82.38 kB / 0.5013 GB, free: 13.08 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001245/0.1474, allocations: 100.4 kB / 0.5014 GB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001478/0.1489, allocations: 1.162 MB / 0.5025 GB, free: 11.75 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.401e-05/0.1489, allocations: 192 / 0.5025 GB, free: 11.75 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.602e-05/0.149, allocations: 47.94 kB / 0.5026 GB, free: 11.71 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.527e-05/0.149, allocations: 28 kB / 0.5026 GB, free: 11.68 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001335/0.1504, allocations: 1.093 MB / 0.5037 GB, free: 10.58 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003985/0.1544, allocations: 3.642 MB / 0.5072 GB, free: 6.836 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001436/0.1558, allocations: 1.33 MB / 0.5085 GB, free: 5.492 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000498/0.1563, allocations: 478.3 kB / 0.509 GB, free: 5.023 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.065e-05/0.1564, allocations: 28.77 kB / 0.509 GB, free: 4.996 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.684e-05/0.1564, allocations: 51.05 kB / 0.5091 GB, free: 4.938 MB / 382.1 MB Notification: Performance of pre-optimization done (n=67): time 2.013e-06/0.1565, allocations: 0 / 0.5091 GB, free: 4.938 MB / 382.1 MB Notification: Performance of matching and sorting (n=67): time 0.001759/0.1582, allocations: 1.516 MB / 0.5105 GB, free: 3.414 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.785e-05/0.1583, allocations: 55.97 kB / 0.5106 GB, free: 3.348 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001287/0.1596, allocations: 1.292 MB / 0.5118 GB, free: 2.047 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.817e-05/0.1596, allocations: 37.7 kB / 0.5119 GB, free: 2.004 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005256/0.1601, allocations: 0.7638 MB / 0.5126 GB, free: 1.23 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001515/0.1603, allocations: 228.7 kB / 0.5128 GB, free: 1.004 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001475/0.1605, allocations: 118.3 kB / 0.513 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001166/0.1606, allocations: 329.9 kB / 0.5133 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000481/0.1611, allocations: 437.1 kB / 0.5137 GB, free: 132 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005356/0.1616, allocations: 0.5277 MB / 0.5142 GB, free: 15.57 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001027/0.1627, allocations: 0.9977 MB / 0.5152 GB, free: 14.54 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.1627, allocations: 0 / 0.5152 GB, free: 14.54 MB / 398.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001272/0.1639, allocations: 1.183 MB / 0.5163 GB, free: 13.34 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.899e-05/0.164, allocations: 8 kB / 0.5163 GB, free: 13.34 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.777e-06/0.164, allocations: 4 kB / 0.5163 GB, free: 13.33 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.911e-05/0.164, allocations: 4 kB / 0.5164 GB, free: 13.33 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004361/0.1645, allocations: 131.8 kB / 0.5165 GB, free: 13.2 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.155e-05/0.1645, allocations: 8 kB / 0.5165 GB, free: 13.19 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000231/0.1647, allocations: 51.38 kB / 0.5165 GB, free: 13.14 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.574e-05/0.1648, allocations: 24 kB / 0.5166 GB, free: 13.12 MB / 398.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.0004681/0.1652, allocations: 389.4 kB / 0.5169 GB, free: 12.73 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001425/0.1654, allocations: 142.1 kB / 0.5171 GB, free: 12.59 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001445/0.1668, allocations: 1.189 MB / 0.5182 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.603e-06/0.1668, allocations: 4 kB / 0.5182 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.1669, allocations: 0 / 0.5182 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.517e-06/0.1669, allocations: 7.984 kB / 0.5182 GB, free: 11.37 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002568/0.1694, allocations: 2.364 MB / 0.5205 GB, free: 8.949 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.1695, allocations: 0 / 0.5205 GB, free: 8.949 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004273/0.1699, allocations: 115.8 kB / 0.5207 GB, free: 8.836 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.1699, allocations: 3.938 kB / 0.5207 GB, free: 8.832 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.017e-05/0.1699, allocations: 16 kB / 0.5207 GB, free: 8.816 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.298e-06/0.17, allocations: 3.984 kB / 0.5207 GB, free: 8.812 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.17, allocations: 4 kB / 0.5207 GB, free: 8.809 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001916/0.1719, allocations: 1.871 MB / 0.5225 GB, free: 6.914 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002162/0.1721, allocations: 199.1 kB / 0.5227 GB, free: 6.699 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.572e-05/0.1722, allocations: 24.05 kB / 0.5227 GB, free: 6.676 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002101/0.1724, allocations: 12 kB / 0.5227 GB, free: 6.664 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.085e-05/0.1725, allocations: 40.45 kB / 0.5228 GB, free: 6.625 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.613e-05/0.1725, allocations: 19.98 kB / 0.5228 GB, free: 6.605 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001015/0.1736, allocations: 0.8928 MB / 0.5237 GB, free: 5.715 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.422e-06/0.1736, allocations: 0 / 0.5237 GB, free: 5.715 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005265/0.1741, allocations: 210.9 kB / 0.5239 GB, free: 5.508 MB / 398.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.0001921/0.1743, allocations: 119.1 kB / 0.524 GB, free: 5.379 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00115/0.1755, allocations: 0.9841 MB / 0.5249 GB, free: 4.395 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.1755, allocations: 4 kB / 0.5249 GB, free: 4.391 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005292/0.176, allocations: 0.5029 MB / 0.5254 GB, free: 3.887 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005718/0.1766, allocations: 95.64 kB / 0.5255 GB, free: 3.797 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003431/0.18, allocations: 2.754 MB / 0.5282 GB, free: 1.008 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008737/0.1809, allocations: 1.303 MB / 0.5295 GB, free: 15.68 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002197/0.1812, allocations: 76.36 kB / 0.5296 GB, free: 15.61 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001091/0.1813, allocations: 47.44 kB / 0.5296 GB, free: 15.56 MB / 414.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1813, allocations: 0 / 0.5296 GB, free: 15.56 MB / 414.1 MB Notification: Performance of Templates: time 0.0118/0.1931, allocations: 5.3 MB / 0.5348 GB, free: 10.25 MB / 414.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)