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.001314/0.001314, allocations: 117.6 kB / 16.42 MB, free: 6.496 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.00125/0.00125, allocations: 183.9 kB / 17.35 MB, free: 5.762 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.308/1.308, allocations: 222.9 MB / 241.1 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1779/0.1779, allocations: 28.78 MB / 320 MB, free: 1.887 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001486/0.001486, allocations: 55.91 kB / 445 MB, free: 2.504 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1137, allocations: 56.43 MB / 0.4897 GB, free: 10.02 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_5): time 0.00461/0.1184, allocations: 3.25 MB / 0.4929 GB, free: 6.762 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001753/0.1202, allocations: 0.526 MB / 0.4934 GB, free: 6.234 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006095/0.1208, allocations: 12 kB / 0.4934 GB, free: 6.223 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004838/0.1213, allocations: 146.6 kB / 0.4935 GB, free: 6.078 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005835/0.1219, allocations: 126.9 kB / 0.4937 GB, free: 5.953 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008043/0.1227, allocations: 283.6 kB / 0.4939 GB, free: 5.676 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009087/0.1237, allocations: 0.7239 MB / 0.4946 GB, free: 4.949 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006377/0.1243, allocations: 477.2 kB / 0.4951 GB, free: 4.453 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002617/0.1246, allocations: 306.6 kB / 0.4954 GB, free: 4.152 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002971/0.1249, allocations: 385.8 kB / 0.4957 GB, free: 3.773 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001192/0.125, allocations: 79.98 kB / 0.4958 GB, free: 3.695 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001831/0.1252, allocations: 104 kB / 0.4959 GB, free: 3.594 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003193/0.1255, allocations: 430.4 kB / 0.4963 GB, free: 3.172 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003763/0.1259, allocations: 0.5737 MB / 0.4969 GB, free: 2.594 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009692/0.1269, allocations: 1.139 MB / 0.498 GB, free: 1.449 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.1269, allocations: 0 / 0.498 GB, free: 1.449 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.1269, allocations: 0 / 0.498 GB, free: 1.449 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.128e-05/0.1269, allocations: 0 / 0.498 GB, free: 1.449 MB / 382.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.001886/0.1288, allocations: 1.717 MB / 0.4997 GB, free: 15.67 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.866e-05/0.1289, allocations: 8.031 kB / 0.4997 GB, free: 15.66 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000172/0.129, allocations: 186.6 kB / 0.4999 GB, free: 15.48 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004571/0.1295, allocations: 0.5702 MB / 0.5004 GB, free: 14.86 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.921e-05/0.1296, allocations: 70.38 kB / 0.5005 GB, free: 14.79 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001019/0.1297, allocations: 96.38 kB / 0.5006 GB, free: 14.69 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00142/0.1311, allocations: 1.082 MB / 0.5016 GB, free: 13.59 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.516e-05/0.1312, allocations: 4.188 kB / 0.5016 GB, free: 13.59 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.695e-05/0.1312, allocations: 39.94 kB / 0.5017 GB, free: 13.55 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.671e-05/0.1313, allocations: 62.11 kB / 0.5017 GB, free: 13.49 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001535/0.1328, allocations: 1.211 MB / 0.5029 GB, free: 12.27 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003461/0.1363, allocations: 2.839 MB / 0.5057 GB, free: 9.355 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00123/0.1375, allocations: 0.9945 MB / 0.5067 GB, free: 8.344 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006206/0.1382, allocations: 0.4983 MB / 0.5072 GB, free: 7.844 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.629e-05/0.1383, allocations: 32.67 kB / 0.5072 GB, free: 7.812 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.546e-05/0.1383, allocations: 43.12 kB / 0.5072 GB, free: 7.762 MB / 398.1 MB Notification: Performance of pre-optimization done (n=66): time 2.775e-06/0.1383, allocations: 0 / 0.5072 GB, free: 7.762 MB / 398.1 MB Notification: Performance of matching and sorting (n=66): time 0.002081/0.1404, allocations: 1.587 MB / 0.5088 GB, free: 6.168 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.177e-05/0.1404, allocations: 55.97 kB / 0.5088 GB, free: 6.102 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001297/0.1417, allocations: 1.262 MB / 0.5101 GB, free: 4.828 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.266e-05/0.1418, allocations: 37.7 kB / 0.5101 GB, free: 4.785 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005131/0.1423, allocations: 0.7781 MB / 0.5109 GB, free: 3.996 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001475/0.1425, allocations: 228.6 kB / 0.5111 GB, free: 3.77 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001506/0.1426, allocations: 134.6 kB / 0.5112 GB, free: 3.633 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001151/0.1427, allocations: 334 kB / 0.5115 GB, free: 3.301 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005987/0.1433, allocations: 477.7 kB / 0.512 GB, free: 2.832 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006945/0.144, allocations: 0.6559 MB / 0.5126 GB, free: 2.102 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2216/0.3656, allocations: 2.113 MB / 0.5147 GB, free: 26.56 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.079e-05/0.3657, allocations: 7 kB / 0.5147 GB, free: 26.56 MB / 398.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001981/0.3676, allocations: 1.335 MB / 0.516 GB, free: 26.52 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.336e-05/0.3677, allocations: 7.344 kB / 0.516 GB, free: 26.52 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.318e-05/0.3677, allocations: 7.125 kB / 0.516 GB, free: 26.52 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.625e-05/0.3677, allocations: 13.34 kB / 0.516 GB, free: 26.52 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005429/0.3683, allocations: 179.9 kB / 0.5162 GB, free: 26.52 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.562e-05/0.3683, allocations: 11.62 kB / 0.5162 GB, free: 26.52 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003535/0.3687, allocations: 79.44 kB / 0.5163 GB, free: 26.52 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.01e-05/0.3687, allocations: 40.11 kB / 0.5163 GB, free: 26.52 MB / 398.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.0005635/0.3693, allocations: 395.8 kB / 0.5167 GB, free: 26.4 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001629/0.3695, allocations: 138.5 kB / 0.5168 GB, free: 26.4 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00166/0.3711, allocations: 1.249 MB / 0.518 GB, free: 26.34 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.307e-06/0.3712, allocations: 4.547 kB / 0.5181 GB, free: 26.34 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.3712, allocations: 0 / 0.5181 GB, free: 26.34 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000185/0.3714, allocations: 197.3 kB / 0.5182 GB, free: 26.19 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.344e-05/0.3715, allocations: 21.28 kB / 0.5183 GB, free: 26.18 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002676/0.3717, allocations: 28.3 kB / 0.5183 GB, free: 26.18 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001104/0.3719, allocations: 47.28 kB / 0.5183 GB, free: 26.18 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001861/0.3737, allocations: 1.248 MB / 0.5196 GB, free: 26.06 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002315/0.376, allocations: 2.003 MB / 0.5215 GB, free: 25.76 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006393/0.3767, allocations: 0.5145 MB / 0.522 GB, free: 25.75 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001092/0.3778, allocations: 0.8713 MB / 0.5229 GB, free: 25.64 MB / 398.1 MB Notification: Performance of Backend: time 5.91e-07/0.3778, allocations: 0 / 0.5229 GB, free: 25.64 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001355/0.3792, allocations: 0.7264 MB / 0.5236 GB, free: 25.57 MB / 398.1 MB Notification: Performance of SimCode: time 0.003241/0.3824, allocations: 2.832 MB / 0.5263 GB, free: 24.13 MB / 398.1 MB Notification: Performance of Templates: time 0.01705/0.3995, allocations: 7.655 MB / 0.5338 GB, free: 23.31 MB / 398.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)