Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001578/0.001577, allocations: 184.6 kB / 15.77 MB, free: 6.375 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.97/1.97, allocations: 205.4 MB / 221.9 MB, free: 13.81 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001151/0.001151, allocations: 98.84 kB / 270.2 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2684/0.2684, allocations: 38.06 MB / 356.6 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004655/0.0004656, allocations: 16 kB / 422.8 MB, free: 26.33 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.1124, allocations: 56.33 MB / 479.1 MB, free: 1.938 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3): time 0.009816/0.1223, allocations: 5.618 MB / 484.8 MB, free: 12.3 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.006846/0.1291, allocations: 2.726 MB / 487.5 MB, free: 9.559 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009186/0.1301, allocations: 39.75 kB / 487.5 MB, free: 9.52 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005418/0.1307, allocations: 119 kB / 487.6 MB, free: 9.402 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001666/0.1324, allocations: 406.6 kB / 488 MB, free: 9.004 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00179/0.1342, allocations: 434.5 kB / 488.5 MB, free: 8.582 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.00136/0.1355, allocations: 0.6526 MB / 489.1 MB, free: 7.926 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00158/0.1371, allocations: 0.7057 MB / 489.8 MB, free: 7.176 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000705/0.1379, allocations: 334.6 kB / 490.1 MB, free: 6.848 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005729/0.1385, allocations: 318.4 kB / 490.5 MB, free: 6.535 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001063/0.1386, allocations: 28 kB / 490.5 MB, free: 6.508 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008381/0.1394, allocations: 251.5 kB / 490.7 MB, free: 6.262 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002758/0.1397, allocations: 183.3 kB / 490.9 MB, free: 6.082 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002726/0.14, allocations: 169.2 kB / 491.1 MB, free: 5.91 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001664/0.1417, allocations: 0.9079 MB / 492 MB, free: 5 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.1417, allocations: 0 / 492 MB, free: 5 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.1417, allocations: 0 / 492 MB, free: 5 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.033e-05/0.1418, allocations: 0 / 492 MB, free: 5 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.00336/0.1451, allocations: 1.071 MB / 493 MB, free: 3.879 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.131e-05/0.1452, allocations: 12.03 kB / 493.1 MB, free: 3.867 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002712/0.1455, allocations: 110.5 kB / 493.2 MB, free: 3.75 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002046/0.1475, allocations: 218.6 kB / 493.4 MB, free: 3.535 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00184/0.1494, allocations: 0.5882 MB / 494 MB, free: 2.906 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.897e-05/0.1496, allocations: 61.19 kB / 494 MB, free: 2.844 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002031/0.1498, allocations: 71.89 kB / 494.1 MB, free: 2.773 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002674/0.1525, allocations: 0.874 MB / 495 MB, free: 1.855 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.871e-05/0.1525, allocations: 4 kB / 495 MB, free: 1.852 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000118/0.1527, allocations: 39.92 kB / 495 MB, free: 1.812 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.357e-05/0.1528, allocations: 33.31 kB / 495 MB, free: 1.781 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002832/0.1556, allocations: 0.8014 MB / 495.9 MB, free: 0.9805 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00871/0.1644, allocations: 3.269 MB / 499.1 MB, free: 13.59 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00326/0.1677, allocations: 0.9843 MB / 0.4884 GB, free: 12.53 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.492e-05/0.1678, allocations: 16.55 kB / 0.4884 GB, free: 12.51 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.784e-05/0.1679, allocations: 43.12 kB / 0.4884 GB, free: 12.46 MB / 346.7 MB Notification: Performance of pre-optimization done (n=59): time 3.516e-06/0.1679, allocations: 4 kB / 0.4884 GB, free: 12.46 MB / 346.7 MB Notification: Performance of matching and sorting (n=63): time 0.008913/0.1769, allocations: 2.608 MB / 0.491 GB, free: 9.75 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.699e-05/0.177, allocations: 115.3 kB / 0.4911 GB, free: 9.613 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00132/0.1783, allocations: 0.5745 MB / 0.4917 GB, free: 9.031 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001031/0.1784, allocations: 45.72 kB / 0.4917 GB, free: 8.98 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003616/0.1788, allocations: 394.6 kB / 0.4921 GB, free: 8.594 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000278/0.1791, allocations: 216.8 kB / 0.4923 GB, free: 8.379 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.974e-05/0.1792, allocations: 16 kB / 0.4923 GB, free: 8.363 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001553/0.1794, allocations: 330.8 kB / 0.4926 GB, free: 8.031 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00107/0.1804, allocations: 281.8 kB / 0.4929 GB, free: 7.754 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001177/0.1816, allocations: 421.8 kB / 0.4933 GB, free: 7.285 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001162/0.1828, allocations: 330 kB / 0.4936 GB, free: 6.961 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.07e-06/0.1828, allocations: 0 / 0.4936 GB, free: 6.961 MB / 346.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.00283/0.1857, allocations: 0.8038 MB / 0.4944 GB, free: 6.145 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007243/0.1864, allocations: 1.492 MB / 0.4958 GB, free: 4.539 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.808e-05/0.1865, allocations: 8 kB / 0.4959 GB, free: 4.531 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004496/0.1869, allocations: 60.81 kB / 0.4959 GB, free: 4.469 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001551/0.1885, allocations: 179.8 kB / 0.4961 GB, free: 4.293 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002656/0.1912, allocations: 1.693 MB / 0.4977 GB, free: 2.453 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00105/0.1923, allocations: 63.94 kB / 0.4978 GB, free: 2.391 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.416e-05/0.1924, allocations: 24 kB / 0.4978 GB, free: 2.367 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.482e-05/0.1924, allocations: 4 kB / 0.4978 GB, free: 2.363 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002618/0.1951, allocations: 0.7323 MB / 0.4985 GB, free: 1.625 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.426e-05/0.1951, allocations: 4 kB / 0.4985 GB, free: 1.621 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003244/0.1954, allocations: 64.7 kB / 0.4986 GB, free: 1.555 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001452/0.1969, allocations: 171.8 kB / 0.4988 GB, free: 1.387 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002469/0.1994, allocations: 1.7 MB / 0.5004 GB, free: 15.55 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007107/0.2002, allocations: 35.97 kB / 0.5005 GB, free: 15.51 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.189e-05/0.2003, allocations: 31.98 kB / 0.5005 GB, free: 15.48 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 3 (system.initime,powerPlant.throttleCosts.local_reset,powerPlant.hotwellLevel.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (80): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0006509/0.2009, allocations: 332.8 kB / 0.5008 GB, free: 15.14 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002235/0.2012, allocations: 71.16 kB / 0.5009 GB, free: 15.07 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002848/0.204, allocations: 0.7958 MB / 0.5017 GB, free: 14.26 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.297e-05/0.2041, allocations: 8 kB / 0.5017 GB, free: 14.25 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.2041, allocations: 3.984 kB / 0.5017 GB, free: 14.25 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.49e-05/0.2041, allocations: 7.953 kB / 0.5017 GB, free: 14.24 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00721/0.2113, allocations: 2.192 MB / 0.5038 GB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.421e-05/0.2114, allocations: 4.75 kB / 0.5038 GB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001199/0.2126, allocations: 139.8 kB / 0.504 GB, free: 11.77 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003433/0.213, allocations: 56.81 kB / 0.504 GB, free: 11.71 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.195e-05/0.2131, allocations: 27.98 kB / 0.504 GB, free: 11.68 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002189/0.2153, allocations: 1.646 MB / 0.5056 GB, free: 9.891 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.01e-05/0.2153, allocations: 8 kB / 0.5057 GB, free: 9.883 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004341/0.2197, allocations: 1.662 MB / 0.5073 GB, free: 7.961 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005898/0.2203, allocations: 208.1 kB / 0.5075 GB, free: 7.738 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001542/0.2205, allocations: 27.98 kB / 0.5075 GB, free: 7.711 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008916/0.2214, allocations: 59.89 kB / 0.5076 GB, free: 7.652 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002281/0.2216, allocations: 75.77 kB / 0.5076 GB, free: 7.578 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.204e-05/0.2217, allocations: 24 kB / 0.5077 GB, free: 7.555 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001013/0.2228, allocations: 415 kB / 0.508 GB, free: 7.156 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.2228, allocations: 0 / 0.508 GB, free: 7.156 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00162/0.2244, allocations: 252 kB / 0.5083 GB, free: 6.91 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 7 (powerPlant.evaporator.y,powerPlant.superheater1.y,powerPlant.superheater2.y,powerPlant.transferFunction.x_scaled[1],powerPlant.hotwellLevel.y,powerPlant.throttleDynamics.y,powerPlant.throttleCosts.y) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.005473/0.2299, allocations: 4.003 MB / 0.5122 GB, free: 2.699 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004188/0.2341, allocations: 1.302 MB / 0.5135 GB, free: 1.371 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.626e-06/0.2342, allocations: 0 / 0.5135 GB, free: 1.371 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001616/0.2358, allocations: 499.2 kB / 0.5139 GB, free: 0.8711 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001325/0.2372, allocations: 151.6 kB / 0.5141 GB, free: 0.7227 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3079/0.5451, allocations: 7.388 MB / 0.5213 GB, free: 47.93 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007065/0.5458, allocations: 1.003 MB / 0.5223 GB, free: 47.23 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007168/0.5465, allocations: 290 kB / 0.5226 GB, free: 47.22 MB / 362.7 MB Notification: Performance of SimCode: time 1.292e-06/0.5466, allocations: 0 / 0.5226 GB, free: 47.22 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.817/3.364, allocations: 15.57 MB / 0.5378 GB, free: 41.53 MB / 362.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest3_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest3.fmu > PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe 2>&1)