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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005114/0.005114, allocations: 97.92 kB / 15.73 MB, free: 6.062 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001469/0.001469, allocations: 194.9 kB / 16.68 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.247/1.247, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1678/0.1678, allocations: 28.77 MB / 319.3 MB, free: 1.891 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001693/0.001693, allocations: 67.89 kB / 443.8 MB, free: 3.012 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08965/0.09136, allocations: 56.41 MB / 0.4885 GB, free: 10.54 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_4): time 0.004602/0.09599, allocations: 3.673 MB / 0.4921 GB, free: 6.855 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001199/0.0972, allocations: 0.6818 MB / 0.4928 GB, free: 6.172 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002531/0.09747, allocations: 19.94 kB / 0.4928 GB, free: 6.152 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003684/0.09784, allocations: 174.3 kB / 0.493 GB, free: 5.98 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003018/0.09816, allocations: 142.8 kB / 0.4931 GB, free: 5.84 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006182/0.09878, allocations: 359.5 kB / 0.4935 GB, free: 5.488 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007916/0.09958, allocations: 0.8562 MB / 0.4943 GB, free: 4.629 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007677/0.1004, allocations: 0.6325 MB / 0.4949 GB, free: 3.957 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002744/0.1006, allocations: 338.4 kB / 0.4952 GB, free: 3.625 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003403/0.101, allocations: 425.6 kB / 0.4956 GB, free: 3.207 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001188/0.1011, allocations: 84 kB / 0.4957 GB, free: 3.125 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000189/0.1013, allocations: 120 kB / 0.4958 GB, free: 3.008 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003732/0.1017, allocations: 458.3 kB / 0.4963 GB, free: 2.559 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004465/0.1021, allocations: 0.6241 MB / 0.4969 GB, free: 1.93 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00116/0.1033, allocations: 1.297 MB / 0.4981 GB, free: 0.625 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.1033, allocations: 0 / 0.4981 GB, free: 0.625 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1033, allocations: 4 kB / 0.4981 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.086e-05/0.1033, allocations: 4 kB / 0.4982 GB, free: 0.6172 MB / 382.1 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.002101/0.1054, allocations: 1.88 MB / 0.5 GB, free: 14.67 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.459e-05/0.1055, allocations: 8.031 kB / 0.5 GB, free: 14.66 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002135/0.1057, allocations: 187.5 kB / 0.5002 GB, free: 14.47 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002213/0.1059, allocations: 219.4 kB / 0.5004 GB, free: 14.25 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008371/0.1068, allocations: 0.7834 MB / 0.5012 GB, free: 13.42 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.129e-05/0.1069, allocations: 86.52 kB / 0.5012 GB, free: 13.34 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001124/0.107, allocations: 108.4 kB / 0.5013 GB, free: 13.23 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00169/0.1087, allocations: 1.298 MB / 0.5026 GB, free: 11.86 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.12e-05/0.1087, allocations: 0 / 0.5026 GB, free: 11.86 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.934e-05/0.1088, allocations: 47.98 kB / 0.5026 GB, free: 11.82 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.166e-05/0.1088, allocations: 47.98 kB / 0.5027 GB, free: 11.77 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001628/0.1105, allocations: 1.234 MB / 0.5039 GB, free: 10.53 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004204/0.1147, allocations: 3.914 MB / 0.5077 GB, free: 6.5 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001608/0.1163, allocations: 1.377 MB / 0.5091 GB, free: 5.098 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005871/0.1169, allocations: 491.2 kB / 0.5095 GB, free: 4.613 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.364e-05/0.117, allocations: 36.75 kB / 0.5096 GB, free: 4.578 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.428e-05/0.117, allocations: 47 kB / 0.5096 GB, free: 4.523 MB / 398.1 MB Notification: Performance of pre-optimization done (n=70): time 1.723e-06/0.117, allocations: 0 / 0.5096 GB, free: 4.523 MB / 398.1 MB Notification: Performance of matching and sorting (n=70): time 0.001953/0.119, allocations: 1.564 MB / 0.5111 GB, free: 2.953 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.331e-05/0.1191, allocations: 85.67 kB / 0.5112 GB, free: 2.852 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001447/0.1205, allocations: 1.366 MB / 0.5126 GB, free: 1.477 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.233e-05/0.1206, allocations: 37.7 kB / 0.5126 GB, free: 1.434 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006383/0.1212, allocations: 0.8619 MB / 0.5134 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000186/0.1214, allocations: 257.8 kB / 0.5137 GB, free: 316 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001887/0.1216, allocations: 158.6 kB / 0.5138 GB, free: 152 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.1662/0.2877, allocations: 342.5 kB / 0.5142 GB, free: 26.59 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000704/0.2885, allocations: 469.4 kB / 0.5146 GB, free: 26.59 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006068/0.2891, allocations: 0.7161 MB / 0.5153 GB, free: 26.29 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001039/0.2901, allocations: 1.235 MB / 0.5165 GB, free: 26 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.5e-06/0.2901, allocations: 2.312 kB / 0.5165 GB, free: 26 MB / 398.1 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.001517/0.2917, allocations: 1.396 MB / 0.5179 GB, free: 25.96 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.962e-05/0.2917, allocations: 10.31 kB / 0.5179 GB, free: 25.96 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.198e-05/0.2917, allocations: 9.641 kB / 0.5179 GB, free: 25.96 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.585e-05/0.2917, allocations: 13.03 kB / 0.5179 GB, free: 25.96 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005325/0.2923, allocations: 189.6 kB / 0.5181 GB, free: 25.96 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.69e-05/0.2923, allocations: 21.09 kB / 0.5181 GB, free: 25.96 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003223/0.2926, allocations: 83.41 kB / 0.5182 GB, free: 25.96 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.295e-05/0.2927, allocations: 45.12 kB / 0.5182 GB, free: 25.96 MB / 398.1 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004148/0.2931, allocations: 401.1 kB / 0.5186 GB, free: 25.84 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001351/0.2933, allocations: 158.6 kB / 0.5188 GB, free: 25.84 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001387/0.2946, allocations: 1.241 MB / 0.52 GB, free: 25.78 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.464e-06/0.2947, allocations: 11.03 kB / 0.52 GB, free: 25.77 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.159e-06/0.2947, allocations: 0.625 kB / 0.52 GB, free: 25.77 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.063e-06/0.2947, allocations: 13.12 kB / 0.52 GB, free: 25.77 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002402/0.2971, allocations: 2.403 MB / 0.5224 GB, free: 25.45 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/0.2971, allocations: 2.156 kB / 0.5224 GB, free: 25.45 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004365/0.2976, allocations: 119.5 kB / 0.5225 GB, free: 25.44 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.871e-06/0.2976, allocations: 8.094 kB / 0.5225 GB, free: 25.44 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.307e-05/0.2976, allocations: 17.89 kB / 0.5225 GB, free: 25.44 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.749e-06/0.2976, allocations: 7.344 kB / 0.5225 GB, free: 25.44 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.2976, allocations: 0 / 0.5225 GB, free: 25.44 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001917/0.2995, allocations: 1.988 MB / 0.5244 GB, free: 25.13 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001354/0.2997, allocations: 224.8 kB / 0.5247 GB, free: 24.95 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.886e-05/0.2998, allocations: 10.5 kB / 0.5247 GB, free: 24.95 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002637/0.3, allocations: 18.31 kB / 0.5247 GB, free: 24.95 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.381e-05/0.3001, allocations: 41.52 kB / 0.5247 GB, free: 24.95 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.326e-05/0.3002, allocations: 26.86 kB / 0.5247 GB, free: 24.95 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000949/0.3011, allocations: 0.9336 MB / 0.5257 GB, free: 24.84 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3011, allocations: 0 / 0.5257 GB, free: 24.84 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000596/0.3017, allocations: 230.7 kB / 0.5259 GB, free: 24.81 MB / 398.1 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00217/0.3039, allocations: 2.577 MB / 0.5284 GB, free: 23.71 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001196/0.3051, allocations: 1.085 MB / 0.5295 GB, free: 23.48 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.3051, allocations: 1.812 kB / 0.5295 GB, free: 23.48 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005173/0.3057, allocations: 0.524 MB / 0.53 GB, free: 23.36 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000625/0.3063, allocations: 97.16 kB / 0.5301 GB, free: 23.3 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01266/0.319, allocations: 12.44 MB / 0.5422 GB, free: 17.77 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007045/0.3197, allocations: 1.334 MB / 0.5435 GB, free: 17.01 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003526/0.32, allocations: 133 kB / 0.5436 GB, free: 16.98 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004822/0.3205, allocations: 0.6205 MB / 0.5442 GB, free: 16.45 MB / 398.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3205, allocations: 0 / 0.5442 GB, free: 16.45 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.606/1.927, allocations: 19.66 MB / 0.5634 GB, free: 14.38 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.27/15.2, allocations: 14.11 kB / 0.5635 GB, free: 14.37 MB / 414.1 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/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)