Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_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_latest_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2,fileNamePrefix="PowerSystems_latest_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.001647/0.001647, allocations: 180.2 kB / 16.38 MB, free: 5.766 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.384/1.384, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.0008281/0.000828, allocations: 94.98 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.158/0.158, allocations: 38.07 MB / 357.2 MB, free: 1.883 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003184/0.0003184, allocations: 12 kB / 424.1 MB, free: 37.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.256/0.2564, allocations: 56.32 MB / 480.4 MB, free: 9.547 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1418/0.3982, allocations: 104 MB / 0.5707 GB, free: 14.44 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002644/0.3985, allocations: 91.94 kB / 0.5708 GB, free: 14.35 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06235/0.4609, allocations: 25.2 MB / 0.5954 GB, free: 4.918 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.4609, allocations: 0 / 0.5954 GB, free: 4.918 MB / 426.7 MB Notification: Performance of Transformations before backend: time 6.432e-05/0.461, allocations: 16 kB / 0.5954 GB, free: 4.902 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.002226/0.4632, allocations: 1.038 MB / 0.5964 GB, free: 3.805 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.792e-05/0.4633, allocations: 8.031 kB / 0.5964 GB, free: 3.797 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002178/0.4635, allocations: 98.5 kB / 0.5965 GB, free: 3.691 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00134/0.4649, allocations: 194.9 kB / 0.5967 GB, free: 3.5 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001248/0.4661, allocations: 0.5485 MB / 0.5972 GB, free: 2.91 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.357e-05/0.4662, allocations: 53.23 kB / 0.5973 GB, free: 2.859 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001254/0.4663, allocations: 59.98 kB / 0.5973 GB, free: 2.801 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001439/0.4678, allocations: 0.7787 MB / 0.5981 GB, free: 1.984 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.778e-05/0.4678, allocations: 3.953 kB / 0.5981 GB, free: 1.98 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.668e-05/0.4679, allocations: 31.97 kB / 0.5981 GB, free: 1.949 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001055/0.468, allocations: 37.3 kB / 0.5982 GB, free: 1.91 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001507/0.4695, allocations: 0.7467 MB / 0.5989 GB, free: 1.164 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004279/0.4738, allocations: 2.939 MB / 0.6018 GB, free: 14.11 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001307/0.4751, allocations: 0.6043 MB / 0.6023 GB, free: 13.48 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.487e-05/0.4752, allocations: 16.41 kB / 0.6024 GB, free: 13.47 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007765/0.476, allocations: 434.2 kB / 0.6028 GB, free: 13.03 MB / 442.7 MB Notification: Performance of pre-optimization done (n=56): time 3.476e-06/0.476, allocations: 4 kB / 0.6028 GB, free: 13.02 MB / 442.7 MB Notification: Performance of matching and sorting (n=58): time 0.004504/0.4805, allocations: 2.283 MB / 0.605 GB, free: 10.64 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.186e-05/0.4806, allocations: 111.4 kB / 0.6051 GB, free: 10.5 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000728/0.4814, allocations: 429.2 kB / 0.6055 GB, free: 10.08 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.657e-05/0.4814, allocations: 37.7 kB / 0.6056 GB, free: 10.04 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002787/0.4817, allocations: 316.5 kB / 0.6059 GB, free: 9.723 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001948/0.4819, allocations: 197.2 kB / 0.606 GB, free: 9.527 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.539e-05/0.482, allocations: 8 kB / 0.6061 GB, free: 9.52 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001935/0.4822, allocations: 374.7 kB / 0.6064 GB, free: 9.145 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006637/0.4828, allocations: 297.1 kB / 0.6067 GB, free: 8.855 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007028/0.4835, allocations: 402.1 kB / 0.6071 GB, free: 8.422 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006799/0.4842, allocations: 371.7 kB / 0.6074 GB, free: 8.059 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.4843, allocations: 7.938 kB / 0.6074 GB, free: 8.051 MB / 442.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.002057/0.4863, allocations: 1.024 MB / 0.6084 GB, free: 7.004 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004889/0.4868, allocations: 1.081 MB / 0.6095 GB, free: 5.84 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.053e-05/0.4868, allocations: 4 kB / 0.6095 GB, free: 5.836 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007195/0.4876, allocations: 221.4 kB / 0.6097 GB, free: 5.617 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005001/0.4881, allocations: 119.8 kB / 0.6098 GB, free: 5.5 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002/0.4901, allocations: 2.176 MB / 0.612 GB, free: 3.16 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005912/0.4907, allocations: 71.86 kB / 0.612 GB, free: 3.09 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.119e-05/0.4908, allocations: 24.05 kB / 0.612 GB, free: 3.066 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.487e-06/0.4908, allocations: 10.5 kB / 0.6121 GB, free: 3.059 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001727/0.4925, allocations: 0.8792 MB / 0.6129 GB, free: 2.168 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.4925, allocations: 4.031 kB / 0.6129 GB, free: 2.164 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004707/0.493, allocations: 173.5 kB / 0.6131 GB, free: 1.988 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004832/0.4935, allocations: 123.8 kB / 0.6132 GB, free: 1.867 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003567/0.4971, allocations: 3.666 MB / 0.6168 GB, free: 13.93 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005521/0.4976, allocations: 63.94 kB / 0.6168 GB, free: 13.87 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.258e-05/0.4977, allocations: 24.05 kB / 0.6169 GB, free: 13.85 MB / 458.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.0004172/0.4981, allocations: 308.9 kB / 0.6172 GB, free: 13.54 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001024/0.4982, allocations: 63.19 kB / 0.6172 GB, free: 13.47 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001693/0.4999, allocations: 0.8501 MB / 0.618 GB, free: 12.61 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.815e-06/0.5, allocations: 8 kB / 0.6181 GB, free: 12.6 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.5, allocations: 0 / 0.6181 GB, free: 12.6 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.188e-06/0.5, allocations: 3.984 kB / 0.6181 GB, free: 12.59 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002846/0.5028, allocations: 1.698 MB / 0.6197 GB, free: 10.81 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.214e-06/0.5029, allocations: 7.953 kB / 0.6197 GB, free: 10.8 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006124/0.5035, allocations: 135.8 kB / 0.6199 GB, free: 10.67 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000216/0.5037, allocations: 65.67 kB / 0.6199 GB, free: 10.6 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.013e-05/0.5038, allocations: 24.08 kB / 0.6199 GB, free: 10.58 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002043/0.5058, allocations: 2.693 MB / 0.6226 GB, free: 7.617 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/0.5058, allocations: 4.031 kB / 0.6226 GB, free: 7.613 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002317/0.5082, allocations: 1.419 MB / 0.624 GB, free: 6.109 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002893/0.5085, allocations: 188.3 kB / 0.6241 GB, free: 5.906 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.505e-05/0.5086, allocations: 20 kB / 0.6242 GB, free: 5.887 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005027/0.5091, allocations: 71.88 kB / 0.6242 GB, free: 5.816 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001198/0.5092, allocations: 52.8 kB / 0.6243 GB, free: 5.766 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.891e-05/0.5093, allocations: 24 kB / 0.6243 GB, free: 5.742 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0005078/0.5098, allocations: 346.8 kB / 0.6246 GB, free: 5.406 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5098, allocations: 0 / 0.6246 GB, free: 5.406 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00092/0.5107, allocations: 263.9 kB / 0.6249 GB, free: 5.148 MB / 458.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.002628/0.5133, allocations: 2.491 MB / 0.6273 GB, free: 2.574 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002785/0.5161, allocations: 1.608 MB / 0.6289 GB, free: 0.9062 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.5162, allocations: 8.125 kB / 0.6289 GB, free: 0.8984 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001101/0.5173, allocations: 0.6139 MB / 0.6295 GB, free: 264 kB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007201/0.518, allocations: 118.2 kB / 0.6296 GB, free: 148 kB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009273/0.5273, allocations: 6.249 MB / 0.6357 GB, free: 9.754 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005517/0.5279, allocations: 0.9547 MB / 0.6366 GB, free: 8.773 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0004843/0.5284, allocations: 156.5 kB / 0.6368 GB, free: 8.621 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003362/0.5287, allocations: 227.4 kB / 0.637 GB, free: 8.398 MB / 474.7 MB Notification: Performance of SimCode: time 3.2e-07/0.5287, allocations: 0 / 0.637 GB, free: 8.398 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1994/0.7281, allocations: 14.52 MB / 0.6512 GB, free: 136.6 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001358/0.7282, allocations: 227.4 kB / 0.6514 GB, free: 136.4 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.128/2.857, allocations: 0 / 0.6514 GB, free: 136.4 MB / 474.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest2_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest2.fmu > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe 2>&1)