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.001109/0.001109, allocations: 108.6 kB / 15.73 MB, free: 72 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001257/0.001257, allocations: 183.3 kB / 16.66 MB, free: 6.602 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.424/1.424, allocations: 222.9 MB / 240.4 MB, free: 4.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2969/0.2969, allocations: 28.81 MB / 319.3 MB, free: 5.617 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 61.09 kB / 443.9 MB, free: 36.85 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08939/0.0907, allocations: 56.43 MB / 0.4886 GB, free: 8.828 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_4): time 0.003691/0.09443, allocations: 3.674 MB / 0.4922 GB, free: 5.879 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001493/0.09595, allocations: 0.6833 MB / 0.4928 GB, free: 5.305 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005027/0.09647, allocations: 21.91 kB / 0.4928 GB, free: 5.297 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004136/0.09694, allocations: 169.1 kB / 0.493 GB, free: 5.16 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003857/0.09734, allocations: 150.7 kB / 0.4931 GB, free: 5.051 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006878/0.09803, allocations: 361.7 kB / 0.4935 GB, free: 4.762 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007567/0.0988, allocations: 0.8607 MB / 0.4943 GB, free: 4.227 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006993/0.09951, allocations: 0.6381 MB / 0.495 GB, free: 3.707 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000215/0.09974, allocations: 338.4 kB / 0.4953 GB, free: 3.375 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000216/0.09996, allocations: 421.6 kB / 0.4957 GB, free: 2.961 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001233/0.1001, allocations: 84 kB / 0.4958 GB, free: 2.879 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001929/0.1003, allocations: 123.9 kB / 0.4959 GB, free: 2.758 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002345/0.1005, allocations: 450.5 kB / 0.4963 GB, free: 2.316 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002836/0.1008, allocations: 0.6319 MB / 0.4969 GB, free: 1.68 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009384/0.1018, allocations: 1.301 MB / 0.4982 GB, free: 380 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.1018, allocations: 0 / 0.4982 GB, free: 380 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.512e-06/0.1018, allocations: 0 / 0.4982 GB, free: 380 kB / 366.1 MB Notification: Performance of Transformations before backend: time 1.668e-05/0.1018, allocations: 0 / 0.4982 GB, free: 380 kB / 366.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.002122/0.1039, allocations: 1.888 MB / 0.5 GB, free: 14.41 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/0.104, allocations: 12.03 kB / 0.5 GB, free: 14.4 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002157/0.1042, allocations: 183.5 kB / 0.5002 GB, free: 14.21 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002429/0.1045, allocations: 215.5 kB / 0.5004 GB, free: 14 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009416/0.1054, allocations: 0.7756 MB / 0.5012 GB, free: 13.18 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.604e-05/0.1055, allocations: 82.53 kB / 0.5013 GB, free: 13.09 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001242/0.1056, allocations: 100.4 kB / 0.5014 GB, free: 13 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001736/0.1074, allocations: 1.302 MB / 0.5026 GB, free: 11.62 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.802e-05/0.1074, allocations: 7.938 kB / 0.5026 GB, free: 11.62 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.785e-05/0.1075, allocations: 40 kB / 0.5027 GB, free: 11.58 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.403e-05/0.1076, allocations: 47.98 kB / 0.5027 GB, free: 11.53 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001667/0.1092, allocations: 1.242 MB / 0.5039 GB, free: 10.28 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004448/0.1137, allocations: 3.914 MB / 0.5078 GB, free: 6.254 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001559/0.1153, allocations: 1.365 MB / 0.5091 GB, free: 4.863 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005657/0.1159, allocations: 499.2 kB / 0.5096 GB, free: 4.371 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.641e-05/0.116, allocations: 32.75 kB / 0.5096 GB, free: 4.34 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.857e-05/0.116, allocations: 43.12 kB / 0.5096 GB, free: 4.289 MB / 382.1 MB Notification: Performance of pre-optimization done (n=70): time 2.715e-06/0.116, allocations: 0 / 0.5096 GB, free: 4.289 MB / 382.1 MB Notification: Performance of matching and sorting (n=70): time 0.001991/0.118, allocations: 1.564 MB / 0.5112 GB, free: 2.719 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.912e-05/0.1181, allocations: 89.8 kB / 0.5113 GB, free: 2.613 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001499/0.1196, allocations: 1.366 MB / 0.5126 GB, free: 1.238 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.836e-05/0.1197, allocations: 45.69 kB / 0.5126 GB, free: 1.188 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006217/0.1203, allocations: 0.858 MB / 0.5135 GB, free: 328 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002141/0.1205, allocations: 249.8 kB / 0.5137 GB, free: 76 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002164/0.1207, allocations: 162.5 kB / 0.5139 GB, free: 15.91 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001294/0.1209, allocations: 337.9 kB / 0.5142 GB, free: 15.57 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006206/0.1215, allocations: 477.7 kB / 0.5146 GB, free: 15.11 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007466/0.1223, allocations: 0.7239 MB / 0.5153 GB, free: 14.27 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001362/0.1236, allocations: 1.237 MB / 0.5166 GB, free: 12.92 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.052e-06/0.1237, allocations: 0 / 0.5166 GB, free: 12.92 MB / 398.1 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.001819/0.1255, allocations: 1.398 MB / 0.5179 GB, free: 11.52 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.66e-05/0.1255, allocations: 11.94 kB / 0.5179 GB, free: 11.5 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.593e-05/0.1256, allocations: 11.98 kB / 0.5179 GB, free: 11.49 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.576e-05/0.1256, allocations: 12 kB / 0.518 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006158/0.1262, allocations: 187.7 kB / 0.5181 GB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.307e-05/0.1263, allocations: 20.48 kB / 0.5182 GB, free: 11.28 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004244/0.1267, allocations: 87.36 kB / 0.5182 GB, free: 11.19 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.03e-05/0.1268, allocations: 40 kB / 0.5183 GB, free: 11.15 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.0005114/0.1273, allocations: 405.3 kB / 0.5187 GB, free: 10.75 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001787/0.1275, allocations: 158.9 kB / 0.5188 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001672/0.1291, allocations: 1.248 MB / 0.52 GB, free: 9.332 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.059e-05/0.1292, allocations: 8 kB / 0.52 GB, free: 9.324 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.66e-06/0.1292, allocations: 0 / 0.52 GB, free: 9.324 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.526e-06/0.1292, allocations: 3.984 kB / 0.52 GB, free: 9.32 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002893/0.1321, allocations: 2.404 MB / 0.5224 GB, free: 6.859 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.619e-06/0.1321, allocations: 0 / 0.5224 GB, free: 6.859 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005276/0.1327, allocations: 123.8 kB / 0.5225 GB, free: 6.738 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.008e-05/0.1327, allocations: 8 kB / 0.5225 GB, free: 6.73 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.482e-05/0.1327, allocations: 16 kB / 0.5225 GB, free: 6.715 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.913e-06/0.1327, allocations: 4 kB / 0.5225 GB, free: 6.711 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.209e-06/0.1328, allocations: 3.984 kB / 0.5225 GB, free: 6.707 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002178/0.1349, allocations: 1.997 MB / 0.5245 GB, free: 4.691 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002629/0.1352, allocations: 219.9 kB / 0.5247 GB, free: 4.457 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.645e-05/0.1353, allocations: 15.94 kB / 0.5247 GB, free: 4.441 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002863/0.1356, allocations: 12 kB / 0.5247 GB, free: 4.43 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.994e-05/0.1357, allocations: 44.5 kB / 0.5248 GB, free: 4.387 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.08e-05/0.1358, allocations: 24 kB / 0.5248 GB, free: 4.363 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001111/0.1369, allocations: 0.9336 MB / 0.5257 GB, free: 3.434 MB / 398.1 MB Notification: Performance of sort global known variables: time 3e-07/0.1369, allocations: 0 / 0.5257 GB, free: 3.434 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007319/0.1376, allocations: 231.2 kB / 0.5259 GB, free: 3.207 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.002461/0.1401, allocations: 2.562 MB / 0.5284 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001504/0.1416, allocations: 1.087 MB / 0.5295 GB, free: 15.53 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.1417, allocations: 0 / 0.5295 GB, free: 15.53 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006239/0.1423, allocations: 0.5267 MB / 0.53 GB, free: 15 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007899/0.1431, allocations: 97.73 kB / 0.5301 GB, free: 14.9 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01581/0.1589, allocations: 12.44 MB / 0.5422 GB, free: 2.035 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009097/0.1599, allocations: 1.334 MB / 0.5435 GB, free: 0.6719 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004089/0.1603, allocations: 132.9 kB / 0.5437 GB, free: 0.5391 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006344/0.1609, allocations: 0.6165 MB / 0.5443 GB, free: 15.92 MB / 430.1 MB Notification: Performance of SimCode: time 6.21e-07/0.1609, allocations: 0 / 0.5443 GB, free: 15.92 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04301/0.204, allocations: 19.65 MB / 0.5635 GB, free: 12.33 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.4/10.6, allocations: 6.719 kB / 0.5635 GB, free: 12.33 MB / 446.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 & python3 -m fmpy simulate --output-file SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4_res.csv --start-time 1900 --stop-time 2000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.04 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_4.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe 2>&1)