Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.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_6,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_6",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_6,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_6",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.005062/0.005062, allocations: 99.64 kB / 15.73 MB, free: 6.031 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.00116/0.00116, allocations: 189.7 kB / 16.67 MB, free: 5.965 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.3/1.3, allocations: 222.9 MB / 240.4 MB, free: 4.168 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.273/0.273, allocations: 28.81 MB / 319.4 MB, free: 5.543 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001134/0.001134, allocations: 65.19 kB / 443.9 MB, free: 36.79 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0983/0.09945, allocations: 56.42 MB / 0.4886 GB, free: 8.789 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.003817/0.1033, allocations: 3.683 MB / 0.4922 GB, free: 5.832 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001452/0.1048, allocations: 0.7707 MB / 0.4929 GB, free: 5.191 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003591/0.1051, allocations: 17.94 kB / 0.4929 GB, free: 5.188 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003829/0.1055, allocations: 176.7 kB / 0.4931 GB, free: 5.043 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003167/0.1059, allocations: 138.6 kB / 0.4932 GB, free: 4.941 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006784/0.1066, allocations: 379.5 kB / 0.4936 GB, free: 4.641 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007219/0.1073, allocations: 0.8635 MB / 0.4944 GB, free: 4.105 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007396/0.1081, allocations: 0.6339 MB / 0.4951 GB, free: 3.594 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002244/0.1083, allocations: 350.3 kB / 0.4954 GB, free: 3.25 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002711/0.1086, allocations: 429.6 kB / 0.4958 GB, free: 2.828 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001045/0.1087, allocations: 84 kB / 0.4959 GB, free: 2.746 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001724/0.1089, allocations: 124 kB / 0.496 GB, free: 2.625 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002713/0.1091, allocations: 438.4 kB / 0.4964 GB, free: 2.195 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003201/0.1095, allocations: 0.6164 MB / 0.497 GB, free: 1.574 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009119/0.1104, allocations: 1.271 MB / 0.4983 GB, free: 308 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.1104, allocations: 4 kB / 0.4983 GB, free: 304 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.1104, allocations: 0 / 0.4983 GB, free: 304 kB / 366.1 MB Notification: Performance of Transformations before backend: time 1.895e-05/0.1104, allocations: 0 / 0.4983 GB, free: 304 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: 265 * Number of variables: 265 Notification: Performance of Generate backend data structure: time 0.002514/0.113, allocations: 1.799 MB / 0.5 GB, free: 14.43 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.933e-05/0.113, allocations: 8.031 kB / 0.5 GB, free: 14.43 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002149/0.1132, allocations: 170.8 kB / 0.5002 GB, free: 14.25 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002271/0.1135, allocations: 202.4 kB / 0.5004 GB, free: 14.05 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009362/0.1144, allocations: 0.7706 MB / 0.5011 GB, free: 13.23 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001716/0.1146, allocations: 82.52 kB / 0.5012 GB, free: 13.14 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001268/0.1147, allocations: 108.4 kB / 0.5013 GB, free: 13.04 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001771/0.1165, allocations: 1.186 MB / 0.5025 GB, free: 11.79 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.248e-05/0.1165, allocations: 7.875 kB / 0.5025 GB, free: 11.78 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.009e-05/0.1166, allocations: 47.98 kB / 0.5025 GB, free: 11.73 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.608e-05/0.1166, allocations: 24 kB / 0.5026 GB, free: 11.71 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001463/0.1181, allocations: 1.113 MB / 0.5036 GB, free: 10.59 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004426/0.1225, allocations: 3.697 MB / 0.5073 GB, free: 6.777 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001977/0.1245, allocations: 1.362 MB / 0.5086 GB, free: 5.406 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007266/0.1253, allocations: 490.6 kB / 0.5091 GB, free: 4.926 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.607e-05/0.1253, allocations: 32.86 kB / 0.5091 GB, free: 4.895 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006723/0.126, allocations: 0.5471 MB / 0.5096 GB, free: 4.332 MB / 382.1 MB Notification: Performance of pre-optimization done (n=72): time 3.667e-06/0.126, allocations: 0 / 0.5096 GB, free: 4.332 MB / 382.1 MB Notification: Performance of matching and sorting (n=72): time 0.002044/0.1281, allocations: 1.57 MB / 0.5112 GB, free: 2.758 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.137e-05/0.1281, allocations: 67.98 kB / 0.5112 GB, free: 2.68 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001605/0.1298, allocations: 1.301 MB / 0.5125 GB, free: 1.371 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.92e-05/0.1298, allocations: 37.7 kB / 0.5125 GB, free: 1.328 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005677/0.1304, allocations: 0.7756 MB / 0.5133 GB, free: 0.543 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001844/0.1306, allocations: 244.4 kB / 0.5135 GB, free: 308 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001594/0.1307, allocations: 122.6 kB / 0.5136 GB, free: 180 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001307/0.1309, allocations: 334 kB / 0.5139 GB, free: 15.84 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005405/0.1314, allocations: 445.8 kB / 0.5144 GB, free: 15.41 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006052/0.132, allocations: 0.5562 MB / 0.5149 GB, free: 14.8 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001257/0.1333, allocations: 1.046 MB / 0.5159 GB, free: 13.72 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.1333, allocations: 0 / 0.5159 GB, free: 13.72 MB / 398.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001448/0.1348, allocations: 1.222 MB / 0.5171 GB, free: 12.49 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.969e-05/0.1348, allocations: 12 kB / 0.5171 GB, free: 12.48 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.1348, allocations: 4 kB / 0.5171 GB, free: 12.47 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.763e-05/0.1348, allocations: 4 kB / 0.5172 GB, free: 12.47 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004787/0.1353, allocations: 143.8 kB / 0.5173 GB, free: 12.33 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.406e-05/0.1353, allocations: 11.94 kB / 0.5173 GB, free: 12.32 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002629/0.1356, allocations: 55.36 kB / 0.5174 GB, free: 12.26 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.046e-05/0.1357, allocations: 28 kB / 0.5174 GB, free: 12.23 MB / 398.1 MB Warning: Assuming fixed start value for the following 2 variables: min_QL:DISCRETE(start = 1.0 fixed = true ) "Minimum quality of life" type: Real min_dPop:DISCRETE(unit = "1/yr" fixed = true ) "Minimal derivative of population" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$PRE.min_QL,$PRE.min_dPop,min_QL,min_dPop,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 (89): * Single equations (assignments): 89 * 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.0005167/0.1362, allocations: 390 kB / 0.5177 GB, free: 11.84 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001473/0.1363, allocations: 146.1 kB / 0.5179 GB, free: 11.7 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001592/0.1379, allocations: 1.231 MB / 0.5191 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.856e-05/0.138, allocations: 11.94 kB / 0.5191 GB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.138, allocations: 0 / 0.5191 GB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.011e-05/0.138, allocations: 3.984 kB / 0.5191 GB, free: 10.44 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002822/0.1408, allocations: 2.425 MB / 0.5215 GB, free: 7.957 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.983e-06/0.1408, allocations: 7.984 kB / 0.5215 GB, free: 7.949 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004838/0.1413, allocations: 111.9 kB / 0.5216 GB, free: 7.84 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.136e-05/0.1414, allocations: 7.938 kB / 0.5216 GB, free: 7.832 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.221e-05/0.1414, allocations: 16 kB / 0.5216 GB, free: 7.816 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.538e-06/0.1414, allocations: 0 / 0.5216 GB, free: 7.816 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.1414, allocations: 3.938 kB / 0.5216 GB, free: 7.812 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002357/0.1438, allocations: 1.933 MB / 0.5235 GB, free: 5.863 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003435/0.1441, allocations: 251 kB / 0.5237 GB, free: 5.598 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.443e-05/0.1442, allocations: 16 kB / 0.5238 GB, free: 5.582 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002263/0.1445, allocations: 15.98 kB / 0.5238 GB, free: 5.566 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.213e-05/0.1446, allocations: 36.61 kB / 0.5238 GB, free: 5.531 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.954e-05/0.1446, allocations: 27.98 kB / 0.5238 GB, free: 5.504 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001072/0.1457, allocations: 0.8969 MB / 0.5247 GB, free: 4.609 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1457, allocations: 0 / 0.5247 GB, free: 4.609 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000581/0.1463, allocations: 222.9 kB / 0.5249 GB, free: 4.391 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: 3 ($whenCondition1,min_dPop,min_QL) * Number of discrete states: 2 (min_dPop,min_QL) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.002365/0.1486, allocations: 2.5 MB / 0.5274 GB, free: 1.859 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001256/0.1499, allocations: 1.021 MB / 0.5284 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.1499, allocations: 0.6875 kB / 0.5284 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005801/0.1505, allocations: 0.5268 MB / 0.5289 GB, free: 320 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005543/0.1511, allocations: 99.56 kB / 0.529 GB, free: 224 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01433/0.1654, allocations: 11.66 MB / 0.5404 GB, free: 4.367 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001055/0.1665, allocations: 1.323 MB / 0.5416 GB, free: 3.016 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000249/0.1668, allocations: 72.53 kB / 0.5417 GB, free: 2.941 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006534/0.1674, allocations: 0.593 MB / 0.5423 GB, free: 2.348 MB / 414.1 MB Notification: Performance of SimCode: time 8.61e-07/0.1674, allocations: 0 / 0.5423 GB, free: 2.348 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04531/0.2128, allocations: 18.69 MB / 0.5605 GB, free: 15.73 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.809/10.02, allocations: 18.94 kB / 0.5606 GB, free: 15.71 MB / 446.1 MB (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_6_fmu --startTime=1900 --stopTime=2100 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_6.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe 2>&1)