Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.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.PowerPlantTest2,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2",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.001601/0.001601, allocations: 184.8 kB / 13.19 MB, free: 2.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.122/2.122, allocations: 205.2 MB / 218.9 MB, free: 9.199 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.001138/0.001137, allocations: 85.09 kB / 267.1 MB, free: 9.27 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2806/0.2806, allocations: 37.96 MB / 353.1 MB, free: 3.055 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 4.85e-05/4.871e-05, allocations: 7.984 kB / 416.9 MB, free: 41.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.1155, allocations: 56.32 MB / 473.2 MB, free: 0.8203 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5021/0.6177, allocations: 103.5 MB / 0.5632 GB, free: 140 kB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003368/0.6181, allocations: 83.95 kB / 0.5633 GB, free: 56 kB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09923/0.7173, allocations: 22.57 MB / 0.5853 GB, free: 9.312 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.804e-06/0.7174, allocations: 0 / 0.5853 GB, free: 9.312 MB / 426.7 MB Notification: Performance of Transformations before backend: time 8.927e-05/0.7175, allocations: 16 kB / 0.5854 GB, free: 9.297 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.003062/0.7206, allocations: 0.9561 MB / 0.5863 GB, free: 8.293 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.606e-05/0.7206, allocations: 8.031 kB / 0.5863 GB, free: 8.285 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003039/0.7209, allocations: 106.5 kB / 0.5864 GB, free: 8.172 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001817/0.7228, allocations: 182.7 kB / 0.5866 GB, free: 7.992 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002073/0.7249, allocations: 0.5895 MB / 0.5872 GB, free: 7.363 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001072/0.7251, allocations: 45.3 kB / 0.5872 GB, free: 7.32 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002173/0.7254, allocations: 63.94 kB / 0.5873 GB, free: 7.258 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002017/0.7274, allocations: 0.7016 MB / 0.5879 GB, free: 6.516 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.957e-05/0.7275, allocations: 3.938 kB / 0.5879 GB, free: 6.512 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001134/0.7276, allocations: 35.94 kB / 0.588 GB, free: 6.477 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.097e-05/0.7277, allocations: 29.3 kB / 0.588 GB, free: 6.445 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001867/0.7296, allocations: 0.5674 MB / 0.5886 GB, free: 5.879 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007811/0.7374, allocations: 2.977 MB / 0.5915 GB, free: 2.781 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00208/0.7396, allocations: 0.6483 MB / 0.5921 GB, free: 2.09 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005685/0.7402, allocations: 211.1 kB / 0.5923 GB, free: 1.879 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.02e-05/0.7403, allocations: 4.438 kB / 0.5923 GB, free: 1.875 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.381e-05/0.7403, allocations: 39 kB / 0.5923 GB, free: 1.828 MB / 426.7 MB Notification: Performance of pre-optimization done (n=50): time 4.088e-06/0.7404, allocations: 0 / 0.5923 GB, free: 1.828 MB / 426.7 MB Notification: Performance of matching and sorting (n=50): time 0.001504/0.7419, allocations: 469.2 kB / 0.5928 GB, free: 1.367 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.651e-05/0.742, allocations: 111.2 kB / 0.5929 GB, free: 1.234 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001039/0.743, allocations: 499.5 kB / 0.5934 GB, free: 0.7383 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.52e-05/0.7431, allocations: 33.7 kB / 0.5934 GB, free: 0.6992 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003715/0.7435, allocations: 379.6 kB / 0.5938 GB, free: 332 kB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002329/0.7438, allocations: 177.4 kB / 0.5939 GB, free: 152 kB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.808e-05/0.7438, allocations: 8 kB / 0.5939 GB, free: 144 kB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000208/0.7441, allocations: 338.9 kB / 0.5943 GB, free: 15.8 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005492/0.7446, allocations: 181.6 kB / 0.5944 GB, free: 15.62 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006919/0.7453, allocations: 298.9 kB / 0.5947 GB, free: 15.28 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006272/0.746, allocations: 219.1 kB / 0.5949 GB, free: 15.07 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.141e-06/0.746, allocations: 0 / 0.5949 GB, free: 15.07 MB / 442.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.002207/0.7482, allocations: 0.6554 MB / 0.5956 GB, free: 14.4 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007924/0.749, allocations: 1.408 MB / 0.597 GB, free: 12.89 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.557e-05/0.7491, allocations: 4 kB / 0.597 GB, free: 12.88 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006815/0.7498, allocations: 104.8 kB / 0.5971 GB, free: 12.78 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001232/0.751, allocations: 147.8 kB / 0.5972 GB, free: 12.63 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001028/0.7521, allocations: 0.7045 MB / 0.5979 GB, free: 11.9 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001069/0.7532, allocations: 95.45 kB / 0.598 GB, free: 11.81 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.277e-05/0.7533, allocations: 20 kB / 0.598 GB, free: 11.79 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.666e-05/0.7533, allocations: 4 kB / 0.598 GB, free: 11.79 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001859/0.7551, allocations: 0.5682 MB / 0.5986 GB, free: 11.21 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.302e-05/0.7552, allocations: 7.953 kB / 0.5986 GB, free: 11.21 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004511/0.7557, allocations: 96.8 kB / 0.5987 GB, free: 11.11 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001162/0.7568, allocations: 140.1 kB / 0.5988 GB, free: 10.97 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00338/0.7602, allocations: 2.007 MB / 0.6007 GB, free: 8.832 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000717/0.761, allocations: 67.5 kB / 0.6008 GB, free: 8.766 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.834e-05/0.7611, allocations: 20 kB / 0.6008 GB, free: 8.746 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 3 (system.initime,powerPlant.throttleCosts.local_reset,powerPlant.hotwellLevel.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 60 * 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 10} Notification: Performance of prepare postOptimizeDAE: time 0.0002691/0.7614, allocations: 140.9 kB / 0.601 GB, free: 8.602 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002454/0.7616, allocations: 67.16 kB / 0.601 GB, free: 8.535 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001577/0.7632, allocations: 0.5029 MB / 0.6015 GB, free: 8.02 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.07e-05/0.7633, allocations: 4 kB / 0.6015 GB, free: 8.016 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.7633, allocations: 0 / 0.6015 GB, free: 8.016 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.238e-05/0.7633, allocations: 4 kB / 0.6015 GB, free: 8.012 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003102/0.7664, allocations: 1.232 MB / 0.6027 GB, free: 6.727 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.352e-06/0.7665, allocations: 4 kB / 0.6027 GB, free: 6.723 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00128/0.7678, allocations: 123.9 kB / 0.6029 GB, free: 6.602 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.247e-05/0.7678, allocations: 0 / 0.6029 GB, free: 6.602 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.288e-05/0.7679, allocations: 12 kB / 0.6029 GB, free: 6.59 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.307e-06/0.7679, allocations: 7.938 kB / 0.6029 GB, free: 6.582 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.768, allocations: 0 / 0.6029 GB, free: 6.582 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002173/0.7701, allocations: 0.8289 MB / 0.6037 GB, free: 5.723 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004781/0.7707, allocations: 192.1 kB / 0.6039 GB, free: 5.516 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001277/0.7708, allocations: 8 kB / 0.6039 GB, free: 5.508 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008307/0.7717, allocations: 55.95 kB / 0.6039 GB, free: 5.453 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000168/0.7719, allocations: 36.38 kB / 0.604 GB, free: 5.418 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.815e-05/0.7719, allocations: 23.94 kB / 0.604 GB, free: 5.395 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0008643/0.7728, allocations: 395.2 kB / 0.6044 GB, free: 5.012 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.557e-06/0.7728, allocations: 112 / 0.6044 GB, free: 5.012 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00141/0.7742, allocations: 279.1 kB / 0.6046 GB, free: 4.738 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 9 (powerPlant.rotor.phi,powerPlant.rotor.w,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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (51): * Single equations (assignments): 50 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002604/0.7769, allocations: 1.454 MB / 0.606 GB, free: 3.254 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002526/0.7795, allocations: 0.848 MB / 0.6069 GB, free: 2.391 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/0.7795, allocations: 0 / 0.6069 GB, free: 2.391 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006723/0.7802, allocations: 223.7 kB / 0.6071 GB, free: 2.172 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001223/0.7814, allocations: 135.3 kB / 0.6072 GB, free: 2.043 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004953/0.7864, allocations: 1.368 MB / 0.6086 GB, free: 0.6172 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008441/0.7873, allocations: 0.9616 MB / 0.6095 GB, free: 15.62 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007244/0.7881, allocations: 259.3 kB / 0.6097 GB, free: 15.38 MB / 458.7 MB Notification: Performance of SimCode: time 1.543e-06/0.7881, allocations: 0 / 0.6097 GB, free: 15.38 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.98/3.768, allocations: 12.75 MB / 0.6222 GB, free: 2.613 MB / 458.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2.fmu > PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe 2>&1)