Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.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_2,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_2,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_2",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.005105/0.005105, allocations: 96.7 kB / 15.73 MB, free: 6.055 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.001176/0.001176, allocations: 194.4 kB / 16.67 MB, free: 5.977 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.313/1.313, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2959/0.2959, allocations: 28.81 MB / 319.4 MB, free: 5.613 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001157/0.001157, allocations: 61.78 kB / 443.9 MB, free: 36.78 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1128, allocations: 56.42 MB / 0.4886 GB, free: 8.84 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_2): time 0.00497/0.1178, allocations: 3.649 MB / 0.4921 GB, free: 5.91 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001361/0.1192, allocations: 0.6779 MB / 0.4928 GB, free: 5.34 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003481/0.1195, allocations: 22.03 kB / 0.4928 GB, free: 5.332 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003805/0.1199, allocations: 173.1 kB / 0.493 GB, free: 5.191 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00033/0.1203, allocations: 139.2 kB / 0.4931 GB, free: 5.09 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006512/0.1209, allocations: 356.8 kB / 0.4934 GB, free: 4.805 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006655/0.1216, allocations: 0.8435 MB / 0.4943 GB, free: 4.281 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006524/0.1223, allocations: 0.642 MB / 0.4949 GB, free: 3.766 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001752/0.1224, allocations: 334.4 kB / 0.4952 GB, free: 3.438 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002067/0.1227, allocations: 421.6 kB / 0.4956 GB, free: 3.023 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.236e-05/0.1228, allocations: 88 kB / 0.4957 GB, free: 2.938 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001476/0.1229, allocations: 116 kB / 0.4958 GB, free: 2.824 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002228/0.1231, allocations: 434.4 kB / 0.4962 GB, free: 2.398 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002749/0.1234, allocations: 0.6086 MB / 0.4968 GB, free: 1.785 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008422/0.1243, allocations: 1.266 MB / 0.4981 GB, free: 0.5117 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.69e-06/0.1243, allocations: 0 / 0.4981 GB, free: 0.5117 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1243, allocations: 0 / 0.4981 GB, free: 0.5117 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.735e-05/0.1243, allocations: 0 / 0.4981 GB, free: 0.5117 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.001852/0.1262, allocations: 1.849 MB / 0.4999 GB, free: 14.59 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.624e-05/0.1262, allocations: 8.031 kB / 0.4999 GB, free: 14.59 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001878/0.1264, allocations: 166.7 kB / 0.5 GB, free: 14.41 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000192/0.1266, allocations: 207.6 kB / 0.5002 GB, free: 14.21 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008125/0.1274, allocations: 0.772 MB / 0.501 GB, free: 13.39 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.663e-05/0.1275, allocations: 78.48 kB / 0.5011 GB, free: 13.31 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001043/0.1276, allocations: 112.3 kB / 0.5012 GB, free: 13.2 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001452/0.1291, allocations: 1.174 MB / 0.5023 GB, free: 11.96 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.315e-05/0.1291, allocations: 3.938 kB / 0.5023 GB, free: 11.96 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.225e-05/0.1292, allocations: 44 kB / 0.5024 GB, free: 11.91 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.914e-05/0.1292, allocations: 32 kB / 0.5024 GB, free: 11.88 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001316/0.1305, allocations: 1.101 MB / 0.5035 GB, free: 10.77 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003736/0.1343, allocations: 3.675 MB / 0.5071 GB, free: 6.988 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001395/0.1357, allocations: 1.334 MB / 0.5084 GB, free: 5.641 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005162/0.1362, allocations: 478.3 kB / 0.5088 GB, free: 5.172 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.465e-05/0.1363, allocations: 36.75 kB / 0.5088 GB, free: 5.137 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.144e-05/0.1363, allocations: 39.12 kB / 0.5089 GB, free: 5.09 MB / 382.1 MB Notification: Performance of pre-optimization done (n=67): time 1.653e-06/0.1363, allocations: 3.938 kB / 0.5089 GB, free: 5.086 MB / 382.1 MB Notification: Performance of matching and sorting (n=67): time 0.001773/0.1381, allocations: 1.517 MB / 0.5104 GB, free: 3.562 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.56e-05/0.1382, allocations: 63.91 kB / 0.5104 GB, free: 3.488 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001332/0.1395, allocations: 1.296 MB / 0.5117 GB, free: 2.184 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.012e-05/0.1395, allocations: 37.7 kB / 0.5117 GB, free: 2.141 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005451/0.1401, allocations: 0.7805 MB / 0.5125 GB, free: 1.352 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001724/0.1403, allocations: 241.9 kB / 0.5127 GB, free: 1.113 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001505/0.1404, allocations: 118.3 kB / 0.5128 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001182/0.1406, allocations: 326 kB / 0.5131 GB, free: 0.668 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004885/0.141, allocations: 441.1 kB / 0.5136 GB, free: 244 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005767/0.1416, allocations: 0.5316 MB / 0.5141 GB, free: 15.67 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001131/0.1428, allocations: 0.9939 MB / 0.5151 GB, free: 14.64 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.1428, allocations: 0 / 0.5151 GB, free: 14.64 MB / 398.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001357/0.1441, allocations: 1.191 MB / 0.5162 GB, free: 13.45 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.72e-05/0.1442, allocations: 4 kB / 0.5162 GB, free: 13.44 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.098e-05/0.1442, allocations: 4 kB / 0.5162 GB, free: 13.44 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.747e-05/0.1442, allocations: 4 kB / 0.5162 GB, free: 13.43 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004448/0.1447, allocations: 135.8 kB / 0.5164 GB, free: 13.3 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.37e-05/0.1447, allocations: 7.938 kB / 0.5164 GB, free: 13.29 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002315/0.1449, allocations: 47.94 kB / 0.5164 GB, free: 13.25 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.681e-05/0.145, allocations: 35.98 kB / 0.5165 GB, free: 13.21 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 (82): * Single equations (assignments): 82 * 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.0004312/0.1454, allocations: 377.2 kB / 0.5168 GB, free: 12.83 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000148/0.1456, allocations: 147 kB / 0.517 GB, free: 12.69 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001422/0.147, allocations: 1.193 MB / 0.5181 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.715e-06/0.147, allocations: 8 kB / 0.5181 GB, free: 11.47 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.985e-06/0.147, allocations: 3.938 kB / 0.5181 GB, free: 11.47 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.328e-06/0.1471, allocations: 3.984 kB / 0.5181 GB, free: 11.46 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002714/0.1498, allocations: 2.368 MB / 0.5204 GB, free: 9.039 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.1498, allocations: 0 / 0.5204 GB, free: 9.039 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004464/0.1502, allocations: 115.8 kB / 0.5206 GB, free: 8.926 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.033e-06/0.1503, allocations: 3.938 kB / 0.5206 GB, free: 8.922 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.334e-05/0.1503, allocations: 16 kB / 0.5206 GB, free: 8.906 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.446e-06/0.1503, allocations: 0 / 0.5206 GB, free: 8.906 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/0.1503, allocations: 7.984 kB / 0.5206 GB, free: 8.898 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001934/0.1523, allocations: 1.88 MB / 0.5224 GB, free: 6.996 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002159/0.1525, allocations: 200 kB / 0.5226 GB, free: 6.781 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.477e-05/0.1526, allocations: 16 kB / 0.5226 GB, free: 6.766 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002188/0.1528, allocations: 19.98 kB / 0.5226 GB, free: 6.746 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.302e-05/0.1529, allocations: 40.5 kB / 0.5227 GB, free: 6.707 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.165e-05/0.1529, allocations: 19.98 kB / 0.5227 GB, free: 6.688 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001068/0.154, allocations: 0.8928 MB / 0.5236 GB, free: 5.797 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.154, allocations: 0 / 0.5236 GB, free: 5.797 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006614/0.1547, allocations: 215.2 kB / 0.5238 GB, free: 5.586 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 (67): * Single equations (assignments): 67 * 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.002555/0.1572, allocations: 2.459 MB / 0.5262 GB, free: 3.102 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00109/0.1583, allocations: 0.9809 MB / 0.5271 GB, free: 2.121 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.1584, allocations: 4 kB / 0.5271 GB, free: 2.117 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005167/0.1589, allocations: 0.5068 MB / 0.5276 GB, free: 1.609 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006359/0.1595, allocations: 99.7 kB / 0.5277 GB, free: 1.516 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01338/0.1729, allocations: 11.56 MB / 0.539 GB, free: 5.77 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009624/0.1739, allocations: 1.307 MB / 0.5403 GB, free: 4.438 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000237/0.1742, allocations: 76.36 kB / 0.5404 GB, free: 4.363 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006136/0.1748, allocations: 0.5891 MB / 0.5409 GB, free: 3.773 MB / 414.1 MB Notification: Performance of SimCode: time 7.22e-07/0.1748, allocations: 0 / 0.5409 GB, free: 3.773 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04075/0.2155, allocations: 18.74 MB / 0.5592 GB, free: 1.094 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.05/10.27, allocations: 15.67 kB / 0.5593 GB, free: 1.082 MB / 430.1 MB (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.sim & python3 -m fmpy simulate --output-file SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2_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_2.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe 2>&1)