Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.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_2,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_2,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_2",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.009588/0.009587, allocations: 170.6 kB / 15.11 MB, free: 5.973 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.53/1.53, allocations: 223.2 MB / 239 MB, free: 1.812 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.0009887/0.0009887, allocations: 95.86 kB / 290.2 MB, free: 13.97 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1934/0.1934, allocations: 28.85 MB / 370.2 MB, free: 13.96 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003636/0.0003639, allocations: 11.98 kB / 438.2 MB, free: 70.73 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.1134, allocations: 57.48 MB / 495.7 MB, free: 13.21 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3626/0.4761, allocations: 80.81 MB / 0.563 GB, free: 11 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000205/0.4763, allocations: 62.16 kB / 0.563 GB, free: 10.97 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03211/0.5084, allocations: 14.34 MB / 0.577 GB, free: 14.89 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.324e-06/0.5085, allocations: 0 / 0.577 GB, free: 14.89 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001164/0.5086, allocations: 28 kB / 0.5771 GB, free: 14.86 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.00322/0.5118, allocations: 1.613 MB / 0.5786 GB, free: 13.29 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.206e-05/0.5119, allocations: 12.02 kB / 0.5787 GB, free: 13.28 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000443/0.5124, allocations: 177.5 kB / 0.5788 GB, free: 13.16 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004321/0.5128, allocations: 197.5 kB / 0.579 GB, free: 12.96 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001514/0.5143, allocations: 0.7753 MB / 0.5798 GB, free: 12.22 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001206/0.5145, allocations: 74.11 kB / 0.5798 GB, free: 12.18 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001856/0.5147, allocations: 113.6 kB / 0.5799 GB, free: 12.11 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001973/0.5166, allocations: 1.276 MB / 0.5812 GB, free: 11.11 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.242e-05/0.5167, allocations: 0 / 0.5812 GB, free: 11.11 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.594e-05/0.5168, allocations: 40.75 kB / 0.5812 GB, free: 11.1 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.619e-05/0.5168, allocations: 31.98 kB / 0.5813 GB, free: 11.07 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002075/0.5189, allocations: 1.27 MB / 0.5825 GB, free: 10.11 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005477/0.5244, allocations: 3.876 MB / 0.5863 GB, free: 6.805 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0022/0.5266, allocations: 1.569 MB / 0.5878 GB, free: 5.621 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.723e-05/0.5267, allocations: 24.36 kB / 0.5878 GB, free: 5.602 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.215e-05/0.5267, allocations: 42.62 kB / 0.5879 GB, free: 5.555 MB / 378.7 MB Notification: Performance of pre-optimization done (n=67): time 2.766e-06/0.5267, allocations: 0 / 0.5879 GB, free: 5.555 MB / 378.7 MB Notification: Performance of matching and sorting (n=67): time 0.002571/0.5293, allocations: 1.775 MB / 0.5896 GB, free: 4.172 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.491e-05/0.5294, allocations: 67.47 kB / 0.5897 GB, free: 4.098 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00151/0.5309, allocations: 1.107 MB / 0.5908 GB, free: 3.219 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.96e-05/0.531, allocations: 32.83 kB / 0.5908 GB, free: 3.188 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005254/0.5315, allocations: 0.7789 MB / 0.5916 GB, free: 2.762 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001811/0.5317, allocations: 227.1 kB / 0.5918 GB, free: 2.566 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.681e-05/0.5318, allocations: 14.31 kB / 0.5918 GB, free: 2.562 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001308/0.5319, allocations: 334.2 kB / 0.5921 GB, free: 2.242 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007631/0.5327, allocations: 0.5055 MB / 0.5926 GB, free: 1.863 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008418/0.5335, allocations: 0.6086 MB / 0.5932 GB, free: 1.363 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008459/0.5344, allocations: 0.5398 MB / 0.5937 GB, free: 0.9805 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.518e-06/0.5344, allocations: 0 / 0.5937 GB, free: 0.9805 MB / 378.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.002155/0.5366, allocations: 1.372 MB / 0.5951 GB, free: 15.9 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.613e-05/0.5366, allocations: 4 kB / 0.5951 GB, free: 15.9 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.239e-05/0.5366, allocations: 4 kB / 0.5951 GB, free: 15.89 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.999e-05/0.5367, allocations: 4 kB / 0.5951 GB, free: 15.89 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005629/0.5372, allocations: 158.6 kB / 0.5952 GB, free: 15.74 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.11e-05/0.5373, allocations: 15.92 kB / 0.5952 GB, free: 15.73 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000308/0.5376, allocations: 53.31 kB / 0.5953 GB, free: 15.68 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001334/0.5377, allocations: 70.92 kB / 0.5954 GB, free: 15.62 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 (82): * Single equations (assignments): 82 * 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.0007329/0.5385, allocations: 377.3 kB / 0.5957 GB, free: 15.32 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000193/0.5387, allocations: 138.2 kB / 0.5958 GB, free: 15.19 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002624/0.5413, allocations: 1.603 MB / 0.5974 GB, free: 13.96 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.334e-06/0.5413, allocations: 4 kB / 0.5974 GB, free: 13.96 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.969e-06/0.5413, allocations: 0 / 0.5974 GB, free: 13.96 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.667e-06/0.5413, allocations: 11.92 kB / 0.5974 GB, free: 13.95 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003828/0.5452, allocations: 2.559 MB / 0.5999 GB, free: 11.93 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.5452, allocations: 0 / 0.5999 GB, free: 11.93 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000605/0.5458, allocations: 139.7 kB / 0.6001 GB, free: 11.8 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.554e-05/0.5458, allocations: 4 kB / 0.6001 GB, free: 11.8 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.922e-05/0.5459, allocations: 30.92 kB / 0.6001 GB, free: 11.78 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.079e-06/0.5459, allocations: 0 / 0.6001 GB, free: 11.78 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.209e-06/0.546, allocations: 4 kB / 0.6001 GB, free: 11.77 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003192/0.5492, allocations: 2.208 MB / 0.6023 GB, free: 10.09 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004134/0.5496, allocations: 206.4 kB / 0.6025 GB, free: 9.875 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001065/0.5497, allocations: 10.44 kB / 0.6025 GB, free: 9.871 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002382/0.55, allocations: 12.69 kB / 0.6025 GB, free: 9.867 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001336/0.5501, allocations: 54.17 kB / 0.6025 GB, free: 9.816 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001234/0.5502, allocations: 70.84 kB / 0.6026 GB, free: 9.754 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001359/0.5516, allocations: 0.8791 MB / 0.6035 GB, free: 9.078 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5516, allocations: 0 / 0.6035 GB, free: 9.078 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007996/0.5524, allocations: 223 kB / 0.6037 GB, free: 8.879 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 (67): * Single equations (assignments): 67 * 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.002689/0.5551, allocations: 2.438 MB / 0.606 GB, free: 6.805 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001297/0.5564, allocations: 0.983 MB / 0.607 GB, free: 6.008 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.5564, allocations: 0 / 0.607 GB, free: 6.008 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005542/0.557, allocations: 0.5086 MB / 0.6075 GB, free: 5.598 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005203/0.5575, allocations: 74.11 kB / 0.6076 GB, free: 5.57 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01275/0.5703, allocations: 11.33 MB / 0.6186 GB, free: 9.895 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009884/0.5714, allocations: 1.347 MB / 0.6199 GB, free: 8.52 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.000266/0.5716, allocations: 80.23 kB / 0.62 GB, free: 8.441 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006033/0.5723, allocations: 0.5891 MB / 0.6206 GB, free: 7.852 MB / 410.7 MB Notification: Performance of SimCode: time 5.71e-07/0.5723, allocations: 3.938 kB / 0.6206 GB, free: 7.848 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03718/0.6095, allocations: 17.19 MB / 0.6374 GB, free: 6.754 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002078/0.6097, allocations: 178.2 kB / 0.6376 GB, free: 6.512 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.618/3.228, allocations: 0 / 0.6376 GB, free: 6.512 MB / 426.7 MB (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_2_fmu --startTime=1900 --stopTime=2100 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_2.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe 2>&1)