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.001244/0.001244, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001292/0.001292, allocations: 195.2 kB / 16.14 MB, free: 6.66 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.258/1.258, allocations: 222.9 MB / 239.8 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2575/0.2575, allocations: 28.81 MB / 318.8 MB, free: 5.867 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001246, allocations: 59.91 kB / 386 MB, free: 3.98 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.226/0.2273, allocations: 56.42 MB / 442.4 MB, free: 39.76 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_5): time 0.002849/0.2301, allocations: 3.248 MB / 445.7 MB, free: 37.75 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001115/0.2313, allocations: 0.5388 MB / 446.2 MB, free: 37.56 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003988/0.2317, allocations: 11.75 kB / 446.2 MB, free: 37.56 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002559/0.2319, allocations: 103.5 kB / 446.3 MB, free: 37.52 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002438/0.2322, allocations: 82.27 kB / 446.4 MB, free: 37.5 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003677/0.2326, allocations: 243.3 kB / 446.7 MB, free: 37.48 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003705/0.233, allocations: 0.702 MB / 447.4 MB, free: 37.4 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004195/0.2334, allocations: 464.3 kB / 447.8 MB, free: 37.3 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001284/0.2335, allocations: 277.9 kB / 448.1 MB, free: 37.22 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000179/0.2337, allocations: 405.3 kB / 448.5 MB, free: 37.09 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.991e-05/0.2338, allocations: 53.62 kB / 448.5 MB, free: 37.09 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001267/0.2339, allocations: 77.16 kB / 448.6 MB, free: 37.09 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001978/0.2341, allocations: 409.7 kB / 449 MB, free: 37.01 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002073/0.2343, allocations: 0.5674 MB / 449.6 MB, free: 36.61 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004707/0.2348, allocations: 1.023 MB / 450.6 MB, free: 36.09 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.2348, allocations: 6.328 kB / 450.6 MB, free: 36.09 MB / 366.1 MB Notification: Performance of FrontEnd: time 7.32e-07/0.2348, allocations: 0 / 450.6 MB, free: 36.09 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.138e-05/0.2348, allocations: 0 / 450.6 MB, free: 36.09 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.001382/0.2362, allocations: 1.717 MB / 452.3 MB, free: 34.88 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.986e-05/0.2363, allocations: 8.75 kB / 452.3 MB, free: 34.88 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001372/0.2364, allocations: 179.2 kB / 452.5 MB, free: 34.75 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001331/0.2365, allocations: 188.1 kB / 452.7 MB, free: 34.65 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002672/0.2368, allocations: 0.571 MB / 453.3 MB, free: 34.17 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.247e-05/0.2369, allocations: 77.92 kB / 453.3 MB, free: 34.13 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.208e-05/0.2369, allocations: 98.31 kB / 453.4 MB, free: 34.1 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001159/0.2381, allocations: 1.089 MB / 454.5 MB, free: 33.73 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.89e-05/0.2381, allocations: 3.938 kB / 454.5 MB, free: 33.73 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.882e-05/0.2382, allocations: 46.14 kB / 454.6 MB, free: 33.7 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.924e-05/0.2382, allocations: 59.94 kB / 454.6 MB, free: 33.69 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001224/0.2395, allocations: 1.226 MB / 455.9 MB, free: 33.41 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002642/0.2421, allocations: 2.896 MB / 458.7 MB, free: 32.21 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009193/0.243, allocations: 0.995 MB / 459.7 MB, free: 31.97 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004515/0.2435, allocations: 0.5013 MB / 460.2 MB, free: 31.85 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.931e-05/0.2436, allocations: 28.22 kB / 460.3 MB, free: 31.85 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.554e-05/0.2436, allocations: 41.72 kB / 460.3 MB, free: 31.8 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 1.653e-06/0.2436, allocations: 0 / 460.3 MB, free: 31.8 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.001535/0.2451, allocations: 1.582 MB / 461.9 MB, free: 31.4 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.274e-05/0.2452, allocations: 68 kB / 462 MB, free: 31.33 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008838/0.2461, allocations: 1.256 MB / 463.2 MB, free: 30.89 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.346e-05/0.2461, allocations: 36.67 kB / 463.3 MB, free: 30.86 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002792/0.2464, allocations: 0.7851 MB / 464 MB, free: 30.24 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.939e-05/0.2465, allocations: 239.2 kB / 464.3 MB, free: 30.05 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001208/0.2466, allocations: 128.2 kB / 464.4 MB, free: 29.98 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.84e-05/0.2467, allocations: 336.5 kB / 464.7 MB, free: 29.67 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004724/0.2471, allocations: 476.4 kB / 465.2 MB, free: 29.57 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005239/0.2477, allocations: 0.6537 MB / 465.8 MB, free: 29.25 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003228/0.2509, allocations: 2.129 MB / 468 MB, free: 28.59 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.2509, allocations: 2.688 kB / 468 MB, free: 28.59 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00144/0.2524, allocations: 1.331 MB / 469.3 MB, free: 28.2 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.26e-05/0.2524, allocations: 11.06 kB / 469.3 MB, free: 28.2 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/0.2524, allocations: 5.562 kB / 469.3 MB, free: 28.2 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.401e-05/0.2524, allocations: 9.625 kB / 469.3 MB, free: 28.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004941/0.2529, allocations: 184.3 kB / 469.5 MB, free: 28.17 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.268e-05/0.2529, allocations: 17.2 kB / 469.5 MB, free: 28.17 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002724/0.2532, allocations: 81.45 kB / 469.6 MB, free: 28.12 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.417e-05/0.2533, allocations: 35.78 kB / 469.6 MB, free: 28.11 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.0004457/0.2537, allocations: 401.8 kB / 470 MB, free: 27.89 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001129/0.2538, allocations: 138.6 kB / 470.2 MB, free: 27.81 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001412/0.2553, allocations: 1.254 MB / 471.4 MB, free: 27.45 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.2553, allocations: 6.719 kB / 471.4 MB, free: 27.45 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.2553, allocations: 0 / 471.4 MB, free: 27.45 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.2553, allocations: 4.531 kB / 471.4 MB, free: 27.45 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00222/0.2575, allocations: 2.371 MB / 473.8 MB, free: 26.6 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.205e-06/0.2575, allocations: 0 / 473.8 MB, free: 26.6 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004306/0.258, allocations: 126.2 kB / 473.9 MB, free: 26.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.107e-06/0.258, allocations: 2.531 kB / 473.9 MB, free: 26.59 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.917e-05/0.258, allocations: 21.3 kB / 474 MB, free: 26.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.258, allocations: 6.656 kB / 474 MB, free: 26.57 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.258, allocations: 0 / 474 MB, free: 26.57 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00183/0.2599, allocations: 1.939 MB / 475.9 MB, free: 25.96 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001075/0.26, allocations: 200.4 kB / 476.1 MB, free: 25.79 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.64e-05/0.26, allocations: 10.94 kB / 476.1 MB, free: 25.78 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002244/0.2603, allocations: 26.23 kB / 476.1 MB, free: 25.77 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.656e-05/0.2604, allocations: 47.5 kB / 476.2 MB, free: 25.76 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.225e-05/0.2604, allocations: 23.94 kB / 476.2 MB, free: 25.75 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007742/0.2612, allocations: 0.8744 MB / 477.1 MB, free: 25.45 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2612, allocations: 7.938 kB / 477.1 MB, free: 25.44 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004878/0.2617, allocations: 210.9 kB / 477.3 MB, free: 25.37 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.002004/0.2637, allocations: 2.503 MB / 479.8 MB, free: 24.23 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001216/0.2649, allocations: 1.089 MB / 480.9 MB, free: 24 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.2649, allocations: 0 / 480.9 MB, free: 24 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005681/0.2655, allocations: 0.55 MB / 481.4 MB, free: 23.88 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003952/0.2659, allocations: 66.38 kB / 481.5 MB, free: 23.82 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0113/0.2772, allocations: 12.97 MB / 494.5 MB, free: 14.81 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006149/0.2778, allocations: 1.304 MB / 495.8 MB, free: 13.7 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003252/0.2782, allocations: 121.7 kB / 495.9 MB, free: 13.61 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004217/0.2786, allocations: 0.5845 MB / 496.5 MB, free: 13.08 MB / 366.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2786, allocations: 0 / 496.5 MB, free: 13.08 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.326/1.605, allocations: 17.49 MB / 0.5019 GB, free: 13.83 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001998/1.605, allocations: 193.4 kB / 0.5021 GB, free: 13.57 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.262/3.868, allocations: 0 / 0.5021 GB, free: 13.57 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)