Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.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.HydroPlantTest2,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest2",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.002171/0.002171, allocations: 186.8 kB / 15.76 MB, free: 6.363 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.072/2.072, allocations: 205.4 MB / 221.9 MB, free: 13.86 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.001131/0.001131, allocations: 90.86 kB / 270.2 MB, free: 13.39 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2713/0.2713, allocations: 38.05 MB / 356.6 MB, free: 0.8242 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006465/0.0006466, allocations: 15.98 kB / 422.8 MB, free: 26.36 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.1134, allocations: 56.33 MB / 479.1 MB, free: 1.961 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5051/0.6186, allocations: 103.9 MB / 0.5694 GB, free: 12.29 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003581/0.619, allocations: 93.88 kB / 0.5695 GB, free: 12.23 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.104/0.723, allocations: 25.2 MB / 0.5941 GB, free: 7.348 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.294e-06/0.7231, allocations: 0 / 0.5941 GB, free: 7.348 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.325e-05/0.7231, allocations: 19.98 kB / 0.5941 GB, free: 7.328 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.003147/0.7263, allocations: 1.026 MB / 0.5951 GB, free: 6.293 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.071e-05/0.7264, allocations: 8.031 kB / 0.5951 GB, free: 6.285 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002602/0.7266, allocations: 101.7 kB / 0.5952 GB, free: 6.211 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002139/0.7288, allocations: 198.9 kB / 0.5954 GB, free: 6.016 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001638/0.7304, allocations: 0.5543 MB / 0.596 GB, free: 5.516 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.099e-05/0.7305, allocations: 40.69 kB / 0.596 GB, free: 5.492 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001715/0.7307, allocations: 62.73 kB / 0.5961 GB, free: 5.449 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002231/0.7329, allocations: 0.7865 MB / 0.5968 GB, free: 4.848 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.961e-05/0.733, allocations: 7.891 kB / 0.5968 GB, free: 4.84 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.558e-05/0.7331, allocations: 23.19 kB / 0.5969 GB, free: 4.832 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001676/0.7333, allocations: 45.2 kB / 0.5969 GB, free: 4.789 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002521/0.7358, allocations: 0.7411 MB / 0.5976 GB, free: 4.262 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006652/0.7425, allocations: 2.938 MB / 0.6005 GB, free: 1.812 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002319/0.7449, allocations: 0.6031 MB / 0.6011 GB, free: 1.359 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.76e-05/0.745, allocations: 12.42 kB / 0.6011 GB, free: 1.348 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001297/0.7463, allocations: 439.6 kB / 0.6015 GB, free: 1.008 MB / 394.7 MB Notification: Performance of pre-optimization done (n=56): time 3.667e-06/0.7463, allocations: 4 kB / 0.6015 GB, free: 1.004 MB / 394.7 MB Notification: Performance of matching and sorting (n=58): time 0.00739/0.7537, allocations: 2.276 MB / 0.6037 GB, free: 15.14 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.153e-05/0.7539, allocations: 118.8 kB / 0.6039 GB, free: 15 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001023/0.7549, allocations: 431.8 kB / 0.6043 GB, free: 14.65 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.666e-05/0.755, allocations: 39.92 kB / 0.6043 GB, free: 14.61 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002981/0.7553, allocations: 349.5 kB / 0.6046 GB, free: 14.35 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002478/0.7556, allocations: 193.1 kB / 0.6048 GB, free: 14.19 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.36e-05/0.7557, allocations: 10.56 kB / 0.6048 GB, free: 14.19 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001498/0.7558, allocations: 338.9 kB / 0.6052 GB, free: 13.86 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001052/0.7569, allocations: 292.4 kB / 0.6054 GB, free: 13.66 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001155/0.7581, allocations: 412.9 kB / 0.6058 GB, free: 13.32 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001186/0.7593, allocations: 374.2 kB / 0.6062 GB, free: 13.07 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.539e-06/0.7593, allocations: 0 / 0.6062 GB, free: 13.07 MB / 410.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.003509/0.7628, allocations: 0.9861 MB / 0.6072 GB, free: 12.31 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00053/0.7634, allocations: 1.074 MB / 0.6082 GB, free: 11.17 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.673e-05/0.7634, allocations: 4 kB / 0.6082 GB, free: 11.17 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001223/0.7646, allocations: 225.2 kB / 0.6084 GB, free: 10.98 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009943/0.7657, allocations: 119 kB / 0.6085 GB, free: 10.87 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002955/0.7686, allocations: 2.187 MB / 0.6107 GB, free: 8.703 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001087/0.7698, allocations: 69.3 kB / 0.6107 GB, free: 8.645 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.641e-05/0.7698, allocations: 24.06 kB / 0.6108 GB, free: 8.625 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.045e-05/0.7699, allocations: 4 kB / 0.6108 GB, free: 8.621 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003053/0.7729, allocations: 0.8816 MB / 0.6116 GB, free: 7.957 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.044e-05/0.773, allocations: 8.031 kB / 0.6116 GB, free: 7.949 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007619/0.7737, allocations: 153.6 kB / 0.6118 GB, free: 7.793 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009519/0.7747, allocations: 123.8 kB / 0.6119 GB, free: 7.672 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003781/0.7785, allocations: 2.277 MB / 0.6141 GB, free: 5.266 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000833/0.7794, allocations: 47.95 kB / 0.6142 GB, free: 5.219 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.131e-05/0.7795, allocations: 27.92 kB / 0.6142 GB, free: 5.191 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,$whenCondition1,$PRE.secondary.T_start,secondary.T_start,$PRE.secondary.count,secondary.count,hydroPlant.reservoirLevel.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (59): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {1 13} Notification: Performance of prepare postOptimizeDAE: time 0.0006265/0.7801, allocations: 309.5 kB / 0.6145 GB, free: 4.879 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001865/0.7803, allocations: 63.25 kB / 0.6145 GB, free: 4.816 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002979/0.7833, allocations: 0.8461 MB / 0.6154 GB, free: 3.957 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-05/0.7833, allocations: 8 kB / 0.6154 GB, free: 3.949 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.001e-05/0.7834, allocations: 7.984 kB / 0.6154 GB, free: 3.941 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.088e-05/0.7834, allocations: 0 / 0.6154 GB, free: 3.941 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00475/0.7881, allocations: 1.702 MB / 0.617 GB, free: 2.156 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.257e-06/0.7882, allocations: 3.984 kB / 0.6171 GB, free: 2.152 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001182/0.7894, allocations: 140 kB / 0.6172 GB, free: 2.016 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003771/0.7898, allocations: 65.62 kB / 0.6172 GB, free: 1.945 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.279e-05/0.7899, allocations: 19.98 kB / 0.6173 GB, free: 1.926 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002828/0.7927, allocations: 2.698 MB / 0.6199 GB, free: 14.96 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.133e-06/0.7928, allocations: 7.938 kB / 0.6199 GB, free: 14.95 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004189/0.797, allocations: 1.419 MB / 0.6213 GB, free: 13.44 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004373/0.7974, allocations: 188.3 kB / 0.6215 GB, free: 13.24 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001262/0.7976, allocations: 12 kB / 0.6215 GB, free: 13.23 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008866/0.7985, allocations: 71.86 kB / 0.6216 GB, free: 13.16 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002106/0.7987, allocations: 60.38 kB / 0.6216 GB, free: 13.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.294e-05/0.7988, allocations: 24 kB / 0.6216 GB, free: 13.07 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0008879/0.7997, allocations: 346.8 kB / 0.622 GB, free: 12.74 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.61e-07/0.7997, allocations: 0 / 0.622 GB, free: 12.74 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001385/0.8011, allocations: 267.9 kB / 0.6222 GB, free: 12.48 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (hydroPlant.reservoirLevel.y,hydroPlant.rotor.phi,hydroPlant.rotor.w,hydroPlant.controlDynamics.x_scaled[1]) * Number of discrete variables: 4 (system.initime,$whenCondition1,secondary.T_start,secondary.count) * Number of discrete states: 1 (secondary.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004764/0.8059, allocations: 2.465 MB / 0.6246 GB, free: 9.934 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004688/0.8106, allocations: 1.584 MB / 0.6262 GB, free: 8.277 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.692e-06/0.8107, allocations: 0 / 0.6262 GB, free: 8.277 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001727/0.8124, allocations: 0.6103 MB / 0.6268 GB, free: 7.645 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001034/0.8135, allocations: 118.2 kB / 0.6269 GB, free: 7.531 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01401/0.8275, allocations: 6.307 MB / 0.633 GB, free: 1.078 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007459/0.8283, allocations: 0.9585 MB / 0.634 GB, free: 96 kB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000718/0.829, allocations: 235.4 kB / 0.6342 GB, free: 15.86 MB / 442.7 MB Notification: Performance of SimCode: time 1.193e-06/0.829, allocations: 0 / 0.6342 GB, free: 15.86 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.104/3.933, allocations: 16.34 MB / 0.6502 GB, free: 15.49 MB / 458.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest2_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest2.fmu > PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe 2>&1)