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.005947/0.005947, allocations: 101.4 kB / 15.73 MB, free: 6.043 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.001359/0.00136, allocations: 198.9 kB / 16.68 MB, free: 5.961 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.292/1.292, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.176/0.176, allocations: 28.77 MB / 319.3 MB, free: 1.902 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001135/0.001135, allocations: 63.84 kB / 443.8 MB, free: 3.02 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09528/0.09643, allocations: 56.41 MB / 0.4885 GB, free: 10.55 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_4): time 0.004396/0.1009, allocations: 3.662 MB / 0.4921 GB, free: 6.875 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001548/0.1024, allocations: 0.6935 MB / 0.4928 GB, free: 6.18 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004399/0.1029, allocations: 15.94 kB / 0.4928 GB, free: 6.164 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003982/0.1033, allocations: 170.3 kB / 0.493 GB, free: 5.996 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002931/0.1036, allocations: 142.8 kB / 0.4931 GB, free: 5.855 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006349/0.1043, allocations: 363.5 kB / 0.4934 GB, free: 5.5 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007025/0.105, allocations: 0.8601 MB / 0.4943 GB, free: 4.637 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007185/0.1057, allocations: 0.6404 MB / 0.4949 GB, free: 3.957 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002532/0.106, allocations: 338.5 kB / 0.4952 GB, free: 3.625 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002861/0.1063, allocations: 417.6 kB / 0.4956 GB, free: 3.215 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001135/0.1064, allocations: 88 kB / 0.4957 GB, free: 3.129 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001645/0.1066, allocations: 116 kB / 0.4958 GB, free: 3.016 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003088/0.1069, allocations: 458.3 kB / 0.4963 GB, free: 2.566 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003864/0.1073, allocations: 0.628 MB / 0.4969 GB, free: 1.934 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009525/0.1082, allocations: 1.287 MB / 0.4981 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.1082, allocations: 0 / 0.4981 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1082, allocations: 0 / 0.4981 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.258e-05/0.1083, allocations: 0 / 0.4981 GB, free: 0.6406 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.001972/0.1102, allocations: 1.819 MB / 0.4999 GB, free: 14.76 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.387e-05/0.1103, allocations: 12.03 kB / 0.4999 GB, free: 14.75 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002009/0.1105, allocations: 183.4 kB / 0.5001 GB, free: 14.55 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002016/0.1107, allocations: 206.4 kB / 0.5003 GB, free: 14.35 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008218/0.1115, allocations: 0.7664 MB / 0.501 GB, free: 13.54 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.353e-05/0.1116, allocations: 82.53 kB / 0.5011 GB, free: 13.45 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001125/0.1117, allocations: 108.4 kB / 0.5012 GB, free: 13.35 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00155/0.1133, allocations: 1.298 MB / 0.5025 GB, free: 11.98 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.13e-05/0.1133, allocations: 11.88 kB / 0.5025 GB, free: 11.97 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.267e-05/0.1134, allocations: 44 kB / 0.5025 GB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.699e-05/0.1134, allocations: 47.98 kB / 0.5026 GB, free: 11.88 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001505/0.1149, allocations: 1.226 MB / 0.5038 GB, free: 10.64 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004042/0.119, allocations: 3.921 MB / 0.5076 GB, free: 6.609 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001469/0.1205, allocations: 1.365 MB / 0.5089 GB, free: 5.219 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005375/0.121, allocations: 491.2 kB / 0.5094 GB, free: 4.734 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.921e-05/0.1211, allocations: 40.77 kB / 0.5095 GB, free: 4.695 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.731e-05/0.1211, allocations: 35.12 kB / 0.5095 GB, free: 4.652 MB / 398.1 MB Notification: Performance of pre-optimization done (n=70): time 2.335e-06/0.1211, allocations: 0 / 0.5095 GB, free: 4.652 MB / 398.1 MB Notification: Performance of matching and sorting (n=70): time 0.001848/0.123, allocations: 1.559 MB / 0.511 GB, free: 3.086 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.336e-05/0.1231, allocations: 85.78 kB / 0.5111 GB, free: 2.984 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001319/0.1244, allocations: 1.374 MB / 0.5124 GB, free: 1.602 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.42e-05/0.1244, allocations: 37.7 kB / 0.5125 GB, free: 1.559 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005225/0.1249, allocations: 0.8448 MB / 0.5133 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001949/0.1252, allocations: 248.4 kB / 0.5135 GB, free: 468 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000174/0.1253, allocations: 150.6 kB / 0.5137 GB, free: 312 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.2068/0.3321, allocations: 341.9 kB / 0.514 GB, free: 26.64 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008295/0.333, allocations: 468.6 kB / 0.5144 GB, free: 26.64 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006794/0.3337, allocations: 0.7188 MB / 0.5151 GB, free: 26.35 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001139/0.3348, allocations: 1.24 MB / 0.5164 GB, free: 26.06 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.164e-06/0.3348, allocations: 3.375 kB / 0.5164 GB, free: 26.06 MB / 398.1 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.001729/0.3366, allocations: 1.385 MB / 0.5177 GB, free: 26.01 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.587e-05/0.3366, allocations: 10 kB / 0.5177 GB, free: 26.01 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.566e-05/0.3366, allocations: 9.719 kB / 0.5177 GB, free: 26.01 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.129e-05/0.3366, allocations: 14.72 kB / 0.5177 GB, free: 26.01 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005858/0.3372, allocations: 183 kB / 0.5179 GB, free: 26.01 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.332e-05/0.3373, allocations: 23.75 kB / 0.5179 GB, free: 26.01 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003553/0.3376, allocations: 82.89 kB / 0.518 GB, free: 26.01 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.306e-05/0.3377, allocations: 46.95 kB / 0.5181 GB, free: 26.01 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.0005367/0.3383, allocations: 406.8 kB / 0.5185 GB, free: 25.89 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001545/0.3384, allocations: 146.7 kB / 0.5186 GB, free: 25.89 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00146/0.3399, allocations: 1.244 MB / 0.5198 GB, free: 25.82 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.436e-06/0.3399, allocations: 7.375 kB / 0.5198 GB, free: 25.82 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.3399, allocations: 4.938 kB / 0.5198 GB, free: 25.82 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/0.3399, allocations: 4.969 kB / 0.5198 GB, free: 25.82 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002739/0.3427, allocations: 2.407 MB / 0.5222 GB, free: 25.5 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.397e-06/0.3427, allocations: 4 kB / 0.5222 GB, free: 25.49 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004516/0.3431, allocations: 118.6 kB / 0.5223 GB, free: 25.49 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.402e-06/0.3432, allocations: 7.172 kB / 0.5223 GB, free: 25.48 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.362e-05/0.3432, allocations: 20.38 kB / 0.5223 GB, free: 25.48 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.771e-06/0.3432, allocations: 6.812 kB / 0.5223 GB, free: 25.48 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.3432, allocations: 1.344 kB / 0.5223 GB, free: 25.48 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002031/0.3452, allocations: 1.982 MB / 0.5243 GB, free: 25.19 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001846/0.3454, allocations: 206.7 kB / 0.5245 GB, free: 25.02 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.313e-05/0.3455, allocations: 23.69 kB / 0.5245 GB, free: 25.01 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002729/0.3458, allocations: 13.16 kB / 0.5245 GB, free: 25.01 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.881e-05/0.3459, allocations: 44.44 kB / 0.5245 GB, free: 25.01 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.676e-05/0.3459, allocations: 22.41 kB / 0.5246 GB, free: 25.01 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001082/0.347, allocations: 0.9383 MB / 0.5255 GB, free: 24.9 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.347, allocations: 0 / 0.5255 GB, free: 24.9 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006542/0.3477, allocations: 229.7 kB / 0.5257 GB, free: 24.87 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.002297/0.35, allocations: 2.563 MB / 0.5282 GB, free: 23.81 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001281/0.3513, allocations: 1.09 MB / 0.5293 GB, free: 23.57 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.3513, allocations: 0 / 0.5293 GB, free: 23.57 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005425/0.3519, allocations: 0.5219 MB / 0.5298 GB, free: 23.46 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006291/0.3525, allocations: 94.94 kB / 0.5299 GB, free: 23.4 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01396/0.3665, allocations: 12.37 MB / 0.5419 GB, free: 17.94 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008419/0.3673, allocations: 1.334 MB / 0.5432 GB, free: 17.18 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003801/0.3677, allocations: 135.6 kB / 0.5434 GB, free: 17.14 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000514/0.3682, allocations: 0.62 MB / 0.544 GB, free: 16.62 MB / 398.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3683, allocations: 0 / 0.544 GB, free: 16.62 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03392/0.4022, allocations: 19.29 MB / 0.5628 GB, free: 14.91 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.675/10.08, allocations: 0 / 0.5628 GB, free: 14.91 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)