Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.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_4,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_4,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_4",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.001217/0.001217, allocations: 174.6 kB / 12.73 MB, free: 2.59 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.617/1.617, allocations: 221.4 MB / 234.6 MB, free: 14.45 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001078/0.001079, allocations: 92.47 kB / 285.6 MB, free: 13.01 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.4593/0.4593, allocations: 28.83 MB / 365.3 MB, free: 42.04 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.991e-05/4.003e-05, allocations: 4 kB / 430.8 MB, free: 4.348 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1503/0.1503, allocations: 57.47 MB / 488.2 MB, free: 10.8 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5122/0.6626, allocations: 80.83 MB / 0.5557 GB, free: 24.39 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001798/0.6629, allocations: 65.98 kB / 0.5558 GB, free: 24.36 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03596/0.6988, allocations: 14.56 MB / 0.57 GB, free: 15.34 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.6989, allocations: 0 / 0.57 GB, free: 15.34 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001257/0.699, allocations: 36 kB / 0.57 GB, free: 15.3 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 290 * Number of variables: 290 Notification: Performance of Generate backend data structure: time 0.002855/0.7019, allocations: 1.414 MB / 0.5714 GB, free: 13.94 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.371e-05/0.7019, allocations: 8.031 kB / 0.5714 GB, free: 13.93 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004824/0.7024, allocations: 199.5 kB / 0.5716 GB, free: 13.8 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000418/0.7028, allocations: 205.3 kB / 0.5718 GB, free: 13.59 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001265/0.7041, allocations: 0.7744 MB / 0.5726 GB, free: 12.85 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.068e-05/0.7042, allocations: 78.97 kB / 0.5726 GB, free: 12.8 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001637/0.7043, allocations: 108.6 kB / 0.5728 GB, free: 12.73 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001976/0.7063, allocations: 1.375 MB / 0.5741 GB, free: 11.66 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.895e-05/0.7064, allocations: 4.562 kB / 0.5741 GB, free: 11.66 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.108e-05/0.7065, allocations: 43.88 kB / 0.5741 GB, free: 11.65 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.319e-05/0.7065, allocations: 47.98 kB / 0.5742 GB, free: 11.61 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001876/0.7084, allocations: 1.35 MB / 0.5755 GB, free: 10.6 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005008/0.7134, allocations: 4.082 MB / 0.5795 GB, free: 7.109 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001787/0.7152, allocations: 1.58 MB / 0.581 GB, free: 5.902 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005827/0.7158, allocations: 0.5561 MB / 0.5816 GB, free: 5.492 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.032e-05/0.7159, allocations: 32.25 kB / 0.5816 GB, free: 5.461 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.713e-05/0.716, allocations: 40.88 kB / 0.5816 GB, free: 5.418 MB / 394.7 MB Notification: Performance of pre-optimization done (n=70): time 1.804e-06/0.716, allocations: 4 kB / 0.5817 GB, free: 5.414 MB / 394.7 MB Notification: Performance of matching and sorting (n=70): time 0.001561/0.7175, allocations: 1.289 MB / 0.5829 GB, free: 4.383 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.463e-05/0.7176, allocations: 85.67 kB / 0.583 GB, free: 4.281 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001175/0.7188, allocations: 1.162 MB / 0.5841 GB, free: 3.359 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.193e-05/0.7188, allocations: 37.98 kB / 0.5842 GB, free: 3.324 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004201/0.7193, allocations: 0.8468 MB / 0.585 GB, free: 2.836 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001642/0.7194, allocations: 245.5 kB / 0.5852 GB, free: 2.625 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.007e-05/0.7195, allocations: 17.69 kB / 0.5852 GB, free: 2.621 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 6.731e-05/0.7196, allocations: 339.2 kB / 0.5856 GB, free: 2.297 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005969/0.7202, allocations: 0.5371 MB / 0.5861 GB, free: 1.898 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007044/0.7209, allocations: 0.7799 MB / 0.5869 GB, free: 1.16 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006812/0.7216, allocations: 0.6081 MB / 0.5874 GB, free: 0.6953 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.458e-06/0.7216, allocations: 0 / 0.5874 GB, free: 0.6953 MB / 394.7 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.001933/0.7235, allocations: 1.546 MB / 0.589 GB, free: 15.44 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.584e-05/0.7235, allocations: 8 kB / 0.589 GB, free: 15.43 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.435e-05/0.7236, allocations: 8.906 kB / 0.589 GB, free: 15.43 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.477e-05/0.7236, allocations: 12 kB / 0.589 GB, free: 15.41 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006737/0.7243, allocations: 217.5 kB / 0.5892 GB, free: 15.21 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.299e-05/0.7243, allocations: 20.5 kB / 0.5892 GB, free: 15.19 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004386/0.7248, allocations: 81.75 kB / 0.5893 GB, free: 15.12 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001361/0.7249, allocations: 98.44 kB / 0.5894 GB, free: 15.04 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (109): * Single equations (assignments): 109 * 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.0001565/0.7251, allocations: 154.5 kB / 0.5895 GB, free: 14.9 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000188/0.7253, allocations: 146.1 kB / 0.5897 GB, free: 14.76 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002678/0.728, allocations: 1.642 MB / 0.5913 GB, free: 13.48 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.296e-06/0.728, allocations: 8 kB / 0.5913 GB, free: 13.48 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.728, allocations: 0 / 0.5913 GB, free: 13.48 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.145e-06/0.728, allocations: 3.984 kB / 0.5913 GB, free: 13.47 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003269/0.7313, allocations: 2.577 MB / 0.5938 GB, free: 11.44 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.985e-06/0.7313, allocations: 4.031 kB / 0.5938 GB, free: 11.43 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000573/0.7319, allocations: 150.8 kB / 0.5939 GB, free: 11.29 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.144e-05/0.7319, allocations: 4 kB / 0.5939 GB, free: 11.29 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.81e-05/0.732, allocations: 29.73 kB / 0.594 GB, free: 11.27 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.372e-06/0.732, allocations: 4 kB / 0.594 GB, free: 11.27 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/0.732, allocations: 0 / 0.594 GB, free: 11.27 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002739/0.7347, allocations: 2.305 MB / 0.5962 GB, free: 9.477 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002306/0.735, allocations: 207 kB / 0.5964 GB, free: 9.254 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001079/0.7351, allocations: 14.81 kB / 0.5964 GB, free: 9.25 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003055/0.7354, allocations: 14.75 kB / 0.5965 GB, free: 9.242 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001317/0.7356, allocations: 63.06 kB / 0.5965 GB, free: 9.188 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001111/0.7357, allocations: 75.23 kB / 0.5966 GB, free: 9.121 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001282/0.737, allocations: 0.9052 MB / 0.5975 GB, free: 8.43 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.737, allocations: 0 / 0.5975 GB, free: 8.43 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0008286/0.7378, allocations: 228.5 kB / 0.5977 GB, free: 8.227 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 70 * 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.002221/0.74, allocations: 2.603 MB / 0.6002 GB, free: 5.957 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001397/0.7414, allocations: 1.057 MB / 0.6013 GB, free: 5.102 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.7415, allocations: 1.984 kB / 0.6013 GB, free: 5.102 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004848/0.742, allocations: 0.5114 MB / 0.6018 GB, free: 4.691 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005737/0.7425, allocations: 88.69 kB / 0.6019 GB, free: 4.648 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004203/0.7467, allocations: 2.573 MB / 0.6044 GB, free: 2.293 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009095/0.7477, allocations: 1.363 MB / 0.6057 GB, free: 0.9375 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0004255/0.7481, allocations: 133 kB / 0.6058 GB, free: 0.8086 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006/0.7487, allocations: 0.6273 MB / 0.6064 GB, free: 0.6992 MB / 410.7 MB Notification: Performance of SimCode: time 1.102e-06/0.7487, allocations: 0 / 0.6064 GB, free: 0.6992 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03501/0.7837, allocations: 18.12 MB / 0.6241 GB, free: 14.7 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002518/0.784, allocations: 155.8 kB / 0.6243 GB, free: 14.47 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.644/3.428, allocations: 0 / 0.6243 GB, free: 14.47 MB / 442.7 MB (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_4_fmu --startTime=1900 --stopTime=2000 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_4.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe 2>&1)