Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001164/0.001165, allocations: 179.6 kB / 8.35 MB, free: 0.7227 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.819/1.819, allocations: 194.3 MB / 203.1 MB, free: 13.03 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.00157/0.001569, allocations: 120.1 kB / 248.1 MB, free: 32 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1805/0.1805, allocations: 37.93 MB / 330.9 MB, free: 2.668 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.324e-05/2.325e-05, allocations: 0 / 390.5 MB, free: 7.012 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3719/0.3719, allocations: 53.22 MB / 443.7 MB, free: 17.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1312/0.5032, allocations: 95.16 MB / 0.5262 GB, free: 2.402 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002459/0.5035, allocations: 87.94 kB / 0.5263 GB, free: 2.316 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3683/0.8718, allocations: 18.35 MB / 0.5442 GB, free: 85.03 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.8718, allocations: 0 / 0.5442 GB, free: 85.03 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.473e-05/0.8719, allocations: 16 kB / 0.5442 GB, free: 85.01 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.001794/0.8737, allocations: 0.8269 MB / 0.545 GB, free: 84.13 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.084e-05/0.8738, allocations: 8.031 kB / 0.5451 GB, free: 84.12 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001394/0.8752, allocations: 151.1 kB / 0.5452 GB, free: 83.97 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008926/0.8761, allocations: 492 kB / 0.5457 GB, free: 83.46 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.251e-05/0.8761, allocations: 12 kB / 0.5457 GB, free: 83.45 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001112/0.8762, allocations: 43.89 kB / 0.5457 GB, free: 83.41 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009305/0.8772, allocations: 398.4 kB / 0.5461 GB, free: 83.02 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001065/0.8783, allocations: 0.513 MB / 0.5466 GB, free: 82.48 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.081e-05/0.8783, allocations: 7.938 kB / 0.5466 GB, free: 82.47 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.054e-05/0.8784, allocations: 0 / 0.5466 GB, free: 82.47 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.952e-05/0.8784, allocations: 29.3 kB / 0.5466 GB, free: 82.44 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004048/0.8825, allocations: 2.457 MB / 0.549 GB, free: 79.88 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001099/0.8836, allocations: 0.4915 MB / 0.5495 GB, free: 79.35 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003159/0.8839, allocations: 154.3 kB / 0.5497 GB, free: 79.19 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.693e-05/0.884, allocations: 8.328 kB / 0.5497 GB, free: 79.18 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005403/0.8846, allocations: 246.7 kB / 0.5499 GB, free: 78.92 MB / 378.7 MB Notification: Performance of pre-optimization done (n=41): time 4.899e-06/0.8846, allocations: 0 / 0.5499 GB, free: 78.92 MB / 378.7 MB Notification: Performance of matching and sorting (n=41): time 0.001023/0.8856, allocations: 378.9 kB / 0.5503 GB, free: 78.54 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.652e-05/0.8857, allocations: 132.5 kB / 0.5504 GB, free: 78.38 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005266/0.8863, allocations: 337.2 kB / 0.5507 GB, free: 78.05 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.811e-05/0.8863, allocations: 25.7 kB / 0.5507 GB, free: 78.02 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002264/0.8866, allocations: 284.7 kB / 0.551 GB, free: 77.73 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001521/0.8867, allocations: 138 kB / 0.5511 GB, free: 77.6 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.103e-05/0.8868, allocations: 0 / 0.5511 GB, free: 77.6 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001259/0.8869, allocations: 358.8 kB / 0.5515 GB, free: 77.24 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002868/0.8872, allocations: 133 kB / 0.5516 GB, free: 77.11 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00034/0.8875, allocations: 240.9 kB / 0.5518 GB, free: 76.83 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003258/0.8879, allocations: 159.8 kB / 0.552 GB, free: 76.67 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.419e-06/0.8879, allocations: 0 / 0.552 GB, free: 76.67 MB / 378.7 MB Notification: Performance of matching and sorting (n=57) (initialization): time 0.001374/0.8893, allocations: 0.5522 MB / 0.5525 GB, free: 76.11 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002747/0.8896, allocations: 1.173 MB / 0.5537 GB, free: 74.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.075e-05/0.8896, allocations: 4 kB / 0.5537 GB, free: 74.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005535/0.8901, allocations: 137.5 kB / 0.5538 GB, free: 74.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004913/0.8907, allocations: 95.88 kB / 0.5539 GB, free: 74.61 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009747/0.8916, allocations: 0.8094 MB / 0.5547 GB, free: 73.78 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006148/0.8923, allocations: 75.59 kB / 0.5548 GB, free: 73.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.996e-05/0.8923, allocations: 16 kB / 0.5548 GB, free: 73.69 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.288e-05/0.8924, allocations: 7.953 kB / 0.5548 GB, free: 73.68 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001084/0.8934, allocations: 460.3 kB / 0.5552 GB, free: 73.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.8935, allocations: 0 / 0.5552 GB, free: 73.23 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003773/0.8939, allocations: 112.8 kB / 0.5553 GB, free: 73.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004808/0.8943, allocations: 100.1 kB / 0.5554 GB, free: 73.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00239/0.8968, allocations: 2.096 MB / 0.5575 GB, free: 70.81 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000539/0.8973, allocations: 59.7 kB / 0.5575 GB, free: 70.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.373e-05/0.8974, allocations: 16 kB / 0.5576 GB, free: 70.73 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: hydroPlant.primaryControl.gainPID.y:VARIABLE() "Output signal connector" type: Real hydroPlant.add.y:VARIABLE() "Connector of Real output signal" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 6 (system.initime,$whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 42 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 11} Notification: Performance of prepare postOptimizeDAE: time 0.000212/0.8976, allocations: 128.2 kB / 0.5577 GB, free: 70.61 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007707/0.8984, allocations: 361.8 kB / 0.558 GB, free: 70.24 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.302e-05/0.8985, allocations: 47.44 kB / 0.5581 GB, free: 70.2 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008401/0.8993, allocations: 403.8 kB / 0.5584 GB, free: 69.79 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.492e-06/0.8993, allocations: 4 kB / 0.5585 GB, free: 69.79 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/0.8994, allocations: 4 kB / 0.5585 GB, free: 69.78 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.019e-05/0.8994, allocations: 3.984 kB / 0.5585 GB, free: 69.78 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0015/0.9009, allocations: 0.9364 MB / 0.5594 GB, free: 68.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.047e-06/0.9009, allocations: 0 / 0.5594 GB, free: 68.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000635/0.9015, allocations: 99.88 kB / 0.5595 GB, free: 68.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001226/0.9017, allocations: 28.78 kB / 0.5595 GB, free: 68.67 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.265e-05/0.9017, allocations: 4 kB / 0.5595 GB, free: 68.67 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000902/0.9026, allocations: 1.307 MB / 0.5608 GB, free: 67.25 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.987e-06/0.9027, allocations: 96 / 0.5608 GB, free: 67.25 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001199/0.9039, allocations: 0.6925 MB / 0.5615 GB, free: 66.52 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002146/0.9041, allocations: 160.4 kB / 0.5616 GB, free: 66.34 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.2e-05/0.9042, allocations: 8 kB / 0.5616 GB, free: 66.34 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005748/0.9048, allocations: 47.88 kB / 0.5617 GB, free: 66.29 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001324/0.9049, allocations: 35.95 kB / 0.5617 GB, free: 66.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.912e-05/0.905, allocations: 12 kB / 0.5617 GB, free: 66.24 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003712/0.9054, allocations: 255 kB / 0.5619 GB, free: 66 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.11e-07/0.9054, allocations: 0 / 0.5619 GB, free: 66 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001321/0.9067, allocations: 231.2 kB / 0.5622 GB, free: 65.77 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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,trapezoid.T_start,trapezoid.count) * Number of discrete states: 1 (trapezoid.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 36 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001606/0.9083, allocations: 1.383 MB / 0.5635 GB, free: 64.34 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002247/0.9106, allocations: 0.8992 MB / 0.5644 GB, free: 63.41 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.9106, allocations: 0 / 0.5644 GB, free: 63.41 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004814/0.9111, allocations: 289.5 kB / 0.5647 GB, free: 63.11 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007515/0.9119, allocations: 78.72 kB / 0.5648 GB, free: 63.04 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002443/0.9143, allocations: 0.9809 MB / 0.5657 GB, free: 62.02 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000469/0.9148, allocations: 0.8944 MB / 0.5666 GB, free: 61.09 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006141/0.9154, allocations: 123.2 kB / 0.5667 GB, free: 60.97 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003177/0.9158, allocations: 187.4 kB / 0.5669 GB, free: 60.79 MB / 378.7 MB Notification: Performance of SimCode: time 4.1e-07/0.9158, allocations: 0 / 0.5669 GB, free: 60.79 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03783/0.9536, allocations: 10.81 MB / 0.5774 GB, free: 49.96 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002557/0.954, allocations: 139.1 kB / 0.5776 GB, free: 49.77 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.309/3.263, allocations: 0 / 0.5776 GB, free: 49.77 MB / 378.7 MB (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest1_fmu --startTime=0 --stopTime=900 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest1.fmu > PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe 2>&1)