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.006083/0.006083, allocations: 108.9 kB / 15.74 MB, free: 6.449 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.0015/0.0015, allocations: 197 kB / 16.67 MB, free: 6.355 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.368/1.368, allocations: 222.9 MB / 240.4 MB, free: 4.266 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3276/0.3276, allocations: 28.81 MB / 319.3 MB, free: 5.617 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001211/0.001211, allocations: 72.09 kB / 443.9 MB, free: 36.73 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1052, allocations: 56.42 MB / 0.4886 GB, free: 8.758 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_4): time 0.004368/0.1096, allocations: 3.673 MB / 0.4922 GB, free: 5.805 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002541/0.1122, allocations: 0.6847 MB / 0.4928 GB, free: 5.23 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00145/0.1137, allocations: 18.22 kB / 0.4928 GB, free: 5.227 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008687/0.1146, allocations: 171.9 kB / 0.493 GB, free: 5.086 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009206/0.1156, allocations: 149.5 kB / 0.4931 GB, free: 4.977 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008999/0.1165, allocations: 367.2 kB / 0.4935 GB, free: 4.684 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001133/0.1176, allocations: 0.8469 MB / 0.4943 GB, free: 4.16 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008295/0.1185, allocations: 0.6358 MB / 0.4949 GB, free: 3.699 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002238/0.1187, allocations: 342.3 kB / 0.4953 GB, free: 3.363 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002355/0.119, allocations: 425.6 kB / 0.4957 GB, free: 2.945 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001109/0.1191, allocations: 88 kB / 0.4958 GB, free: 2.859 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001803/0.1193, allocations: 116 kB / 0.4959 GB, free: 2.746 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002534/0.1195, allocations: 450.4 kB / 0.4963 GB, free: 2.305 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002908/0.1198, allocations: 0.6241 MB / 0.4969 GB, free: 1.676 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009044/0.1207, allocations: 1.298 MB / 0.4982 GB, free: 384 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.1207, allocations: 0 / 0.4982 GB, free: 384 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.1208, allocations: 0 / 0.4982 GB, free: 384 kB / 366.1 MB Notification: Performance of Transformations before backend: time 1.48e-05/0.1208, allocations: 0 / 0.4982 GB, free: 384 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.002102/0.1229, allocations: 1.823 MB / 0.5 GB, free: 14.49 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.441e-05/0.1229, allocations: 12.03 kB / 0.5 GB, free: 14.48 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002125/0.1232, allocations: 175.5 kB / 0.5001 GB, free: 14.29 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002146/0.1234, allocations: 206.3 kB / 0.5003 GB, free: 14.09 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008633/0.1242, allocations: 0.7702 MB / 0.5011 GB, free: 13.27 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.521e-05/0.1243, allocations: 86.53 kB / 0.5012 GB, free: 13.18 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001153/0.1245, allocations: 108.4 kB / 0.5013 GB, free: 13.08 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001647/0.1261, allocations: 1.294 MB / 0.5025 GB, free: 11.71 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.134e-05/0.1261, allocations: 3.938 kB / 0.5025 GB, free: 11.71 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.298e-05/0.1262, allocations: 44 kB / 0.5026 GB, free: 11.67 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.031e-05/0.1263, allocations: 51.97 kB / 0.5026 GB, free: 11.62 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001492/0.1278, allocations: 1.23 MB / 0.5038 GB, free: 10.38 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004402/0.1322, allocations: 3.909 MB / 0.5077 GB, free: 6.355 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001575/0.1338, allocations: 1.369 MB / 0.509 GB, free: 4.961 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005465/0.1343, allocations: 499.2 kB / 0.5095 GB, free: 4.469 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.955e-05/0.1344, allocations: 32.77 kB / 0.5095 GB, free: 4.438 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.793e-05/0.1345, allocations: 39.06 kB / 0.5095 GB, free: 4.391 MB / 382.1 MB Notification: Performance of pre-optimization done (n=70): time 2.625e-06/0.1345, allocations: 0 / 0.5095 GB, free: 4.391 MB / 382.1 MB Notification: Performance of matching and sorting (n=70): time 0.001844/0.1363, allocations: 1.563 MB / 0.5111 GB, free: 2.82 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.525e-05/0.1364, allocations: 81.67 kB / 0.5111 GB, free: 2.723 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001377/0.1378, allocations: 1.37 MB / 0.5125 GB, free: 1.344 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.09e-05/0.1378, allocations: 41.64 kB / 0.5125 GB, free: 1.297 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00059/0.1384, allocations: 0.8448 MB / 0.5133 GB, free: 452 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001769/0.1386, allocations: 244.5 kB / 0.5136 GB, free: 204 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000194/0.1388, allocations: 154.5 kB / 0.5137 GB, free: 44 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.1389, allocations: 345.9 kB / 0.514 GB, free: 15.7 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005472/0.1395, allocations: 469.8 kB / 0.5145 GB, free: 15.24 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006963/0.1402, allocations: 0.716 MB / 0.5152 GB, free: 14.41 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001328/0.1415, allocations: 1.245 MB / 0.5164 GB, free: 13.05 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.731e-06/0.1416, allocations: 4 kB / 0.5164 GB, free: 13.05 MB / 398.1 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.001628/0.1432, allocations: 1.385 MB / 0.5178 GB, free: 11.66 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.32e-05/0.1432, allocations: 11.94 kB / 0.5178 GB, free: 11.64 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.965e-05/0.1433, allocations: 8 kB / 0.5178 GB, free: 11.64 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.511e-05/0.1433, allocations: 12.75 kB / 0.5178 GB, free: 11.62 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005501/0.1438, allocations: 179.7 kB / 0.518 GB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.152e-05/0.1439, allocations: 23.92 kB / 0.518 GB, free: 11.43 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003463/0.1442, allocations: 87.06 kB / 0.5181 GB, free: 11.34 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.695e-05/0.1443, allocations: 47.98 kB / 0.5181 GB, free: 11.29 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.000485/0.1448, allocations: 399.5 kB / 0.5185 GB, free: 10.89 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000157/0.1449, allocations: 154 kB / 0.5187 GB, free: 10.74 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001557/0.1465, allocations: 1.248 MB / 0.5199 GB, free: 9.484 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.885e-06/0.1465, allocations: 8 kB / 0.5199 GB, free: 9.477 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.1465, allocations: 0 / 0.5199 GB, free: 9.477 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.311e-06/0.1465, allocations: 0 / 0.5199 GB, free: 9.477 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002532/0.1491, allocations: 2.408 MB / 0.5222 GB, free: 7.012 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/0.1491, allocations: 7.922 kB / 0.5222 GB, free: 7.004 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004769/0.1496, allocations: 115.9 kB / 0.5223 GB, free: 6.891 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.043e-06/0.1496, allocations: 4 kB / 0.5224 GB, free: 6.887 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.89e-05/0.1496, allocations: 19.98 kB / 0.5224 GB, free: 6.867 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.212e-06/0.1497, allocations: 4 kB / 0.5224 GB, free: 6.863 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.1497, allocations: 0 / 0.5224 GB, free: 6.863 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002058/0.1517, allocations: 1.988 MB / 0.5243 GB, free: 4.855 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001903/0.1519, allocations: 214.9 kB / 0.5245 GB, free: 4.625 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.467e-05/0.152, allocations: 12.06 kB / 0.5245 GB, free: 4.613 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002781/0.1523, allocations: 19.94 kB / 0.5246 GB, free: 4.594 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.577e-05/0.1524, allocations: 40.5 kB / 0.5246 GB, free: 4.555 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.993e-05/0.1525, allocations: 27.98 kB / 0.5246 GB, free: 4.527 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001093/0.1536, allocations: 0.9297 MB / 0.5255 GB, free: 3.602 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1536, allocations: 0 / 0.5255 GB, free: 3.602 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006674/0.1543, allocations: 231 kB / 0.5257 GB, free: 3.375 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.002402/0.1567, allocations: 2.557 MB / 0.5282 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001473/0.1581, allocations: 1.091 MB / 0.5293 GB, free: 15.7 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.1582, allocations: 4.062 kB / 0.5293 GB, free: 15.69 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005815/0.1588, allocations: 0.5185 MB / 0.5298 GB, free: 15.17 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006751/0.1594, allocations: 102.2 kB / 0.5299 GB, free: 15.07 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0164/0.1759, allocations: 12.37 MB / 0.542 GB, free: 2.277 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001058/0.1769, allocations: 1.338 MB / 0.5433 GB, free: 0.9102 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003825/0.1773, allocations: 128.9 kB / 0.5434 GB, free: 0.7812 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006481/0.178, allocations: 0.6203 MB / 0.544 GB, free: 164 kB / 414.1 MB Notification: Performance of SimCode: time 5.61e-07/0.178, allocations: 0 / 0.544 GB, free: 164 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04493/0.223, allocations: 19.91 MB / 0.5635 GB, free: 12.31 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.11/10.33, allocations: 10.8 kB / 0.5635 GB, free: 12.3 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_4_fmu --startTime=1900 --stopTime=2000 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_4.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe 2>&1)