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: "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_5,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_5",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_5,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_5",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005093/0.005093, allocations: 97.56 kB / 15.73 MB, free: 6.039 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.001462/0.001462, allocations: 201.4 kB / 16.68 MB, free: 5.961 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.331/1.331, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2904/0.2904, allocations: 28.8 MB / 319.4 MB, free: 5.613 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001853/0.001853, allocations: 64.95 kB / 443.9 MB, free: 36.84 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09006/0.09193, allocations: 56.42 MB / 0.4886 GB, free: 8.863 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_5): time 0.003266/0.09523, allocations: 3.251 MB / 0.4917 GB, free: 6.246 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001029/0.09628, allocations: 0.5389 MB / 0.4923 GB, free: 5.793 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002353/0.09652, allocations: 14.94 kB / 0.4923 GB, free: 5.789 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002589/0.09679, allocations: 151.1 kB / 0.4924 GB, free: 5.668 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002825/0.09709, allocations: 116.3 kB / 0.4925 GB, free: 5.59 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004845/0.09758, allocations: 286.3 kB / 0.4928 GB, free: 5.363 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004912/0.09808, allocations: 0.7232 MB / 0.4935 GB, free: 4.922 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004923/0.09858, allocations: 487.1 kB / 0.494 GB, free: 4.59 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000194/0.09878, allocations: 298.6 kB / 0.4943 GB, free: 4.387 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002066/0.09899, allocations: 390 kB / 0.4946 GB, free: 4.035 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.897e-05/0.0991, allocations: 76 kB / 0.4947 GB, free: 3.961 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001524/0.09926, allocations: 99.97 kB / 0.4948 GB, free: 3.863 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002114/0.09947, allocations: 434.5 kB / 0.4952 GB, free: 3.438 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002373/0.09972, allocations: 0.5775 MB / 0.4958 GB, free: 2.855 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006914/0.1004, allocations: 1.146 MB / 0.4969 GB, free: 1.703 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.005e-06/0.1004, allocations: 0 / 0.4969 GB, free: 1.703 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.203e-06/0.1004, allocations: 0 / 0.4969 GB, free: 1.703 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.077e-05/0.1004, allocations: 4 kB / 0.4969 GB, free: 1.699 MB / 366.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.00159/0.102, allocations: 1.771 MB / 0.4986 GB, free: 15.87 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.926e-05/0.1021, allocations: 12.03 kB / 0.4987 GB, free: 15.86 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002162/0.1023, allocations: 174.8 kB / 0.4988 GB, free: 15.67 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002119/0.1025, allocations: 199.6 kB / 0.499 GB, free: 15.48 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005343/0.1031, allocations: 0.5793 MB / 0.4996 GB, free: 14.85 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.54e-05/0.1032, allocations: 78.39 kB / 0.4997 GB, free: 14.77 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001157/0.1033, allocations: 96.38 kB / 0.4997 GB, free: 14.68 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001714/0.105, allocations: 1.098 MB / 0.5008 GB, free: 13.55 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.66e-05/0.105, allocations: 7.938 kB / 0.5008 GB, free: 13.54 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.016e-05/0.1051, allocations: 40 kB / 0.5009 GB, free: 13.5 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-05/0.1052, allocations: 54.17 kB / 0.5009 GB, free: 13.45 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00185/0.107, allocations: 1.223 MB / 0.5021 GB, free: 12.21 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00402/0.1111, allocations: 2.866 MB / 0.5049 GB, free: 9.273 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001436/0.1125, allocations: 1.002 MB / 0.5059 GB, free: 8.258 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007157/0.1133, allocations: 0.4983 MB / 0.5064 GB, free: 7.758 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.55e-05/0.1133, allocations: 28.69 kB / 0.5064 GB, free: 7.73 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.361e-05/0.1134, allocations: 43.12 kB / 0.5064 GB, free: 7.68 MB / 382.1 MB Notification: Performance of pre-optimization done (n=66): time 2.114e-06/0.1134, allocations: 0 / 0.5064 GB, free: 7.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=66): time 0.002351/0.1157, allocations: 1.583 MB / 0.508 GB, free: 6.09 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.991e-05/0.1158, allocations: 63.97 kB / 0.508 GB, free: 6.016 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001438/0.1173, allocations: 1.262 MB / 0.5093 GB, free: 4.742 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.083e-05/0.1173, allocations: 37.7 kB / 0.5093 GB, free: 4.699 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006513/0.118, allocations: 0.7951 MB / 0.5101 GB, free: 3.895 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002033/0.1182, allocations: 245.9 kB / 0.5103 GB, free: 3.652 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001803/0.1184, allocations: 130.6 kB / 0.5105 GB, free: 3.52 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.1185, allocations: 337.9 kB / 0.5108 GB, free: 3.184 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007005/0.1192, allocations: 489.6 kB / 0.5112 GB, free: 2.703 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008373/0.1201, allocations: 0.6481 MB / 0.5119 GB, free: 1.98 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004329/0.1244, allocations: 2.128 MB / 0.514 GB, free: 15.78 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.1244, allocations: 0 / 0.514 GB, free: 15.78 MB / 398.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001948/0.1264, allocations: 1.344 MB / 0.5153 GB, free: 14.43 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.914e-05/0.1264, allocations: 8 kB / 0.5153 GB, free: 14.42 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/0.1264, allocations: 4 kB / 0.5153 GB, free: 14.41 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.352e-05/0.1265, allocations: 12 kB / 0.5153 GB, free: 14.4 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005942/0.1271, allocations: 179.7 kB / 0.5155 GB, free: 14.23 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.773e-05/0.1271, allocations: 11.94 kB / 0.5155 GB, free: 14.21 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000342/0.1274, allocations: 91.83 kB / 0.5156 GB, free: 14.12 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.569e-05/0.1275, allocations: 32 kB / 0.5156 GB, free: 14.09 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.0006278/0.1281, allocations: 402.2 kB / 0.516 GB, free: 13.7 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001661/0.1283, allocations: 147 kB / 0.5161 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001924/0.1302, allocations: 1.251 MB / 0.5173 GB, free: 12.29 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.004e-05/0.1303, allocations: 8 kB / 0.5173 GB, free: 12.28 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.1303, allocations: 0 / 0.5173 GB, free: 12.28 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.097e-06/0.1303, allocations: 3.984 kB / 0.5173 GB, free: 12.27 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00307/0.1334, allocations: 2.378 MB / 0.5197 GB, free: 9.832 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.1334, allocations: 0 / 0.5197 GB, free: 9.832 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005382/0.1339, allocations: 127.8 kB / 0.5198 GB, free: 9.707 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.811e-06/0.1339, allocations: 4 kB / 0.5198 GB, free: 9.703 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.065e-05/0.134, allocations: 16 kB / 0.5198 GB, free: 9.688 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.831e-06/0.134, allocations: 8 kB / 0.5198 GB, free: 9.68 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.134, allocations: 0 / 0.5198 GB, free: 9.68 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002554/0.1366, allocations: 1.946 MB / 0.5217 GB, free: 7.715 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001803/0.1367, allocations: 200 kB / 0.5219 GB, free: 7.5 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.657e-05/0.1368, allocations: 12.06 kB / 0.5219 GB, free: 7.488 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002691/0.1371, allocations: 23.97 kB / 0.5219 GB, free: 7.465 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001114/0.1372, allocations: 48.5 kB / 0.522 GB, free: 7.414 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.426e-05/0.1373, allocations: 27.88 kB / 0.522 GB, free: 7.387 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001064/0.1384, allocations: 0.8677 MB / 0.5229 GB, free: 6.52 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1384, allocations: 8 kB / 0.5229 GB, free: 6.512 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005751/0.1389, allocations: 215.2 kB / 0.5231 GB, free: 6.301 MB / 398.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.002922/0.1419, allocations: 2.519 MB / 0.5255 GB, free: 3.758 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001625/0.1435, allocations: 1.09 MB / 0.5266 GB, free: 2.668 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.1435, allocations: 0 / 0.5266 GB, free: 2.668 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000769/0.1443, allocations: 0.5468 MB / 0.5271 GB, free: 2.121 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004304/0.1447, allocations: 73.03 kB / 0.5272 GB, free: 2.051 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01577/0.1605, allocations: 11.68 MB / 0.5386 GB, free: 6.102 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001052/0.1616, allocations: 1.3 MB / 0.5399 GB, free: 4.777 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003555/0.162, allocations: 128.3 kB / 0.54 GB, free: 4.648 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007164/0.1627, allocations: 0.5891 MB / 0.5406 GB, free: 4.059 MB / 414.1 MB Notification: Performance of SimCode: time 2.594e-06/0.1627, allocations: 0 / 0.5406 GB, free: 4.059 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.325/2.487, allocations: 18.29 MB / 0.5584 GB, free: 1.816 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.76/18.25, allocations: 14.59 kB / 0.5585 GB, free: 1.805 MB / 430.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_5_fmu --startTime=0 --stopTime=233 --timeout=50 --tolerance=1e-10 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_5.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe 2>&1)