Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.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_3,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_3,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_3",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.005158/0.005158, allocations: 100.7 kB / 15.73 MB, free: 6.004 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.001279/0.001278, allocations: 196.9 kB / 16.67 MB, free: 5.926 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.264/1.264, 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.1721/0.1721, allocations: 28.77 MB / 319.3 MB, free: 1.914 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001129/0.001129, allocations: 63.91 kB / 443.8 MB, free: 3.035 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09508/0.09622, allocations: 56.41 MB / 0.4885 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_3): time 0.004161/0.1004, allocations: 3.642 MB / 0.4921 GB, free: 6.918 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001434/0.1019, allocations: 0.6818 MB / 0.4928 GB, free: 6.234 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003107/0.1022, allocations: 16 kB / 0.4928 GB, free: 6.219 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004042/0.1026, allocations: 174.3 kB / 0.4929 GB, free: 6.047 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002935/0.1029, allocations: 142.7 kB / 0.4931 GB, free: 5.906 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006632/0.1036, allocations: 355.6 kB / 0.4934 GB, free: 5.559 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007255/0.1043, allocations: 0.8522 MB / 0.4942 GB, free: 4.703 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008098/0.1051, allocations: 0.6442 MB / 0.4949 GB, free: 4.02 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002493/0.1054, allocations: 330.5 kB / 0.4952 GB, free: 3.695 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002964/0.1057, allocations: 417.6 kB / 0.4956 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001126/0.1058, allocations: 88 kB / 0.4957 GB, free: 3.199 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001806/0.106, allocations: 115.9 kB / 0.4958 GB, free: 3.086 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003312/0.1064, allocations: 430.5 kB / 0.4962 GB, free: 2.664 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003993/0.1068, allocations: 0.6203 MB / 0.4968 GB, free: 2.039 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001034/0.1078, allocations: 1.253 MB / 0.498 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.606e-06/0.1078, allocations: 0 / 0.498 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1078, allocations: 0 / 0.498 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.193e-05/0.1078, allocations: 0 / 0.498 GB, free: 0.7812 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: 263 * Number of variables: 263 Notification: Performance of Generate backend data structure: time 0.001874/0.1097, allocations: 1.784 MB / 0.4998 GB, free: 14.93 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.536e-05/0.1098, allocations: 8.031 kB / 0.4998 GB, free: 14.92 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000192/0.11, allocations: 174.7 kB / 0.4999 GB, free: 14.74 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001824/0.1101, allocations: 194.5 kB / 0.5001 GB, free: 14.55 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007763/0.1109, allocations: 0.7587 MB / 0.5009 GB, free: 13.74 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.706e-05/0.111, allocations: 86.44 kB / 0.5009 GB, free: 13.66 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001037/0.1111, allocations: 104.4 kB / 0.501 GB, free: 13.55 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001417/0.1125, allocations: 1.182 MB / 0.5022 GB, free: 12.3 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.105e-05/0.1126, allocations: 3.938 kB / 0.5022 GB, free: 12.3 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.76e-05/0.1126, allocations: 48 kB / 0.5022 GB, free: 12.25 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.909e-05/0.1127, allocations: 24 kB / 0.5023 GB, free: 12.23 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001326/0.114, allocations: 1.109 MB / 0.5034 GB, free: 11.11 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003648/0.1176, allocations: 3.673 MB / 0.5069 GB, free: 7.328 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001371/0.119, allocations: 1.342 MB / 0.5082 GB, free: 5.973 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004846/0.1195, allocations: 490.3 kB / 0.5087 GB, free: 5.492 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.233e-05/0.1196, allocations: 24.55 kB / 0.5087 GB, free: 5.469 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.823e-05/0.1196, allocations: 43.05 kB / 0.5088 GB, free: 5.418 MB / 398.1 MB Notification: Performance of pre-optimization done (n=68): time 2.074e-06/0.1196, allocations: 0 / 0.5088 GB, free: 5.418 MB / 398.1 MB Notification: Performance of matching and sorting (n=68): time 0.001664/0.1213, allocations: 1.532 MB / 0.5103 GB, free: 3.879 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.348e-05/0.1214, allocations: 67.91 kB / 0.5103 GB, free: 3.801 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001208/0.1226, allocations: 1.277 MB / 0.5116 GB, free: 2.516 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.4e-05/0.1226, allocations: 37.7 kB / 0.5116 GB, free: 2.473 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000494/0.1231, allocations: 0.7793 MB / 0.5124 GB, free: 1.684 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001509/0.1233, allocations: 228.6 kB / 0.5126 GB, free: 1.457 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001406/0.1234, allocations: 118.6 kB / 0.5127 GB, free: 1.336 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001052/0.1235, allocations: 334 kB / 0.513 GB, free: 1.004 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004708/0.124, allocations: 441.8 kB / 0.5135 GB, free: 0.5703 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2175/0.3415, allocations: 0.5356 MB / 0.514 GB, free: 26.7 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001651/0.3432, allocations: 0.9983 MB / 0.515 GB, free: 26.61 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.733e-06/0.3432, allocations: 4.188 kB / 0.515 GB, free: 26.61 MB / 398.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.00154/0.3448, allocations: 1.182 MB / 0.5161 GB, free: 26.56 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.283e-05/0.3448, allocations: 6.938 kB / 0.5161 GB, free: 26.56 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.21e-05/0.3448, allocations: 3.5 kB / 0.5161 GB, free: 26.56 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.542e-05/0.3449, allocations: 5.625 kB / 0.5161 GB, free: 26.56 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005165/0.3454, allocations: 139.1 kB / 0.5163 GB, free: 26.56 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.688e-05/0.3454, allocations: 8.625 kB / 0.5163 GB, free: 26.56 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002924/0.3457, allocations: 51.67 kB / 0.5163 GB, free: 26.56 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.597e-05/0.3458, allocations: 26.72 kB / 0.5163 GB, free: 26.56 MB / 398.1 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 (83): * Single equations (assignments): 83 * 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.0006488/0.3464, allocations: 378.6 kB / 0.5167 GB, free: 26.44 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001673/0.3466, allocations: 140.9 kB / 0.5168 GB, free: 26.44 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001914/0.3485, allocations: 1.203 MB / 0.518 GB, free: 26.38 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.337e-05/0.3486, allocations: 7.312 kB / 0.518 GB, free: 26.38 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.08e-05/0.3486, allocations: 1.969 kB / 0.518 GB, free: 26.38 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.506e-05/0.3486, allocations: 6.906 kB / 0.518 GB, free: 26.38 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003003/0.3516, allocations: 2.372 MB / 0.5203 GB, free: 26.05 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.3516, allocations: 1.188 kB / 0.5203 GB, free: 26.05 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004601/0.3521, allocations: 114.5 kB / 0.5205 GB, free: 26.05 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.807e-06/0.3521, allocations: 6 kB / 0.5205 GB, free: 26.05 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.533e-05/0.3521, allocations: 20.77 kB / 0.5205 GB, free: 26.05 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.939e-06/0.3522, allocations: 3.219 kB / 0.5205 GB, free: 26.05 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.3522, allocations: 4.594 kB / 0.5205 GB, free: 26.05 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002265/0.3544, allocations: 1.876 MB / 0.5223 GB, free: 25.85 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001658/0.3546, allocations: 201.4 kB / 0.5225 GB, free: 25.68 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.131e-05/0.3547, allocations: 14.8 kB / 0.5225 GB, free: 25.68 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002165/0.3549, allocations: 15.72 kB / 0.5225 GB, free: 25.68 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001032/0.355, allocations: 42.17 kB / 0.5226 GB, free: 25.67 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.279e-05/0.3551, allocations: 17.88 kB / 0.5226 GB, free: 25.67 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001298/0.3564, allocations: 0.8931 MB / 0.5235 GB, free: 25.56 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.3564, allocations: 0 / 0.5235 GB, free: 25.56 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006135/0.357, allocations: 213.6 kB / 0.5237 GB, free: 25.53 MB / 398.1 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 (68): * Single equations (assignments): 68 * 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.002405/0.3594, allocations: 2.456 MB / 0.5261 GB, free: 24.78 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001432/0.3609, allocations: 0.9954 MB / 0.527 GB, free: 24.69 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3609, allocations: 0 / 0.527 GB, free: 24.69 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007249/0.3616, allocations: 0.511 MB / 0.5275 GB, free: 24.59 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005745/0.3622, allocations: 101.5 kB / 0.5276 GB, free: 24.52 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01434/0.3765, allocations: 11.49 MB / 0.5389 GB, free: 19.93 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000886/0.3775, allocations: 1.313 MB / 0.5401 GB, free: 19.17 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002588/0.3777, allocations: 75.92 kB / 0.5402 GB, free: 19.15 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005129/0.3783, allocations: 0.5919 MB / 0.5408 GB, free: 18.64 MB / 398.1 MB Notification: Performance of SimCode: time 1.312e-06/0.3783, allocations: 0 / 0.5408 GB, free: 18.64 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03487/0.4131, allocations: 18.99 MB / 0.5593 GB, free: 2.996 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.15/10.56, allocations: 7.922 kB / 0.5593 GB, free: 2.988 MB / 398.1 MB (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_3_fmu --startTime=1900 --stopTime=2100 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_3.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe 2>&1)