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.004951/0.004951, allocations: 102 kB / 15.73 MB, free: 6.051 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.001212/0.001212, allocations: 195 kB / 16.68 MB, free: 5.969 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.339/1.339, allocations: 222.9 MB / 240.4 MB, free: 4.18 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3257/0.3257, allocations: 28.81 MB / 319.3 MB, free: 5.57 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001239/0.001239, allocations: 65.72 kB / 443.9 MB, free: 36.72 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1244/0.1257, allocations: 56.42 MB / 0.4886 GB, free: 8.777 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_5): time 0.003683/0.1294, allocations: 3.243 MB / 0.4917 GB, free: 6.172 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001431/0.1308, allocations: 0.5414 MB / 0.4923 GB, free: 5.715 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003503/0.1312, allocations: 11.34 kB / 0.4923 GB, free: 5.715 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003143/0.1316, allocations: 143.1 kB / 0.4924 GB, free: 5.602 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003246/0.1319, allocations: 124.5 kB / 0.4925 GB, free: 5.516 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006325/0.1325, allocations: 283 kB / 0.4928 GB, free: 5.293 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006616/0.1332, allocations: 0.726 MB / 0.4935 GB, free: 4.848 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000779/0.134, allocations: 480 kB / 0.494 GB, free: 4.523 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003434/0.1344, allocations: 298.8 kB / 0.4943 GB, free: 4.32 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003273/0.1347, allocations: 391.6 kB / 0.4946 GB, free: 4 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001688/0.1349, allocations: 83.7 kB / 0.4947 GB, free: 3.988 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001921/0.1351, allocations: 104 kB / 0.4948 GB, free: 3.887 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002985/0.1354, allocations: 422.5 kB / 0.4952 GB, free: 3.473 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003387/0.1357, allocations: 0.5892 MB / 0.4958 GB, free: 2.879 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009002/0.1366, allocations: 1.131 MB / 0.4969 GB, free: 1.746 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.672e-06/0.1366, allocations: 0 / 0.4969 GB, free: 1.746 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.365e-06/0.1366, allocations: 0 / 0.4969 GB, free: 1.746 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.882e-05/0.1367, allocations: 4 kB / 0.4969 GB, free: 1.742 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.001676/0.1384, allocations: 1.718 MB / 0.4986 GB, free: 15.96 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.94e-05/0.1384, allocations: 8.031 kB / 0.4986 GB, free: 15.95 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002146/0.1386, allocations: 170.8 kB / 0.4987 GB, free: 15.78 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002713/0.1389, allocations: 198.5 kB / 0.4989 GB, free: 15.58 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004686/0.1394, allocations: 0.5586 MB / 0.4995 GB, free: 14.97 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.525e-05/0.1395, allocations: 78.39 kB / 0.4995 GB, free: 14.89 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001283/0.1396, allocations: 108.2 kB / 0.4997 GB, free: 14.79 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002465/0.1421, allocations: 1.095 MB / 0.5007 GB, free: 13.66 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.434e-05/0.1421, allocations: 3.938 kB / 0.5007 GB, free: 13.66 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.597e-05/0.1422, allocations: 40 kB / 0.5008 GB, free: 13.62 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.459e-05/0.1423, allocations: 58.16 kB / 0.5008 GB, free: 13.56 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002482/0.1448, allocations: 1.223 MB / 0.502 GB, free: 12.33 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006954/0.1518, allocations: 2.857 MB / 0.5048 GB, free: 9.398 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00233/0.1542, allocations: 0.9945 MB / 0.5058 GB, free: 8.391 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001161/0.1554, allocations: 0.5022 MB / 0.5063 GB, free: 7.887 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001242/0.1555, allocations: 28.55 kB / 0.5063 GB, free: 7.859 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.852e-05/0.1556, allocations: 39.12 kB / 0.5063 GB, free: 7.812 MB / 382.1 MB Notification: Performance of pre-optimization done (n=66): time 4.488e-06/0.1556, allocations: 0 / 0.5063 GB, free: 7.812 MB / 382.1 MB Notification: Performance of matching and sorting (n=66): time 0.003932/0.1595, allocations: 1.587 MB / 0.5079 GB, free: 6.219 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.445e-05/0.1596, allocations: 63.89 kB / 0.5079 GB, free: 6.145 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002225/0.1619, allocations: 1.254 MB / 0.5092 GB, free: 4.875 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.373e-05/0.1619, allocations: 33.7 kB / 0.5092 GB, free: 4.836 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009149/0.1629, allocations: 0.7936 MB / 0.51 GB, free: 4.031 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003246/0.1632, allocations: 232.6 kB / 0.5102 GB, free: 3.801 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002864/0.1635, allocations: 130.6 kB / 0.5103 GB, free: 3.668 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001991/0.1637, allocations: 338 kB / 0.5106 GB, free: 3.332 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001205/0.1649, allocations: 473.7 kB / 0.5111 GB, free: 2.867 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001446/0.1664, allocations: 0.652 MB / 0.5117 GB, free: 2.141 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007673/0.1741, allocations: 2.132 MB / 0.5138 GB, free: 15.93 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.46e-05/0.1742, allocations: 4 kB / 0.5138 GB, free: 15.93 MB / 398.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.003624/0.1778, allocations: 1.331 MB / 0.5151 GB, free: 14.59 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.926e-05/0.1779, allocations: 4 kB / 0.5151 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.771e-05/0.1779, allocations: 8.75 kB / 0.5151 GB, free: 14.58 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.372e-05/0.178, allocations: 11.94 kB / 0.5151 GB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001123/0.1791, allocations: 183.7 kB / 0.5153 GB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.827e-05/0.1791, allocations: 11.94 kB / 0.5153 GB, free: 14.38 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007983/0.18, allocations: 83.25 kB / 0.5154 GB, free: 14.29 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.203e-05/0.1801, allocations: 36 kB / 0.5154 GB, free: 14.26 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.001287/0.1814, allocations: 395.3 kB / 0.5158 GB, free: 13.86 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000301/0.1817, allocations: 138.2 kB / 0.5159 GB, free: 13.73 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003132/0.1848, allocations: 1.251 MB / 0.5172 GB, free: 12.46 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.288e-05/0.1849, allocations: 4 kB / 0.5172 GB, free: 12.46 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.138e-05/0.1849, allocations: 4 kB / 0.5172 GB, free: 12.45 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.403e-05/0.1849, allocations: 7.922 kB / 0.5172 GB, free: 12.45 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004988/0.1899, allocations: 2.378 MB / 0.5195 GB, free: 10 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.021e-06/0.19, allocations: 4 kB / 0.5195 GB, free: 10 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001014/0.191, allocations: 127.8 kB / 0.5196 GB, free: 9.875 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.079e-05/0.191, allocations: 0 / 0.5196 GB, free: 9.875 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.961e-05/0.1911, allocations: 19.98 kB / 0.5196 GB, free: 9.855 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.913e-06/0.1911, allocations: 0 / 0.5196 GB, free: 9.855 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.642e-06/0.1911, allocations: 4 kB / 0.5197 GB, free: 9.852 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004208/0.1953, allocations: 1.941 MB / 0.5215 GB, free: 7.891 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003107/0.1957, allocations: 195.3 kB / 0.5217 GB, free: 7.68 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001542/0.1958, allocations: 15.98 kB / 0.5217 GB, free: 7.664 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005067/0.1964, allocations: 27.98 kB / 0.5218 GB, free: 7.637 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001622/0.1965, allocations: 44.5 kB / 0.5218 GB, free: 7.59 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.573e-05/0.1966, allocations: 24 kB / 0.5218 GB, free: 7.566 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00194/0.1986, allocations: 0.8715 MB / 0.5227 GB, free: 6.695 MB / 398.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.1986, allocations: 0 / 0.5227 GB, free: 6.695 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001093/0.1997, allocations: 218.9 kB / 0.5229 GB, free: 6.48 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.004572/0.2043, allocations: 2.503 MB / 0.5253 GB, free: 3.953 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002688/0.207, allocations: 1.095 MB / 0.5264 GB, free: 2.859 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.232e-06/0.207, allocations: 4.062 kB / 0.5264 GB, free: 2.855 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001202/0.2082, allocations: 0.5458 MB / 0.527 GB, free: 2.309 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007889/0.209, allocations: 57.16 kB / 0.527 GB, free: 2.254 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02333/0.2324, allocations: 11.64 MB / 0.5384 GB, free: 6.352 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001153/0.2336, allocations: 1.299 MB / 0.5396 GB, free: 5.027 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003775/0.234, allocations: 128.5 kB / 0.5398 GB, free: 4.898 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006759/0.2347, allocations: 0.5813 MB / 0.5403 GB, free: 4.316 MB / 414.1 MB Notification: Performance of SimCode: time 1.423e-06/0.2347, allocations: 0 / 0.5403 GB, free: 4.316 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05033/0.285, allocations: 18.57 MB / 0.5585 GB, free: 1.797 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.27/10.55, allocations: 11.91 kB / 0.5585 GB, free: 1.785 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)