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/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_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/Complex 4.0.0+maint.om/package.mo): time 0.00098/0.00098, allocations: 174.7 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.481/1.481, allocations: 221.4 MB / 234.6 MB, free: 14.47 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.0009993/0.0009994, allocations: 94.3 kB / 285.6 MB, free: 13 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.4793/0.4793, allocations: 28.83 MB / 365.3 MB, free: 42.03 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.315e-05/3.338e-05, allocations: 0 / 430.8 MB, free: 4.352 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1436/0.1437, allocations: 57.48 MB / 488.2 MB, free: 10.8 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5094/0.6532, allocations: 80.21 MB / 0.5551 GB, free: 24.82 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002272/0.6535, allocations: 64.55 kB / 0.5552 GB, free: 24.8 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03407/0.6876, allocations: 12.31 MB / 0.5672 GB, free: 17.72 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.6876, allocations: 0 / 0.5672 GB, free: 17.72 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.281e-05/0.6877, allocations: 28 kB / 0.5672 GB, free: 17.69 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: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.003587/0.6913, allocations: 1.359 MB / 0.5686 GB, free: 16.45 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.655e-05/0.6914, allocations: 12.03 kB / 0.5686 GB, free: 16.43 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006568/0.692, allocations: 184.8 kB / 0.5687 GB, free: 16.3 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006164/0.6927, allocations: 193.5 kB / 0.5689 GB, free: 16.11 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007593/0.6935, allocations: 0.5071 MB / 0.5694 GB, free: 15.56 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001371/0.6936, allocations: 77.39 kB / 0.5695 GB, free: 15.51 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003332/0.6939, allocations: 96.5 kB / 0.5696 GB, free: 15.45 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002382/0.6963, allocations: 1.147 MB / 0.5707 GB, free: 14.59 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.426e-05/0.6964, allocations: 0 / 0.5707 GB, free: 14.59 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001003/0.6965, allocations: 41.88 kB / 0.5708 GB, free: 14.58 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.34e-05/0.6966, allocations: 58.16 kB / 0.5708 GB, free: 14.52 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002062/0.6986, allocations: 1.315 MB / 0.5721 GB, free: 13.54 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006113/0.7048, allocations: 3.062 MB / 0.5751 GB, free: 11.04 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00144/0.7062, allocations: 1.113 MB / 0.5762 GB, free: 10.2 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006015/0.7069, allocations: 0.5392 MB / 0.5767 GB, free: 9.801 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.939e-05/0.7069, allocations: 36.58 kB / 0.5767 GB, free: 9.77 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.889e-05/0.707, allocations: 35.06 kB / 0.5768 GB, free: 9.73 MB / 394.7 MB Notification: Performance of pre-optimization done (n=66): time 2.164e-06/0.707, allocations: 0 / 0.5768 GB, free: 9.73 MB / 394.7 MB Notification: Performance of matching and sorting (n=66): time 0.001577/0.7086, allocations: 1.254 MB / 0.578 GB, free: 8.723 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.281e-05/0.7086, allocations: 55.97 kB / 0.578 GB, free: 8.656 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001167/0.7098, allocations: 1.071 MB / 0.5791 GB, free: 7.797 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.012e-05/0.7098, allocations: 39.89 kB / 0.5791 GB, free: 7.762 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004795/0.7103, allocations: 0.7842 MB / 0.5799 GB, free: 7.305 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001749/0.7105, allocations: 231.6 kB / 0.5801 GB, free: 7.105 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.614e-05/0.7106, allocations: 16.75 kB / 0.5801 GB, free: 7.102 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.726e-05/0.7107, allocations: 332.2 kB / 0.5804 GB, free: 6.781 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006416/0.7113, allocations: 0.5121 MB / 0.5809 GB, free: 6.395 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000678/0.712, allocations: 0.6881 MB / 0.5816 GB, free: 5.773 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006771/0.7127, allocations: 0.573 MB / 0.5822 GB, free: 5.332 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.7127, allocations: 0 / 0.5822 GB, free: 5.332 MB / 394.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001744/0.7145, allocations: 1.446 MB / 0.5836 GB, free: 4.164 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.476e-05/0.7145, allocations: 11.95 kB / 0.5836 GB, free: 4.152 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.079e-05/0.7145, allocations: 4 kB / 0.5836 GB, free: 4.148 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.416e-05/0.7145, allocations: 12.75 kB / 0.5836 GB, free: 4.137 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006303/0.7152, allocations: 211.3 kB / 0.5838 GB, free: 3.934 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.898e-05/0.7152, allocations: 15.92 kB / 0.5838 GB, free: 3.918 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003507/0.7156, allocations: 83.58 kB / 0.5839 GB, free: 3.848 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001302/0.7157, allocations: 89.91 kB / 0.584 GB, free: 3.77 MB / 394.7 MB Warning: Assuming fixed start value for the following 6 variables: CIAF.level:VARIABLE(start = CIAF.x0 ) "Reversible state variable" type: Real Pollution.level:VARIABLE(start = Pollution.x0 ) "Reversible state variable" type: Real Capital_Investment.level:VARIABLE(start = Capital_Investment.x0 ) "Reversible state variable" type: Real Natural_Resources.level:VARIABLE(start = Natural_Resources.x0 ) "Reversible state variable" type: Real Population.level:VARIABLE(start = Population.x0 ) "Reversible state variable" type: Real years:VARIABLE(start = 1900.0 ) "Time in calendar years" 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002111/0.7159, allocations: 161.1 kB / 0.5842 GB, free: 3.629 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001534/0.7161, allocations: 134.2 kB / 0.5843 GB, free: 3.496 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002408/0.7185, allocations: 1.598 MB / 0.5858 GB, free: 2.25 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.728e-06/0.7185, allocations: 11.94 kB / 0.5859 GB, free: 2.238 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.074e-06/0.7185, allocations: 0 / 0.5859 GB, free: 2.238 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.904e-06/0.7185, allocations: 7.984 kB / 0.5859 GB, free: 2.23 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002875/0.7214, allocations: 2.502 MB / 0.5883 GB, free: 248 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.7214, allocations: 0 / 0.5883 GB, free: 248 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006067/0.7221, allocations: 155.6 kB / 0.5885 GB, free: 96 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.826e-06/0.7221, allocations: 7.984 kB / 0.5885 GB, free: 88 kB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.627e-05/0.7221, allocations: 26.75 kB / 0.5885 GB, free: 68 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.139e-06/0.7222, allocations: 7.984 kB / 0.5885 GB, free: 60 kB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.7222, allocations: 4 kB / 0.5885 GB, free: 56 kB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002766/0.7249, allocations: 2.165 MB / 0.5906 GB, free: 14.39 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002011/0.7252, allocations: 195.2 kB / 0.5908 GB, free: 14.18 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001034/0.7253, allocations: 18.02 kB / 0.5908 GB, free: 14.17 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002912/0.7256, allocations: 31.17 kB / 0.5908 GB, free: 14.15 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001488/0.7257, allocations: 59.48 kB / 0.5909 GB, free: 14.1 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001113/0.7258, allocations: 75.22 kB / 0.591 GB, free: 14.03 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001052/0.7269, allocations: 0.8405 MB / 0.5918 GB, free: 13.38 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.7269, allocations: 2.438 kB / 0.5918 GB, free: 13.38 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0006746/0.7276, allocations: 219.9 kB / 0.592 GB, free: 13.18 MB / 410.7 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 () * 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 (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.002203/0.7298, allocations: 2.41 MB / 0.5944 GB, free: 11.11 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001205/0.731, allocations: 1.009 MB / 0.5953 GB, free: 10.29 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.731, allocations: 0 / 0.5953 GB, free: 10.29 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005022/0.7315, allocations: 0.5136 MB / 0.5958 GB, free: 9.875 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003684/0.7319, allocations: 59.59 kB / 0.5959 GB, free: 9.852 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003958/0.7359, allocations: 2.486 MB / 0.5983 GB, free: 7.57 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009191/0.7368, allocations: 1.329 MB / 0.5996 GB, free: 6.258 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003787/0.7372, allocations: 120.6 kB / 0.5997 GB, free: 6.141 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005466/0.7378, allocations: 0.574 MB / 0.6003 GB, free: 6.043 MB / 410.7 MB Notification: Performance of SimCode: time 1.142e-06/0.7378, allocations: 0 / 0.6003 GB, free: 6.043 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03806/0.7758, allocations: 16.71 MB / 0.6166 GB, free: 5.473 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002215/0.7761, allocations: 155.8 kB / 0.6168 GB, free: 5.25 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.352/3.128, allocations: 0 / 0.6168 GB, free: 5.25 MB / 426.7 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/linux/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)