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.001243/0.001243, allocations: 171.8 kB / 7.647 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.458/1.458, allocations: 221.5 MB / 229.6 MB, free: 7.562 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.001181/0.001181, allocations: 88.64 kB / 280.5 MB, free: 5.32 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2314/0.2314, allocations: 28.83 MB / 360.1 MB, free: 2.207 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.843e-05/1.847e-05, allocations: 0 / 423.9 MB, free: 32.1 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1373/0.1373, allocations: 57.5 MB / 481.4 MB, free: 6.73 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5068/0.6442, allocations: 80.15 MB / 0.5483 GB, free: 10.54 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002137/0.6445, allocations: 64.75 kB / 0.5484 GB, free: 10.54 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03219/0.6767, allocations: 14.46 MB / 0.5625 GB, free: 5.844 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.584e-06/0.6768, allocations: 0 / 0.5625 GB, free: 5.844 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.812e-05/0.6769, allocations: 34.69 kB / 0.5626 GB, free: 5.84 MB / 362.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.001751/0.6786, allocations: 1.418 MB / 0.564 GB, free: 4.824 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.181e-05/0.6787, allocations: 15.45 kB / 0.564 GB, free: 4.82 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002541/0.6789, allocations: 205.3 kB / 0.5642 GB, free: 4.707 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009864/0.6799, allocations: 0.7715 MB / 0.5649 GB, free: 4.23 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.862e-05/0.68, allocations: 34.59 kB / 0.5649 GB, free: 4.23 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001275/0.6801, allocations: 64.91 kB / 0.565 GB, free: 4.227 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001758/0.6819, allocations: 1.276 MB / 0.5663 GB, free: 4.008 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001622/0.6835, allocations: 1.207 MB / 0.5674 GB, free: 3.598 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.412e-05/0.6835, allocations: 3.938 kB / 0.5674 GB, free: 3.594 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.281e-05/0.6836, allocations: 0 / 0.5674 GB, free: 3.594 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.612e-05/0.6837, allocations: 50.59 kB / 0.5675 GB, free: 3.586 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004968/0.6887, allocations: 3.866 MB / 0.5713 GB, free: 1.43 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001845/0.6905, allocations: 1.543 MB / 0.5728 GB, free: 1.051 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005825/0.6911, allocations: 0.5332 MB / 0.5733 GB, free: 0.6562 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001084/0.6913, allocations: 39.25 kB / 0.5733 GB, free: 0.625 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.161e-05/0.6913, allocations: 42.44 kB / 0.5734 GB, free: 0.5742 MB / 362.7 MB Notification: Performance of pre-optimization done (n=70): time 3.918e-06/0.6913, allocations: 0 / 0.5734 GB, free: 0.5742 MB / 362.7 MB Notification: Performance of matching and sorting (n=70): time 0.002055/0.6934, allocations: 1.27 MB / 0.5746 GB, free: 15.55 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.701e-05/0.6935, allocations: 88.92 kB / 0.5747 GB, free: 15.45 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001394/0.6949, allocations: 1.063 MB / 0.5757 GB, free: 14.62 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.375e-05/0.6949, allocations: 25.7 kB / 0.5758 GB, free: 14.59 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006483/0.6956, allocations: 0.8275 MB / 0.5766 GB, free: 14.1 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002309/0.6958, allocations: 236 kB / 0.5768 GB, free: 13.9 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.054e-05/0.6959, allocations: 0 / 0.5768 GB, free: 13.9 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.00016/0.6961, allocations: 340 kB / 0.5771 GB, free: 13.57 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00071/0.6968, allocations: 0.5186 MB / 0.5776 GB, free: 13.19 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009004/0.6977, allocations: 0.7535 MB / 0.5784 GB, free: 12.48 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00107/0.6988, allocations: 0.6098 MB / 0.579 GB, free: 12.02 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.825e-06/0.6988, allocations: 4 kB / 0.579 GB, free: 12.01 MB / 378.7 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.002371/0.7011, allocations: 1.489 MB / 0.5804 GB, free: 10.79 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.54e-05/0.7012, allocations: 12.03 kB / 0.5804 GB, free: 10.78 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.061e-05/0.7012, allocations: 8 kB / 0.5804 GB, free: 10.77 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.621e-05/0.7013, allocations: 19.94 kB / 0.5804 GB, free: 10.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007388/0.702, allocations: 202.7 kB / 0.5806 GB, free: 10.56 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.571e-05/0.702, allocations: 19.92 kB / 0.5807 GB, free: 10.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004132/0.7025, allocations: 59.22 kB / 0.5807 GB, free: 10.48 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001572/0.7026, allocations: 98.34 kB / 0.5808 GB, free: 10.4 MB / 378.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.000197/0.7028, allocations: 124.7 kB / 0.5809 GB, free: 10.27 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002027/0.7049, allocations: 1.276 MB / 0.5822 GB, free: 9.242 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001923/0.7051, allocations: 142.1 kB / 0.5823 GB, free: 9.102 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003055/0.7081, allocations: 1.604 MB / 0.5839 GB, free: 7.84 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.119e-05/0.7082, allocations: 8 kB / 0.5839 GB, free: 7.832 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.584e-06/0.7082, allocations: 4.031 kB / 0.5839 GB, free: 7.828 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.061e-05/0.7082, allocations: 7.984 kB / 0.5839 GB, free: 7.82 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003708/0.7119, allocations: 2.42 MB / 0.5863 GB, free: 5.918 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.518e-06/0.7119, allocations: 4 kB / 0.5863 GB, free: 5.914 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006029/0.7125, allocations: 143.6 kB / 0.5864 GB, free: 5.777 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.267e-05/0.7126, allocations: 4 kB / 0.5864 GB, free: 5.773 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.738e-05/0.7126, allocations: 19.62 kB / 0.5864 GB, free: 5.758 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.735e-06/0.7126, allocations: 7.984 kB / 0.5864 GB, free: 5.75 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.7126, allocations: 0 / 0.5864 GB, free: 5.75 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003294/0.7159, allocations: 2.277 MB / 0.5887 GB, free: 3.973 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002213/0.7162, allocations: 199.1 kB / 0.5888 GB, free: 3.758 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001317/0.7163, allocations: 7.562 kB / 0.5889 GB, free: 3.754 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003048/0.7166, allocations: 7.984 kB / 0.5889 GB, free: 3.746 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001351/0.7168, allocations: 55.75 kB / 0.5889 GB, free: 3.695 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001269/0.7169, allocations: 86.72 kB / 0.589 GB, free: 3.617 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001387/0.7183, allocations: 0.8158 MB / 0.5898 GB, free: 3.012 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.7183, allocations: 0 / 0.5898 GB, free: 3.012 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009273/0.7193, allocations: 202.9 kB / 0.59 GB, free: 2.812 MB / 378.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.002992/0.7223, allocations: 2.577 MB / 0.5925 GB, free: 0.5547 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001526/0.7238, allocations: 1.012 MB / 0.5935 GB, free: 15.74 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.7238, allocations: 0 / 0.5935 GB, free: 15.74 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005993/0.7244, allocations: 0.4902 MB / 0.594 GB, free: 15.35 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005829/0.725, allocations: 71.11 kB / 0.594 GB, free: 15.32 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005405/0.7304, allocations: 2.492 MB / 0.5965 GB, free: 13.01 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001385/0.7318, allocations: 1.364 MB / 0.5978 GB, free: 11.65 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0005155/0.7324, allocations: 132.9 kB / 0.5979 GB, free: 11.52 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007931/0.7332, allocations: 0.6188 MB / 0.5985 GB, free: 11.26 MB / 394.7 MB Notification: Performance of SimCode: time 9.72e-07/0.7332, allocations: 0 / 0.5985 GB, free: 11.26 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05117/0.7844, allocations: 17.35 MB / 0.6155 GB, free: 9.895 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002305/0.7847, allocations: 136.5 kB / 0.6156 GB, free: 9.699 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.592/3.376, allocations: 0 / 0.6156 GB, free: 9.699 MB / 410.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)