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.0013/0.0013, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001251/0.001251, allocations: 197.5 kB / 16.53 MB, free: 6.664 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.278/1.278, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2318/0.2318, allocations: 28.81 MB / 319.2 MB, free: 5.746 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001159/0.001159, allocations: 55.91 kB / 386.7 MB, free: 3.543 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2012/0.2024, allocations: 56.42 MB / 443.1 MB, free: 39.57 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_5): time 0.002893/0.2053, allocations: 3.246 MB / 446.4 MB, free: 37.55 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007968/0.2061, allocations: 0.537 MB / 446.9 MB, free: 37.36 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001958/0.2063, allocations: 11.56 kB / 446.9 MB, free: 37.36 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002116/0.2066, allocations: 148.3 kB / 447.1 MB, free: 37.27 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002392/0.2068, allocations: 115.7 kB / 447.2 MB, free: 37.21 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004101/0.2072, allocations: 295 kB / 447.5 MB, free: 37.19 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003786/0.2076, allocations: 0.713 MB / 448.2 MB, free: 37.12 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004167/0.208, allocations: 483 kB / 448.7 MB, free: 37 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001377/0.2082, allocations: 304.6 kB / 449 MB, free: 36.93 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001695/0.2084, allocations: 381.8 kB / 449.3 MB, free: 36.81 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.878e-05/0.2085, allocations: 77.09 kB / 449.4 MB, free: 36.81 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001336/0.2086, allocations: 104.6 kB / 449.5 MB, free: 36.8 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001868/0.2088, allocations: 432.9 kB / 449.9 MB, free: 36.62 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002062/0.209, allocations: 0.58 MB / 450.5 MB, free: 36.17 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004974/0.2095, allocations: 1.065 MB / 451.6 MB, free: 35.62 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.525e-06/0.2095, allocations: 0 / 451.6 MB, free: 35.62 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.2095, allocations: 0 / 451.6 MB, free: 35.62 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.596e-05/0.2095, allocations: 4 kB / 451.6 MB, free: 35.62 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.001353/0.2109, allocations: 1.716 MB / 453.3 MB, free: 34.41 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.745e-05/0.2109, allocations: 12.47 kB / 453.3 MB, free: 34.41 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001367/0.2111, allocations: 170.3 kB / 453.5 MB, free: 34.29 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001353/0.2112, allocations: 189.1 kB / 453.7 MB, free: 34.19 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002712/0.2115, allocations: 0.5741 MB / 454.2 MB, free: 33.7 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.399e-05/0.2115, allocations: 74.98 kB / 454.3 MB, free: 33.67 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.198e-05/0.2116, allocations: 97.53 kB / 454.4 MB, free: 33.64 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001124/0.2127, allocations: 1.094 MB / 455.5 MB, free: 33.27 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.013e-05/0.2128, allocations: 3.938 kB / 455.5 MB, free: 33.27 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.67e-05/0.2128, allocations: 39.66 kB / 455.5 MB, free: 33.23 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.187e-05/0.2129, allocations: 63.58 kB / 455.6 MB, free: 33.23 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001195/0.2141, allocations: 1.216 MB / 456.8 MB, free: 32.95 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002589/0.2167, allocations: 2.899 MB / 459.7 MB, free: 31.76 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009181/0.2176, allocations: 1.001 MB / 460.7 MB, free: 31.51 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004588/0.2181, allocations: 0.4956 MB / 461.2 MB, free: 31.39 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.494e-05/0.2181, allocations: 31.72 kB / 461.3 MB, free: 31.39 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.255e-05/0.2181, allocations: 42.06 kB / 461.3 MB, free: 31.34 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.014e-06/0.2182, allocations: 0 / 461.3 MB, free: 31.34 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.001539/0.2197, allocations: 1.594 MB / 462.9 MB, free: 30.92 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.353e-05/0.2197, allocations: 59.84 kB / 462.9 MB, free: 30.86 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008811/0.2206, allocations: 1.258 MB / 464.2 MB, free: 30.43 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.312e-05/0.2206, allocations: 33.7 kB / 464.2 MB, free: 30.39 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002882/0.2209, allocations: 0.7928 MB / 465 MB, free: 29.77 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.039e-05/0.221, allocations: 223.9 kB / 465.2 MB, free: 29.59 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001175/0.2212, allocations: 131.8 kB / 465.4 MB, free: 29.52 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.372e-05/0.2212, allocations: 333.1 kB / 465.7 MB, free: 29.21 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004761/0.2217, allocations: 484.2 kB / 466.2 MB, free: 29.11 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005142/0.2222, allocations: 0.6524 MB / 466.8 MB, free: 28.79 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003227/0.2254, allocations: 2.126 MB / 469 MB, free: 28.13 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.2255, allocations: 1.094 kB / 469 MB, free: 28.13 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001426/0.2269, allocations: 1.339 MB / 470.3 MB, free: 27.73 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.497e-05/0.2269, allocations: 6.906 kB / 470.3 MB, free: 27.73 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.817e-06/0.2269, allocations: 5.719 kB / 470.3 MB, free: 27.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.876e-05/0.227, allocations: 10 kB / 470.3 MB, free: 27.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004963/0.2275, allocations: 180.8 kB / 470.5 MB, free: 27.71 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.31e-05/0.2275, allocations: 16.77 kB / 470.5 MB, free: 27.71 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002754/0.2278, allocations: 85.08 kB / 470.6 MB, free: 27.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.517e-05/0.2278, allocations: 35.31 kB / 470.6 MB, free: 27.65 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.0004365/0.2283, allocations: 395 kB / 471 MB, free: 27.43 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001137/0.2284, allocations: 139.2 kB / 471.1 MB, free: 27.36 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001418/0.2298, allocations: 1.253 MB / 472.4 MB, free: 27 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.703e-06/0.2298, allocations: 10.75 kB / 472.4 MB, free: 27 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.2298, allocations: 0 / 472.4 MB, free: 27 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.163e-06/0.2298, allocations: 8.422 kB / 472.4 MB, free: 26.99 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002181/0.232, allocations: 2.369 MB / 474.8 MB, free: 26.14 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.232, allocations: 4 kB / 474.8 MB, free: 26.14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000445/0.2325, allocations: 124.5 kB / 474.9 MB, free: 26.13 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/0.2325, allocations: 5.844 kB / 474.9 MB, free: 26.12 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.837e-05/0.2325, allocations: 22.03 kB / 474.9 MB, free: 26.11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.436e-06/0.2325, allocations: 3.875 kB / 474.9 MB, free: 26.11 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2325, allocations: 0 / 474.9 MB, free: 26.11 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001822/0.2344, allocations: 1.94 MB / 476.9 MB, free: 25.5 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001072/0.2345, allocations: 199.7 kB / 477.1 MB, free: 25.32 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.902e-05/0.2346, allocations: 11 kB / 477.1 MB, free: 25.32 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002448/0.2348, allocations: 29.91 kB / 477.1 MB, free: 25.3 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.489e-05/0.2349, allocations: 46.08 kB / 477.2 MB, free: 25.3 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.117e-05/0.2349, allocations: 21.03 kB / 477.2 MB, free: 25.29 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007604/0.2357, allocations: 0.8732 MB / 478.1 MB, free: 24.99 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2357, allocations: 1.125 kB / 478.1 MB, free: 24.99 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004842/0.2362, allocations: 210.2 kB / 478.3 MB, free: 24.92 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.002027/0.2382, allocations: 2.509 MB / 480.8 MB, free: 23.77 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001431/0.2397, allocations: 1.124 MB / 481.9 MB, free: 23.52 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.2397, allocations: 0 / 481.9 MB, free: 23.52 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005914/0.2403, allocations: 0.5425 MB / 482.4 MB, free: 23.4 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004009/0.2407, allocations: 63.62 kB / 482.5 MB, free: 23.34 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01103/0.2517, allocations: 12.44 MB / 494.9 MB, free: 14.86 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006348/0.2524, allocations: 1.299 MB / 496.2 MB, free: 13.75 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000332/0.2527, allocations: 122.5 kB / 496.4 MB, free: 13.66 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004231/0.2532, allocations: 0.5804 MB / 496.9 MB, free: 13.13 MB / 366.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2532, allocations: 4 kB / 496.9 MB, free: 13.12 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4834/0.7366, allocations: 17.92 MB / 0.5028 GB, free: 13.36 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.42/13.16, allocations: 13.14 kB / 0.5028 GB, free: 13.35 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)