Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.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_6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001242/0.001242, allocations: 108.8 kB / 16.41 MB, free: 6.512 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.001252/0.001252, allocations: 192.3 kB / 17.35 MB, free: 5.734 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.325/1.325, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1816/0.1816, allocations: 28.77 MB / 320 MB, free: 1.902 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001194/0.001194, allocations: 67.89 kB / 445 MB, free: 2.516 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.1129, allocations: 56.42 MB / 0.4897 GB, free: 10.04 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.004859/0.1178, allocations: 3.67 MB / 0.4933 GB, free: 6.363 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001927/0.1198, allocations: 0.7752 MB / 0.494 GB, free: 5.586 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006933/0.1205, allocations: 19.94 kB / 0.4941 GB, free: 5.566 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006129/0.1211, allocations: 178.3 kB / 0.4942 GB, free: 5.391 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007228/0.1219, allocations: 138.8 kB / 0.4944 GB, free: 5.254 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009251/0.1228, allocations: 379.5 kB / 0.4947 GB, free: 4.883 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008718/0.1237, allocations: 0.864 MB / 0.4956 GB, free: 4.016 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007534/0.1244, allocations: 0.6443 MB / 0.4962 GB, free: 3.332 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002848/0.1247, allocations: 338.4 kB / 0.4965 GB, free: 3 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003875/0.1251, allocations: 437.5 kB / 0.4969 GB, free: 2.57 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001225/0.1253, allocations: 88 kB / 0.497 GB, free: 2.484 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001743/0.1254, allocations: 116 kB / 0.4971 GB, free: 2.371 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003351/0.1258, allocations: 442.4 kB / 0.4975 GB, free: 1.938 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003941/0.1262, allocations: 0.6203 MB / 0.4982 GB, free: 1.312 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009891/0.1272, allocations: 1.268 MB / 0.4994 GB, free: 40 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.88e-06/0.1272, allocations: 4 kB / 0.4994 GB, free: 36 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1272, allocations: 0 / 0.4994 GB, free: 36 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.645e-05/0.1272, allocations: 0 / 0.4994 GB, free: 36 kB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 265 * Number of variables: 265 Notification: Performance of Generate backend data structure: time 0.002/0.1292, allocations: 1.799 MB / 0.5011 GB, free: 14.17 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.986e-05/0.1293, allocations: 12.03 kB / 0.5012 GB, free: 14.16 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002008/0.1295, allocations: 202.4 kB / 0.5014 GB, free: 13.96 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008148/0.1303, allocations: 0.7629 MB / 0.5021 GB, free: 13.15 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.751e-05/0.1304, allocations: 82.47 kB / 0.5022 GB, free: 13.07 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001104/0.1305, allocations: 100.4 kB / 0.5023 GB, free: 12.97 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001518/0.132, allocations: 1.178 MB / 0.5034 GB, free: 11.72 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.327e-05/0.132, allocations: 4.125 kB / 0.5034 GB, free: 11.72 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.204e-05/0.1321, allocations: 43.94 kB / 0.5035 GB, free: 11.68 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.123e-05/0.1321, allocations: 28 kB / 0.5035 GB, free: 11.65 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001462/0.1336, allocations: 1.101 MB / 0.5046 GB, free: 10.54 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003905/0.1375, allocations: 3.662 MB / 0.5081 GB, free: 6.766 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001488/0.139, allocations: 1.373 MB / 0.5095 GB, free: 5.383 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005255/0.1396, allocations: 494.6 kB / 0.51 GB, free: 4.898 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.172e-05/0.1396, allocations: 28.86 kB / 0.51 GB, free: 4.871 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000691/0.1403, allocations: 0.5471 MB / 0.5105 GB, free: 4.309 MB / 398.1 MB Notification: Performance of pre-optimization done (n=72): time 2.505e-06/0.1404, allocations: 0 / 0.5105 GB, free: 4.309 MB / 398.1 MB Notification: Performance of matching and sorting (n=72): time 0.001935/0.1423, allocations: 1.574 MB / 0.5121 GB, free: 2.73 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.735e-05/0.1424, allocations: 64 kB / 0.5121 GB, free: 2.656 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00135/0.1437, allocations: 1.293 MB / 0.5134 GB, free: 1.355 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.002e-05/0.1438, allocations: 45.7 kB / 0.5134 GB, free: 1.305 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005354/0.1443, allocations: 0.7678 MB / 0.5142 GB, free: 0.5273 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001607/0.1445, allocations: 248.4 kB / 0.5144 GB, free: 288 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001488/0.1446, allocations: 118.6 kB / 0.5145 GB, free: 164 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.2459/0.3906, allocations: 336.8 kB / 0.5148 GB, free: 26.95 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007689/0.3914, allocations: 440.3 kB / 0.5153 GB, free: 26.95 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005768/0.392, allocations: 0.5508 MB / 0.5158 GB, free: 26.83 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001076/0.3931, allocations: 1.045 MB / 0.5168 GB, free: 26.73 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.3931, allocations: 1.5 kB / 0.5168 GB, free: 26.73 MB / 398.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.00146/0.3945, allocations: 1.223 MB / 0.518 GB, free: 26.68 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.082e-05/0.3946, allocations: 8.906 kB / 0.518 GB, free: 26.68 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.906e-06/0.3946, allocations: 7.875 kB / 0.518 GB, free: 26.68 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.083e-05/0.3946, allocations: 7.062 kB / 0.518 GB, free: 26.68 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004639/0.3951, allocations: 136.8 kB / 0.5182 GB, free: 26.68 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.785e-05/0.3951, allocations: 10.44 kB / 0.5182 GB, free: 26.68 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002579/0.3954, allocations: 59.34 kB / 0.5182 GB, free: 26.68 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.117e-05/0.3954, allocations: 32 kB / 0.5183 GB, free: 26.68 MB / 398.1 MB Warning: Assuming fixed start value for the following 2 variables: min_QL:DISCRETE(start = 1.0 fixed = true ) "Minimum quality of life" type: Real min_dPop:DISCRETE(unit = "1/yr" fixed = true ) "Minimal derivative of population" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$PRE.min_QL,$PRE.min_dPop,min_QL,min_dPop,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 (89): * Single equations (assignments): 89 * 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.0005009/0.3959, allocations: 381.3 kB / 0.5186 GB, free: 26.56 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001299/0.3961, allocations: 142.8 kB / 0.5188 GB, free: 26.56 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001515/0.3976, allocations: 1.237 MB / 0.52 GB, free: 26.49 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.255e-06/0.3976, allocations: 4.5 kB / 0.52 GB, free: 26.49 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.3976, allocations: 4.438 kB / 0.52 GB, free: 26.48 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002078/0.3978, allocations: 250.1 kB / 0.5202 GB, free: 26.36 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.456e-05/0.3979, allocations: 18.81 kB / 0.5202 GB, free: 26.36 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001925/0.3981, allocations: 13.38 kB / 0.5203 GB, free: 26.36 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.85e-05/0.3982, allocations: 43.55 kB / 0.5203 GB, free: 26.36 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001366/0.3996, allocations: 1.161 MB / 0.5214 GB, free: 26.23 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002095/0.4017, allocations: 2.022 MB / 0.5234 GB, free: 25.92 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005891/0.4023, allocations: 0.509 MB / 0.5239 GB, free: 25.91 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001103/0.4034, allocations: 0.8965 MB / 0.5248 GB, free: 25.8 MB / 398.1 MB Notification: Performance of Backend: time 4.51e-07/0.4034, allocations: 1.031 kB / 0.5248 GB, free: 25.8 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001197/0.4046, allocations: 0.6616 MB / 0.5254 GB, free: 25.74 MB / 398.1 MB Notification: Performance of SimCode: time 0.003256/0.4079, allocations: 2.908 MB / 0.5283 GB, free: 24.26 MB / 398.1 MB Notification: Performance of Templates: time 0.01682/0.4247, allocations: 7.872 MB / 0.536 GB, free: 23.21 MB / 398.1 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe 2>&1)