Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.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_1,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_1,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_1",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.00732/0.00732, allocations: 96.53 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.001893/0.001893, allocations: 195.5 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.461/1.461, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2819/0.2819, allocations: 28.81 MB / 319.4 MB, free: 5.641 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001786/0.001786, allocations: 65.12 kB / 443.9 MB, free: 36.77 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07747/0.07927, allocations: 56.43 MB / 0.4886 GB, free: 8.852 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_1): time 0.003508/0.08281, allocations: 3.632 MB / 0.4921 GB, free: 5.934 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001078/0.08391, allocations: 0.6709 MB / 0.4928 GB, free: 5.367 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003046/0.08423, allocations: 21.62 kB / 0.4928 GB, free: 5.359 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003174/0.08455, allocations: 164.9 kB / 0.493 GB, free: 5.219 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003034/0.08487, allocations: 116.2 kB / 0.4931 GB, free: 5.129 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005475/0.08543, allocations: 360.1 kB / 0.4934 GB, free: 4.84 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006091/0.08605, allocations: 0.8511 MB / 0.4942 GB, free: 4.309 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006399/0.0867, allocations: 0.6372 MB / 0.4949 GB, free: 3.824 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001688/0.08688, allocations: 338.5 kB / 0.4952 GB, free: 3.492 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001988/0.08708, allocations: 425.5 kB / 0.4956 GB, free: 3.074 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001008/0.08719, allocations: 87.94 kB / 0.4957 GB, free: 2.988 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000156/0.08735, allocations: 112 kB / 0.4958 GB, free: 2.879 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002147/0.08757, allocations: 434.5 kB / 0.4962 GB, free: 2.453 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002423/0.08782, allocations: 0.5893 MB / 0.4968 GB, free: 1.859 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000749/0.08858, allocations: 1.239 MB / 0.498 GB, free: 0.6133 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.08859, allocations: 4 kB / 0.498 GB, free: 0.6094 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.0886, allocations: 0 / 0.498 GB, free: 0.6094 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.33e-05/0.08862, allocations: 0 / 0.498 GB, free: 0.6094 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 259 * Number of variables: 259 Notification: Performance of Generate backend data structure: time 0.001979/0.0906, allocations: 1.786 MB / 0.4997 GB, free: 14.76 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.551e-05/0.09065, allocations: 8.031 kB / 0.4997 GB, free: 14.75 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002156/0.09087, allocations: 170.6 kB / 0.4999 GB, free: 14.57 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002265/0.0911, allocations: 203.6 kB / 0.5001 GB, free: 14.38 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009367/0.09204, allocations: 0.7593 MB / 0.5008 GB, free: 13.57 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.915e-05/0.09212, allocations: 82.47 kB / 0.5009 GB, free: 13.48 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001321/0.09226, allocations: 108.3 kB / 0.501 GB, free: 13.38 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001651/0.09392, allocations: 1.146 MB / 0.5021 GB, free: 12.16 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.288e-05/0.09395, allocations: 0 / 0.5021 GB, free: 12.16 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.957e-05/0.09403, allocations: 48 kB / 0.5022 GB, free: 12.12 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.377e-05/0.09406, allocations: 24 kB / 0.5022 GB, free: 12.09 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001492/0.09556, allocations: 1.058 MB / 0.5032 GB, free: 11.03 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004423/0.09999, allocations: 3.615 MB / 0.5068 GB, free: 7.301 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001639/0.1016, allocations: 1.264 MB / 0.508 GB, free: 6.031 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005622/0.1022, allocations: 466.3 kB / 0.5084 GB, free: 5.57 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.738e-05/0.1023, allocations: 24.77 kB / 0.5085 GB, free: 5.547 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.501e-05/0.1023, allocations: 39.12 kB / 0.5085 GB, free: 5.5 MB / 382.1 MB Notification: Performance of pre-optimization done (n=66): time 2.475e-06/0.1023, allocations: 4 kB / 0.5085 GB, free: 5.496 MB / 382.1 MB Notification: Performance of matching and sorting (n=66): time 0.001868/0.1042, allocations: 1.459 MB / 0.5099 GB, free: 4.031 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.726e-05/0.1043, allocations: 63.84 kB / 0.51 GB, free: 3.957 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001488/0.1058, allocations: 1.226 MB / 0.5112 GB, free: 2.719 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.17e-05/0.1058, allocations: 37.7 kB / 0.5112 GB, free: 2.676 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006632/0.1065, allocations: 0.7683 MB / 0.512 GB, free: 1.898 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001966/0.1067, allocations: 234 kB / 0.5122 GB, free: 1.668 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001674/0.1069, allocations: 118.3 kB / 0.5123 GB, free: 1.547 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001583/0.107, allocations: 334 kB / 0.5126 GB, free: 1.215 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005273/0.1076, allocations: 413.1 kB / 0.513 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005938/0.1082, allocations: 0.5004 MB / 0.5135 GB, free: 284 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001204/0.1094, allocations: 0.9549 MB / 0.5144 GB, free: 15.29 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.1094, allocations: 3.938 kB / 0.5145 GB, free: 15.28 MB / 398.1 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001438/0.1108, allocations: 1.137 MB / 0.5156 GB, free: 14.14 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.706e-05/0.1109, allocations: 8 kB / 0.5156 GB, free: 14.13 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.642e-06/0.1109, allocations: 320 / 0.5156 GB, free: 14.13 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.01e-05/0.1109, allocations: 12 kB / 0.5156 GB, free: 14.12 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004592/0.1114, allocations: 127.8 kB / 0.5157 GB, free: 13.99 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.249e-05/0.1114, allocations: 11.88 kB / 0.5157 GB, free: 13.98 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000238/0.1116, allocations: 59.55 kB / 0.5158 GB, free: 13.92 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.032e-05/0.1117, allocations: 24 kB / 0.5158 GB, free: 13.9 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 (81): * Single equations (assignments): 81 * 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.000473/0.1122, allocations: 363.7 kB / 0.5161 GB, free: 13.54 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001685/0.1123, allocations: 143 kB / 0.5163 GB, free: 13.39 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001566/0.1139, allocations: 1.15 MB / 0.5174 GB, free: 12.23 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.935e-06/0.1139, allocations: 12 kB / 0.5174 GB, free: 12.22 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.366e-06/0.114, allocations: 3.938 kB / 0.5174 GB, free: 12.21 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.905e-06/0.114, allocations: 3.984 kB / 0.5174 GB, free: 12.21 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002751/0.1167, allocations: 2.273 MB / 0.5196 GB, free: 9.883 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.1167, allocations: 0 / 0.5196 GB, free: 9.883 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004471/0.1172, allocations: 107.8 kB / 0.5197 GB, free: 9.777 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.037e-06/0.1172, allocations: 7.938 kB / 0.5197 GB, free: 9.77 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.096e-05/0.1173, allocations: 12 kB / 0.5198 GB, free: 9.758 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.1e-06/0.1173, allocations: 4 kB / 0.5198 GB, free: 9.754 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.1173, allocations: 3.984 kB / 0.5198 GB, free: 9.75 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002116/0.1194, allocations: 1.794 MB / 0.5215 GB, free: 7.934 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001885/0.1196, allocations: 207.9 kB / 0.5217 GB, free: 7.711 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.555e-05/0.1197, allocations: 16 kB / 0.5217 GB, free: 7.695 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002117/0.1199, allocations: 16 kB / 0.5217 GB, free: 7.68 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.003e-05/0.12, allocations: 32.52 kB / 0.5218 GB, free: 7.648 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.873e-05/0.12, allocations: 23.98 kB / 0.5218 GB, free: 7.625 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001082/0.1211, allocations: 0.8519 MB / 0.5226 GB, free: 6.773 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1211, allocations: 4 kB / 0.5226 GB, free: 6.77 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005391/0.1217, allocations: 207.3 kB / 0.5228 GB, free: 6.566 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 (66): * Single equations (assignments): 66 * 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.002472/0.1241, allocations: 2.36 MB / 0.5251 GB, free: 4.18 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001243/0.1254, allocations: 0.9456 MB / 0.5261 GB, free: 3.234 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.1254, allocations: 0 / 0.5261 GB, free: 3.234 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005775/0.126, allocations: 498.9 kB / 0.5265 GB, free: 2.746 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006029/0.1266, allocations: 94.72 kB / 0.5266 GB, free: 2.66 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01454/0.1412, allocations: 11.09 MB / 0.5375 GB, free: 7.379 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001001/0.1422, allocations: 1.283 MB / 0.5387 GB, free: 6.07 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002365/0.1424, allocations: 72.36 kB / 0.5388 GB, free: 5.996 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000653/0.1431, allocations: 0.5735 MB / 0.5393 GB, free: 5.422 MB / 414.1 MB Notification: Performance of SimCode: time 4.4e-07/0.1431, allocations: 0 / 0.5393 GB, free: 5.422 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4864/0.6295, allocations: 18.1 MB / 0.557 GB, free: 3.375 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.54/13.17, allocations: 15.92 kB / 0.557 GB, free: 3.359 MB / 430.1 MB (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_1_fmu --startTime=1900 --stopTime=2100 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_1.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe 2>&1)