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.001346/0.001346, allocations: 107.3 kB / 15.33 MB, free: 0.5078 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.001552/0.001552, allocations: 193.5 kB / 16.25 MB, free: 6.145 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.283/1.283, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2452/0.2452, allocations: 28.81 MB / 318.9 MB, free: 5.871 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001111/0.001112, allocations: 55.91 kB / 386.2 MB, free: 3.879 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2178/0.2189, allocations: 56.42 MB / 442.6 MB, free: 39.6 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_5): time 0.002974/0.2219, allocations: 3.254 MB / 445.9 MB, free: 37.59 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008327/0.2228, allocations: 0.5243 MB / 446.4 MB, free: 37.41 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002135/0.223, allocations: 11.56 kB / 446.4 MB, free: 37.41 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002204/0.2232, allocations: 110.3 kB / 446.5 MB, free: 37.36 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002499/0.2235, allocations: 81.62 kB / 446.6 MB, free: 37.34 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004208/0.2239, allocations: 244.2 kB / 446.8 MB, free: 37.32 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004223/0.2243, allocations: 0.7381 MB / 447.6 MB, free: 37.25 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004499/0.2248, allocations: 480.8 kB / 448 MB, free: 37.14 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001409/0.2249, allocations: 300.7 kB / 448.3 MB, free: 37.06 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001956/0.2251, allocations: 422.6 kB / 448.8 MB, free: 36.93 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.321e-05/0.2252, allocations: 80.22 kB / 448.8 MB, free: 36.93 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001309/0.2254, allocations: 104.2 kB / 448.9 MB, free: 36.93 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002116/0.2256, allocations: 441.3 kB / 449.4 MB, free: 36.79 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000221/0.2258, allocations: 0.5738 MB / 449.9 MB, free: 36.35 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000541/0.2264, allocations: 1.063 MB / 451 MB, free: 35.8 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.2264, allocations: 7.875 kB / 451 MB, free: 35.79 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.2264, allocations: 7 kB / 451 MB, free: 35.79 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.385e-05/0.2264, allocations: 0 / 451 MB, free: 35.79 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.001451/0.2279, allocations: 1.714 MB / 452.7 MB, free: 34.59 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.168e-05/0.2279, allocations: 8.656 kB / 452.7 MB, free: 34.59 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001429/0.228, allocations: 173 kB / 452.9 MB, free: 34.47 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001421/0.2282, allocations: 190.5 kB / 453.1 MB, free: 34.37 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002922/0.2285, allocations: 0.5663 MB / 453.7 MB, free: 33.88 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.449e-05/0.2285, allocations: 78.58 kB / 453.7 MB, free: 33.84 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.111e-05/0.2286, allocations: 97.97 kB / 453.8 MB, free: 33.81 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001263/0.2299, allocations: 1.094 MB / 454.9 MB, free: 33.45 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.437e-05/0.2299, allocations: 3.938 kB / 454.9 MB, free: 33.45 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.018e-05/0.23, allocations: 44.73 kB / 455 MB, free: 33.41 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.169e-05/0.23, allocations: 60.56 kB / 455 MB, free: 33.4 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001277/0.2313, allocations: 1.222 MB / 456.3 MB, free: 33.12 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002785/0.2341, allocations: 2.892 MB / 459.1 MB, free: 31.94 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009605/0.2351, allocations: 1.002 MB / 460.1 MB, free: 31.69 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004758/0.2356, allocations: 0.4961 MB / 460.6 MB, free: 31.57 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.612e-05/0.2356, allocations: 36.38 kB / 460.7 MB, free: 31.56 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.348e-05/0.2357, allocations: 37.72 kB / 460.7 MB, free: 31.52 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 1.983e-06/0.2357, allocations: 0 / 460.7 MB, free: 31.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.001613/0.2373, allocations: 1.594 MB / 462.3 MB, free: 31.1 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.098e-05/0.2373, allocations: 58.41 kB / 462.4 MB, free: 31.04 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000918/0.2382, allocations: 1.261 MB / 463.6 MB, free: 30.61 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.028e-05/0.2383, allocations: 36.55 kB / 463.7 MB, free: 30.57 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003075/0.2386, allocations: 0.7863 MB / 464.4 MB, free: 29.95 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.308e-05/0.2387, allocations: 226.7 kB / 464.7 MB, free: 29.77 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001277/0.2388, allocations: 129.2 kB / 464.8 MB, free: 29.7 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.914e-05/0.2389, allocations: 340.2 kB / 465.1 MB, free: 29.38 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004957/0.2394, allocations: 478 kB / 465.6 MB, free: 29.29 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005347/0.2399, allocations: 0.6549 MB / 466.3 MB, free: 28.96 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003383/0.2433, allocations: 2.125 MB / 468.4 MB, free: 28.3 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.2433, allocations: 6.312 kB / 468.4 MB, free: 28.3 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001514/0.2449, allocations: 1.331 MB / 469.7 MB, free: 27.91 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/0.2449, allocations: 7.719 kB / 469.7 MB, free: 27.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.798e-06/0.2449, allocations: 5.812 kB / 469.7 MB, free: 27.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.92e-05/0.2449, allocations: 14.16 kB / 469.7 MB, free: 27.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005246/0.2455, allocations: 184.5 kB / 469.9 MB, free: 27.88 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.407e-05/0.2455, allocations: 13.75 kB / 469.9 MB, free: 27.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002966/0.2458, allocations: 84 kB / 470 MB, free: 27.83 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.621e-05/0.2458, allocations: 32.41 kB / 470 MB, free: 27.82 MB / 366.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.0004518/0.2463, allocations: 401.9 kB / 470.4 MB, free: 27.6 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001194/0.2464, allocations: 135.9 kB / 470.6 MB, free: 27.53 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001488/0.2479, allocations: 1.258 MB / 471.8 MB, free: 27.16 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.512e-06/0.2479, allocations: 5.969 kB / 471.8 MB, free: 27.16 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.2479, allocations: 0 / 471.8 MB, free: 27.16 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.113e-06/0.2479, allocations: 4.578 kB / 471.8 MB, free: 27.16 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002294/0.2502, allocations: 2.376 MB / 474.2 MB, free: 26.31 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.564e-06/0.2503, allocations: 0 / 474.2 MB, free: 26.31 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004768/0.2507, allocations: 125.3 kB / 474.3 MB, free: 26.3 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.558e-06/0.2508, allocations: 2.5 kB / 474.3 MB, free: 26.3 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.394e-05/0.2508, allocations: 21.05 kB / 474.4 MB, free: 26.29 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.587e-06/0.2508, allocations: 2.281 kB / 474.4 MB, free: 26.29 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.2508, allocations: 0.9688 kB / 474.4 MB, free: 26.29 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001886/0.2527, allocations: 1.938 MB / 476.3 MB, free: 25.68 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001169/0.2528, allocations: 204.5 kB / 476.5 MB, free: 25.5 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.427e-05/0.2529, allocations: 15.16 kB / 476.5 MB, free: 25.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002441/0.2532, allocations: 24.95 kB / 476.5 MB, free: 25.48 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.05e-05/0.2533, allocations: 47.64 kB / 476.6 MB, free: 25.47 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.284e-05/0.2533, allocations: 20.84 kB / 476.6 MB, free: 25.46 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007872/0.2541, allocations: 0.8716 MB / 477.5 MB, free: 25.16 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2541, allocations: 0 / 477.5 MB, free: 25.16 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005207/0.2546, allocations: 211.8 kB / 477.7 MB, free: 25.09 MB / 366.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.002099/0.2567, allocations: 2.506 MB / 480.2 MB, free: 23.94 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001465/0.2582, allocations: 1.124 MB / 481.3 MB, free: 23.69 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.2582, allocations: 0 / 481.3 MB, free: 23.69 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006035/0.2588, allocations: 0.5431 MB / 481.9 MB, free: 23.58 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004326/0.2593, allocations: 63.53 kB / 481.9 MB, free: 23.52 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01202/0.2713, allocations: 12.98 MB / 494.9 MB, free: 14.43 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006774/0.272, allocations: 1.307 MB / 496.2 MB, free: 13.31 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003576/0.2724, allocations: 117.1 kB / 496.3 MB, free: 13.23 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004652/0.2728, allocations: 0.5808 MB / 496.9 MB, free: 12.7 MB / 366.1 MB Notification: Performance of SimCode: time 4.4e-07/0.2728, allocations: 3.938 kB / 496.9 MB, free: 12.7 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2835/0.5564, allocations: 17.72 MB / 0.5026 GB, free: 13.29 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002549/0.5566, allocations: 199.7 kB / 0.5028 GB, free: 13.04 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.104/2.66, allocations: 4 kB / 0.5028 GB, free: 13.03 MB / 382.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)