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.005109/0.005109, allocations: 98.56 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.001483/0.001483, allocations: 195.9 kB / 16.68 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.38/1.38, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2949/0.2949, allocations: 28.8 MB / 319.4 MB, free: 5.605 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001897/0.001897, allocations: 63.38 kB / 443.9 MB, free: 36.86 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08513/0.08705, allocations: 56.43 MB / 0.4886 GB, free: 8.879 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.003629/0.09071, allocations: 3.688 MB / 0.4922 GB, free: 5.914 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001475/0.09221, allocations: 0.7668 MB / 0.4929 GB, free: 5.277 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003383/0.09256, allocations: 21.53 kB / 0.4929 GB, free: 5.27 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003717/0.09295, allocations: 173.6 kB / 0.4931 GB, free: 5.129 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002879/0.09325, allocations: 142.7 kB / 0.4932 GB, free: 5.023 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006173/0.09388, allocations: 378.5 kB / 0.4936 GB, free: 4.723 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006129/0.0945, allocations: 0.8568 MB / 0.4944 GB, free: 4.195 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006043/0.09511, allocations: 0.6466 MB / 0.4951 GB, free: 3.602 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001833/0.0953, allocations: 346.3 kB / 0.4954 GB, free: 3.262 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002253/0.09553, allocations: 433.6 kB / 0.4958 GB, free: 2.836 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001009/0.09564, allocations: 88 kB / 0.4959 GB, free: 2.75 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001556/0.0958, allocations: 112 kB / 0.496 GB, free: 2.641 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002167/0.09603, allocations: 438.4 kB / 0.4964 GB, free: 2.211 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002663/0.0963, allocations: 0.632 MB / 0.497 GB, free: 1.574 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008125/0.09712, allocations: 1.278 MB / 0.4983 GB, free: 296 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.09713, allocations: 0 / 0.4983 GB, free: 296 kB / 366.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.09714, allocations: 0 / 0.4983 GB, free: 296 kB / 366.1 MB Notification: Performance of Transformations before backend: time 1.796e-05/0.09717, allocations: 0 / 0.4983 GB, free: 296 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.002236/0.09941, allocations: 1.857 MB / 0.5001 GB, free: 14.36 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.85e-05/0.09946, allocations: 8.031 kB / 0.5001 GB, free: 14.36 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002224/0.09968, allocations: 182.7 kB / 0.5003 GB, free: 14.16 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002403/0.09993, allocations: 211.6 kB / 0.5005 GB, free: 13.96 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000987/0.1009, allocations: 0.776 MB / 0.5013 GB, free: 13.13 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.265e-05/0.101, allocations: 82.52 kB / 0.5013 GB, free: 13.05 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001264/0.1011, allocations: 108.4 kB / 0.5014 GB, free: 12.95 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001676/0.1028, allocations: 1.194 MB / 0.5026 GB, free: 11.68 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.73e-05/0.1029, allocations: 3.938 kB / 0.5026 GB, free: 11.68 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.936e-05/0.1029, allocations: 44 kB / 0.5026 GB, free: 11.64 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.781e-05/0.103, allocations: 24 kB / 0.5027 GB, free: 11.61 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001604/0.1046, allocations: 1.117 MB / 0.5038 GB, free: 10.49 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004477/0.1091, allocations: 3.706 MB / 0.5074 GB, free: 6.672 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001692/0.1108, allocations: 1.358 MB / 0.5087 GB, free: 5.305 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005919/0.1114, allocations: 494.6 kB / 0.5092 GB, free: 4.82 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.796e-05/0.1115, allocations: 32.84 kB / 0.5092 GB, free: 4.789 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000759/0.1122, allocations: 0.5471 MB / 0.5097 GB, free: 4.227 MB / 382.1 MB Notification: Performance of pre-optimization done (n=72): time 2.916e-06/0.1122, allocations: 0 / 0.5097 GB, free: 4.227 MB / 382.1 MB Notification: Performance of matching and sorting (n=72): time 0.002064/0.1143, allocations: 1.575 MB / 0.5113 GB, free: 2.648 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.443e-05/0.1144, allocations: 68 kB / 0.5113 GB, free: 2.57 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001469/0.1159, allocations: 1.293 MB / 0.5126 GB, free: 1.27 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.201e-05/0.1159, allocations: 41.7 kB / 0.5126 GB, free: 1.223 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006514/0.1166, allocations: 0.7883 MB / 0.5134 GB, free: 436 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002107/0.1168, allocations: 257.8 kB / 0.5137 GB, free: 176 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001809/0.117, allocations: 118.7 kB / 0.5138 GB, free: 52 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001734/0.1172, allocations: 337.9 kB / 0.5141 GB, free: 15.71 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005674/0.1177, allocations: 445.7 kB / 0.5145 GB, free: 15.28 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006618/0.1184, allocations: 0.5523 MB / 0.5151 GB, free: 14.68 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001353/0.1198, allocations: 1.046 MB / 0.5161 GB, free: 13.59 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.1198, allocations: 3.938 kB / 0.5161 GB, free: 13.59 MB / 398.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.00159/0.1214, allocations: 1.23 MB / 0.5173 GB, free: 12.35 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.815e-05/0.1214, allocations: 8 kB / 0.5173 GB, free: 12.34 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.846e-06/0.1214, allocations: 4 kB / 0.5173 GB, free: 12.34 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.718e-05/0.1214, allocations: 4 kB / 0.5173 GB, free: 12.34 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004901/0.1219, allocations: 143.7 kB / 0.5174 GB, free: 12.2 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.321e-05/0.122, allocations: 8 kB / 0.5174 GB, free: 12.19 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002576/0.1222, allocations: 59.52 kB / 0.5175 GB, free: 12.13 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.323e-05/0.1223, allocations: 24 kB / 0.5175 GB, free: 12.11 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.0005406/0.1228, allocations: 398.1 kB / 0.5179 GB, free: 11.71 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001542/0.123, allocations: 151 kB / 0.5181 GB, free: 11.56 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001697/0.1247, allocations: 1.231 MB / 0.5193 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.035e-05/0.1247, allocations: 11.94 kB / 0.5193 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.1247, allocations: 0 / 0.5193 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.656e-06/0.1247, allocations: 3.984 kB / 0.5193 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002893/0.1276, allocations: 2.433 MB / 0.5216 GB, free: 7.809 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.1276, allocations: 0 / 0.5216 GB, free: 7.809 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004733/0.1281, allocations: 115.8 kB / 0.5218 GB, free: 7.695 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.065e-06/0.1281, allocations: 7.938 kB / 0.5218 GB, free: 7.688 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.015e-05/0.1282, allocations: 19.98 kB / 0.5218 GB, free: 7.668 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.416e-06/0.1282, allocations: 4 kB / 0.5218 GB, free: 7.664 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.1282, allocations: 0 / 0.5218 GB, free: 7.664 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002307/0.1305, allocations: 1.937 MB / 0.5237 GB, free: 5.711 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002861/0.1308, allocations: 259.9 kB / 0.5239 GB, free: 5.438 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.565e-05/0.1309, allocations: 16 kB / 0.5239 GB, free: 5.422 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002311/0.1311, allocations: 12 kB / 0.524 GB, free: 5.41 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.819e-05/0.1312, allocations: 40.59 kB / 0.524 GB, free: 5.371 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.803e-05/0.1313, allocations: 20 kB / 0.524 GB, free: 5.352 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001115/0.1324, allocations: 0.8969 MB / 0.5249 GB, free: 4.457 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.204e-06/0.1324, allocations: 0 / 0.5249 GB, free: 4.457 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005826/0.133, allocations: 227.1 kB / 0.5251 GB, free: 4.234 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.002658/0.1357, allocations: 2.507 MB / 0.5276 GB, free: 1.695 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001379/0.1371, allocations: 1.025 MB / 0.5286 GB, free: 0.668 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.1371, allocations: 4.062 kB / 0.5286 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006358/0.1377, allocations: 0.5191 MB / 0.5291 GB, free: 152 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005936/0.1383, allocations: 97.59 kB / 0.5292 GB, free: 56 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01619/0.1545, allocations: 11.72 MB / 0.5406 GB, free: 4.141 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001123/0.1557, allocations: 1.326 MB / 0.5419 GB, free: 2.785 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002563/0.1559, allocations: 76.53 kB / 0.542 GB, free: 2.707 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007028/0.1567, allocations: 0.5969 MB / 0.5426 GB, free: 2.109 MB / 414.1 MB Notification: Performance of SimCode: time 7.01e-07/0.1567, allocations: 0 / 0.5426 GB, free: 2.109 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.38/2.537, allocations: 19.05 MB / 0.5612 GB, free: 15.12 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.19/17.73, allocations: 7.859 kB / 0.5612 GB, free: 15.12 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)