Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.conf.json 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) Running command: "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_3,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_3,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.005631/0.005631, allocations: 169.6 kB / 15.11 MB, free: 5.988 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.406/1.406, allocations: 223.2 MB / 239 MB, free: 1.785 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009092/0.0009091, allocations: 107.4 kB / 290.2 MB, free: 13.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1935/0.1935, allocations: 28.85 MB / 370.2 MB, free: 13.92 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003665/0.0003666, allocations: 8 kB / 438.2 MB, free: 70.67 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1196/0.12, allocations: 57.48 MB / 495.7 MB, free: 13.16 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3577/0.4778, allocations: 80.83 MB / 0.563 GB, free: 10.89 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000169/0.478, allocations: 68.22 kB / 0.5631 GB, free: 10.86 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03139/0.5094, allocations: 14.36 MB / 0.5771 GB, free: 14.72 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.874e-06/0.5094, allocations: 0 / 0.5771 GB, free: 14.72 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.086e-05/0.5095, allocations: 32 kB / 0.5771 GB, free: 14.69 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 263 * Number of variables: 263 Notification: Performance of Generate backend data structure: time 0.00208/0.5116, allocations: 1.609 MB / 0.5787 GB, free: 13.12 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.979e-05/0.5117, allocations: 12.03 kB / 0.5787 GB, free: 13.11 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002436/0.5119, allocations: 180.1 kB / 0.5789 GB, free: 12.99 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002272/0.5121, allocations: 201.4 kB / 0.5791 GB, free: 12.79 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001094/0.5132, allocations: 0.7705 MB / 0.5798 GB, free: 12.05 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.658e-05/0.5133, allocations: 79.88 kB / 0.5799 GB, free: 12.01 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001252/0.5134, allocations: 103.1 kB / 0.58 GB, free: 11.94 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001866/0.5153, allocations: 1.288 MB / 0.5812 GB, free: 10.93 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.103e-05/0.5153, allocations: 8 kB / 0.5813 GB, free: 10.93 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.134e-05/0.5154, allocations: 40.25 kB / 0.5813 GB, free: 10.92 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.71e-05/0.5155, allocations: 28 kB / 0.5813 GB, free: 10.89 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002069/0.5175, allocations: 1.278 MB / 0.5826 GB, free: 9.93 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005709/0.5233, allocations: 3.878 MB / 0.5864 GB, free: 6.621 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002104/0.5254, allocations: 1.57 MB / 0.5879 GB, free: 5.441 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.488e-05/0.5255, allocations: 28.64 kB / 0.5879 GB, free: 5.418 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.058e-05/0.5256, allocations: 42.81 kB / 0.588 GB, free: 5.371 MB / 378.7 MB Notification: Performance of pre-optimization done (n=68): time 3.457e-06/0.5256, allocations: 0 / 0.588 GB, free: 5.371 MB / 378.7 MB Notification: Performance of matching and sorting (n=68): time 0.002631/0.5282, allocations: 1.789 MB / 0.5897 GB, free: 3.977 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.037e-05/0.5283, allocations: 59.97 kB / 0.5898 GB, free: 3.906 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001484/0.5298, allocations: 1.107 MB / 0.5908 GB, free: 3.027 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.645e-05/0.5299, allocations: 42.89 kB / 0.5909 GB, free: 2.988 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005/0.5304, allocations: 0.7801 MB / 0.5916 GB, free: 2.559 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002094/0.5306, allocations: 234.1 kB / 0.5919 GB, free: 2.359 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.717e-05/0.5306, allocations: 14 kB / 0.5919 GB, free: 2.355 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001352/0.5308, allocations: 332.7 kB / 0.5922 GB, free: 2.035 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007672/0.5316, allocations: 0.5126 MB / 0.5927 GB, free: 1.648 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000794/0.5324, allocations: 0.6112 MB / 0.5933 GB, free: 1.145 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007645/0.5331, allocations: 0.5462 MB / 0.5938 GB, free: 0.7578 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.5331, allocations: 0 / 0.5938 GB, free: 0.7578 MB / 378.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.002004/0.5352, allocations: 1.364 MB / 0.5952 GB, free: 15.69 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.884e-05/0.5352, allocations: 8.312 kB / 0.5952 GB, free: 15.68 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.225e-05/0.5352, allocations: 8 kB / 0.5952 GB, free: 15.67 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.762e-05/0.5353, allocations: 7.984 kB / 0.5952 GB, free: 15.66 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005758/0.5359, allocations: 158.4 kB / 0.5953 GB, free: 15.52 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.655e-05/0.5359, allocations: 7.984 kB / 0.5953 GB, free: 15.51 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003498/0.5362, allocations: 48.83 kB / 0.5954 GB, free: 15.47 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001292/0.5364, allocations: 82.05 kB / 0.5955 GB, free: 15.4 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 5 (CIAF.Integrator1.local_reset,Pollution.Integrator1.local_reset,Capital_Investment.Integrator1.local_reset,Natural_Resources.Integrator1.local_reset,Population.Integrator1.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007609/0.5371, allocations: 372.3 kB / 0.5958 GB, free: 15.11 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002239/0.5374, allocations: 142.1 kB / 0.596 GB, free: 14.97 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002774/0.5402, allocations: 1.609 MB / 0.5975 GB, free: 13.74 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.618e-06/0.5402, allocations: 8 kB / 0.5975 GB, free: 13.73 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.5402, allocations: 0 / 0.5975 GB, free: 13.73 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.418e-06/0.5402, allocations: 3.984 kB / 0.5975 GB, free: 13.73 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003387/0.5436, allocations: 2.576 MB / 0.6001 GB, free: 11.7 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.997e-06/0.5436, allocations: 0 / 0.6001 GB, free: 11.7 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005668/0.5442, allocations: 135.3 kB / 0.6002 GB, free: 11.57 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.478e-06/0.5442, allocations: 4 kB / 0.6002 GB, free: 11.57 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.628e-05/0.5443, allocations: 31.36 kB / 0.6002 GB, free: 11.55 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.152e-06/0.5443, allocations: 4 kB / 0.6002 GB, free: 11.54 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.5443, allocations: 0 / 0.6002 GB, free: 11.54 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002777/0.5471, allocations: 2.222 MB / 0.6024 GB, free: 9.852 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000286/0.5474, allocations: 210.9 kB / 0.6026 GB, free: 9.629 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001033/0.5475, allocations: 10.69 kB / 0.6026 GB, free: 9.625 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002579/0.5478, allocations: 17.98 kB / 0.6026 GB, free: 9.617 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001212/0.5479, allocations: 47.88 kB / 0.6027 GB, free: 9.57 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001035/0.548, allocations: 70.09 kB / 0.6027 GB, free: 9.508 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001134/0.5492, allocations: 0.8814 MB / 0.6036 GB, free: 8.832 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5492, allocations: 0 / 0.6036 GB, free: 8.832 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006284/0.5498, allocations: 221.3 kB / 0.6038 GB, free: 8.633 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (Population.Integrator1.y,Natural_Resources.Integrator1.y,Capital_Investment.Integrator1.y,Pollution.Integrator1.y,CIAF.Integrator1.y) * 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 (68): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002323/0.5521, allocations: 2.444 MB / 0.6062 GB, free: 6.551 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001255/0.5534, allocations: 1.002 MB / 0.6072 GB, free: 5.738 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.5534, allocations: 0 / 0.6072 GB, free: 5.738 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005656/0.554, allocations: 0.5049 MB / 0.6077 GB, free: 5.332 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004982/0.5545, allocations: 80.33 kB / 0.6077 GB, free: 5.293 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01277/0.5673, allocations: 11.33 MB / 0.6188 GB, free: 9.629 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001061/0.5684, allocations: 1.343 MB / 0.6201 GB, free: 8.258 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003265/0.5687, allocations: 76.33 kB / 0.6202 GB, free: 8.18 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006473/0.5694, allocations: 0.5852 MB / 0.6208 GB, free: 7.594 MB / 410.7 MB Notification: Performance of SimCode: time 9.22e-07/0.5694, allocations: 4 kB / 0.6208 GB, free: 7.59 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05035/0.6198, allocations: 17.19 MB / 0.6376 GB, free: 6.5 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00029/0.6201, allocations: 180.2 kB / 0.6377 GB, free: 6.258 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.64/3.261, allocations: 0 / 0.6377 GB, free: 6.258 MB / 426.7 MB (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_3_fmu --startTime=1900 --stopTime=2100 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_3.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe 2>&1)