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.004804/0.004804, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.001142/0.001142, allocations: 194.2 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.342/1.342, 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.1744/0.1744, allocations: 28.77 MB / 319.3 MB, free: 1.902 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001353/0.001353, allocations: 59.91 kB / 443.8 MB, free: 3.012 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09599/0.09737, allocations: 56.41 MB / 0.4885 GB, free: 10.54 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_1): time 0.004656/0.1021, allocations: 3.642 MB / 0.4921 GB, free: 6.891 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001794/0.1039, allocations: 0.674 MB / 0.4927 GB, free: 6.215 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005918/0.1045, allocations: 15.94 kB / 0.4928 GB, free: 6.199 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005243/0.1051, allocations: 166.3 kB / 0.4929 GB, free: 6.035 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005341/0.1056, allocations: 126.8 kB / 0.493 GB, free: 5.91 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008348/0.1065, allocations: 355.6 kB / 0.4934 GB, free: 5.562 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001005/0.1075, allocations: 0.8443 MB / 0.4942 GB, free: 4.715 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009049/0.1084, allocations: 0.6364 MB / 0.4948 GB, free: 4.039 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003472/0.1088, allocations: 338.4 kB / 0.4951 GB, free: 3.707 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003832/0.1092, allocations: 417.6 kB / 0.4955 GB, free: 3.297 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001618/0.1093, allocations: 84 kB / 0.4956 GB, free: 3.215 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000222/0.1096, allocations: 123.9 kB / 0.4957 GB, free: 3.094 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003387/0.1099, allocations: 422.6 kB / 0.4961 GB, free: 2.68 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004841/0.1104, allocations: 0.6048 MB / 0.4967 GB, free: 2.07 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001272/0.1117, allocations: 1.228 MB / 0.4979 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.1117, allocations: 0 / 0.4979 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1117, allocations: 0 / 0.4979 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.403e-05/0.1118, allocations: 0 / 0.4979 GB, free: 0.8359 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: 259 * Number of variables: 259 Notification: Performance of Generate backend data structure: time 0.002172/0.1139, allocations: 1.794 MB / 0.4997 GB, free: 14.98 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.924e-05/0.114, allocations: 15.89 kB / 0.4997 GB, free: 14.96 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002017/0.1142, allocations: 166.6 kB / 0.4999 GB, free: 14.79 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002236/0.1144, allocations: 203.6 kB / 0.5001 GB, free: 14.59 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009313/0.1154, allocations: 0.7554 MB / 0.5008 GB, free: 13.79 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.474e-05/0.1154, allocations: 78.47 kB / 0.5009 GB, free: 13.71 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001197/0.1156, allocations: 116.2 kB / 0.501 GB, free: 13.59 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001482/0.1171, allocations: 1.143 MB / 0.5021 GB, free: 12.38 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.667e-05/0.1171, allocations: 3.938 kB / 0.5021 GB, free: 12.38 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.996e-05/0.1172, allocations: 44 kB / 0.5021 GB, free: 12.34 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.34e-05/0.1172, allocations: 28 kB / 0.5022 GB, free: 12.31 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001373/0.1186, allocations: 1.058 MB / 0.5032 GB, free: 11.24 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004403/0.123, allocations: 3.607 MB / 0.5067 GB, free: 7.523 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00146/0.1245, allocations: 1.271 MB / 0.508 GB, free: 6.242 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004759/0.125, allocations: 466.3 kB / 0.5084 GB, free: 5.785 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.069e-05/0.1251, allocations: 32.72 kB / 0.5084 GB, free: 5.754 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.037e-05/0.1251, allocations: 43.06 kB / 0.5085 GB, free: 5.703 MB / 398.1 MB Notification: Performance of pre-optimization done (n=66): time 2.876e-06/0.1251, allocations: 0 / 0.5085 GB, free: 5.703 MB / 398.1 MB Notification: Performance of matching and sorting (n=66): time 0.001609/0.1267, allocations: 1.451 MB / 0.5099 GB, free: 4.246 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.773e-05/0.1268, allocations: 63.95 kB / 0.51 GB, free: 4.172 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001296/0.1281, allocations: 1.234 MB / 0.5112 GB, free: 2.926 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.028e-05/0.1282, allocations: 33.7 kB / 0.5112 GB, free: 2.887 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005319/0.1287, allocations: 0.7683 MB / 0.5119 GB, free: 2.109 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000201/0.1289, allocations: 242 kB / 0.5122 GB, free: 1.871 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000151/0.1291, allocations: 106.3 kB / 0.5123 GB, free: 1.762 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001128/0.1292, allocations: 334 kB / 0.5126 GB, free: 1.43 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004472/0.1296, allocations: 413.1 kB / 0.513 GB, free: 1.027 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000499/0.1301, allocations: 0.5082 MB / 0.5135 GB, free: 496 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1818/0.312, allocations: 0.9467 MB / 0.5144 GB, free: 26.45 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.524e-06/0.312, allocations: 0.75 kB / 0.5144 GB, free: 26.45 MB / 398.1 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001464/0.3135, allocations: 1.14 MB / 0.5155 GB, free: 26.4 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.987e-05/0.3135, allocations: 8.062 kB / 0.5155 GB, free: 26.4 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.558e-06/0.3135, allocations: 7.094 kB / 0.5155 GB, free: 26.4 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.371e-05/0.3136, allocations: 3.906 kB / 0.5155 GB, free: 26.4 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004271/0.314, allocations: 124.7 kB / 0.5157 GB, free: 26.4 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.272e-05/0.314, allocations: 12.28 kB / 0.5157 GB, free: 26.4 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002623/0.3143, allocations: 49.62 kB / 0.5157 GB, free: 26.4 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.382e-05/0.3143, allocations: 24.16 kB / 0.5157 GB, free: 26.4 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.0004233/0.3148, allocations: 365.9 kB / 0.5161 GB, free: 26.28 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001376/0.3149, allocations: 142.7 kB / 0.5162 GB, free: 26.28 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001353/0.3163, allocations: 1.147 MB / 0.5174 GB, free: 26.22 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.414e-06/0.3163, allocations: 6.906 kB / 0.5174 GB, free: 26.22 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.3163, allocations: 3.656 kB / 0.5174 GB, free: 26.22 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.653e-06/0.3163, allocations: 2.625 kB / 0.5174 GB, free: 26.22 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002427/0.3188, allocations: 2.283 MB / 0.5196 GB, free: 25.9 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.499e-06/0.3188, allocations: 2.219 kB / 0.5196 GB, free: 25.9 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004514/0.3192, allocations: 103.8 kB / 0.5197 GB, free: 25.9 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.277e-06/0.3193, allocations: 10.34 kB / 0.5197 GB, free: 25.9 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.08e-05/0.3193, allocations: 14.61 kB / 0.5197 GB, free: 25.9 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.661e-06/0.3193, allocations: 2.75 kB / 0.5197 GB, free: 25.9 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.3193, allocations: 3.938 kB / 0.5197 GB, free: 25.9 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00189/0.3212, allocations: 1.793 MB / 0.5215 GB, free: 25.69 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000224/0.3215, allocations: 203.7 kB / 0.5217 GB, free: 25.52 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.687e-05/0.3216, allocations: 17.59 kB / 0.5217 GB, free: 25.52 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002154/0.3218, allocations: 9.594 kB / 0.5217 GB, free: 25.52 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.358e-05/0.3219, allocations: 41.42 kB / 0.5217 GB, free: 25.51 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.189e-05/0.3219, allocations: 22.91 kB / 0.5218 GB, free: 25.51 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001082/0.323, allocations: 0.8559 MB / 0.5226 GB, free: 25.4 MB / 398.1 MB Notification: Performance of sort global known variables: time 6.41e-07/0.323, allocations: 0 / 0.5226 GB, free: 25.4 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005913/0.3236, allocations: 212.1 kB / 0.5228 GB, free: 25.37 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.002116/0.3257, allocations: 2.363 MB / 0.5251 GB, free: 24.62 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001168/0.3269, allocations: 0.9438 MB / 0.526 GB, free: 24.61 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.3269, allocations: 0 / 0.526 GB, free: 24.61 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005169/0.3274, allocations: 496.1 kB / 0.5265 GB, free: 24.6 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006654/0.3281, allocations: 95.27 kB / 0.5266 GB, free: 24.55 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01445/0.3426, allocations: 11.08 MB / 0.5374 GB, free: 20.02 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000944/0.3436, allocations: 1.295 MB / 0.5387 GB, free: 19.27 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002862/0.3439, allocations: 72.72 kB / 0.5387 GB, free: 19.26 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005069/0.3444, allocations: 0.5703 MB / 0.5393 GB, free: 18.77 MB / 398.1 MB Notification: Performance of SimCode: time 7.81e-07/0.3444, allocations: 4 kB / 0.5393 GB, free: 18.77 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0384/0.3828, allocations: 18.13 MB / 0.557 GB, free: 5.332 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.2/10.58, allocations: 7.812 kB / 0.557 GB, free: 5.328 MB / 398.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 & python3 -m fmpy simulate --output-file SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1_res.csv --start-time 1900 --stop-time 2100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.08 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_1.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe 2>&1)