Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.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.HydroPlantTest2,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2,fileNamePrefix="PowerSystems_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.2+maint.om/package.mo): time 0.0009802/0.0009801, allocations: 178.9 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.2+maint.om/package.mo): time 1.255/1.255, allocations: 194.5 MB / 211.6 MB, free: 3.047 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.001323/0.001323, allocations: 113.2 kB / 256.9 MB, free: 4.344 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1579/0.1579, allocations: 38.01 MB / 340.1 MB, free: 1.352 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000337/0.000337, allocations: 12 kB / 403.9 MB, free: 68.71 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08128/0.08163, allocations: 53.23 MB / 457.1 MB, free: 15.47 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2924/0.374, allocations: 97.88 MB / 0.542 GB, free: 13.86 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002214/0.3743, allocations: 96.5 kB / 0.5421 GB, free: 13.81 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0598/0.4341, allocations: 24.37 MB / 0.5659 GB, free: 9.594 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.4342, allocations: 0 / 0.5659 GB, free: 9.594 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.327e-05/0.4342, allocations: 19.98 kB / 0.5659 GB, free: 9.574 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: 139 * Number of variables: 139 Notification: Performance of Generate backend data structure: time 0.002261/0.4365, allocations: 0.986 MB / 0.5669 GB, free: 8.582 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.647e-05/0.4366, allocations: 12.02 kB / 0.5669 GB, free: 8.57 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002203/0.4368, allocations: 99.94 kB / 0.567 GB, free: 8.496 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001446/0.4382, allocations: 190.9 kB / 0.5671 GB, free: 8.309 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001157/0.4394, allocations: 0.5384 MB / 0.5677 GB, free: 7.812 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.83e-05/0.4395, allocations: 43.02 kB / 0.5677 GB, free: 7.785 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000133/0.4396, allocations: 51.38 kB / 0.5678 GB, free: 7.75 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001385/0.441, allocations: 0.7531 MB / 0.5685 GB, free: 7.18 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.74e-05/0.441, allocations: 7.906 kB / 0.5685 GB, free: 7.172 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.237e-05/0.4411, allocations: 22.62 kB / 0.5685 GB, free: 7.164 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001001/0.4412, allocations: 41.16 kB / 0.5686 GB, free: 7.129 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001524/0.4427, allocations: 0.7213 MB / 0.5693 GB, free: 6.617 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004103/0.4469, allocations: 2.709 MB / 0.5719 GB, free: 4.371 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001245/0.4481, allocations: 0.5896 MB / 0.5725 GB, free: 3.93 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.119e-05/0.4482, allocations: 12.44 kB / 0.5725 GB, free: 3.918 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007191/0.4489, allocations: 438.3 kB / 0.5729 GB, free: 3.574 MB / 378.7 MB Notification: Performance of pre-optimization done (n=55): time 3.497e-06/0.4489, allocations: 0 / 0.5729 GB, free: 3.574 MB / 378.7 MB Notification: Performance of matching and sorting (n=57): time 0.00403/0.453, allocations: 2.154 MB / 0.575 GB, free: 1.844 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.935e-05/0.453, allocations: 111.4 kB / 0.5751 GB, free: 1.711 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005632/0.4536, allocations: 405.7 kB / 0.5755 GB, free: 1.387 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.077e-05/0.4537, allocations: 38.64 kB / 0.5756 GB, free: 1.352 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001854/0.4539, allocations: 290.7 kB / 0.5758 GB, free: 1.145 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001456/0.454, allocations: 191.1 kB / 0.576 GB, free: 0.9805 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.244e-05/0.4541, allocations: 18.75 kB / 0.576 GB, free: 0.9727 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001391/0.4542, allocations: 369.7 kB / 0.5764 GB, free: 0.625 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005364/0.4547, allocations: 289.7 kB / 0.5767 GB, free: 436 kB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005682/0.4553, allocations: 384.1 kB / 0.577 GB, free: 120 kB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006082/0.4559, allocations: 364.7 kB / 0.5774 GB, free: 15.87 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.456, allocations: 0 / 0.5774 GB, free: 15.87 MB / 394.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001885/0.4578, allocations: 0.9907 MB / 0.5783 GB, free: 15.1 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003494/0.4582, allocations: 0.9082 MB / 0.5792 GB, free: 14.13 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/0.4582, allocations: 0 / 0.5792 GB, free: 14.13 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006385/0.4589, allocations: 200.9 kB / 0.5794 GB, free: 13.97 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005045/0.4594, allocations: 119 kB / 0.5795 GB, free: 13.86 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00183/0.4612, allocations: 2.158 MB / 0.5816 GB, free: 11.71 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005513/0.4618, allocations: 75.05 kB / 0.5817 GB, free: 11.65 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.312e-05/0.4618, allocations: 19.19 kB / 0.5817 GB, free: 11.64 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.991e-06/0.4619, allocations: 4 kB / 0.5817 GB, free: 11.63 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001628/0.4635, allocations: 0.8564 MB / 0.5826 GB, free: 10.94 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.667e-06/0.4635, allocations: 0 / 0.5826 GB, free: 10.94 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004604/0.464, allocations: 165.2 kB / 0.5827 GB, free: 10.78 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004693/0.4645, allocations: 111.9 kB / 0.5828 GB, free: 10.67 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003283/0.4678, allocations: 3.58 MB / 0.5863 GB, free: 6.816 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006084/0.4684, allocations: 60 kB / 0.5864 GB, free: 6.758 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.649e-05/0.4684, allocations: 23.98 kB / 0.5864 GB, free: 6.734 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 6 (system.initime,$whenCondition1,$PRE.secondary.T_start,secondary.T_start,$PRE.secondary.count,secondary.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 54 * 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 12} Notification: Performance of prepare postOptimizeDAE: time 0.0004688/0.4689, allocations: 300.9 kB / 0.5867 GB, free: 6.43 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.46e-05/0.469, allocations: 59.25 kB / 0.5868 GB, free: 6.371 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001689/0.4707, allocations: 0.8304 MB / 0.5876 GB, free: 5.531 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.136e-06/0.4707, allocations: 7.984 kB / 0.5876 GB, free: 5.523 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.151e-06/0.4707, allocations: 7.953 kB / 0.5876 GB, free: 5.516 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.4708, allocations: 4 kB / 0.5876 GB, free: 5.512 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002731/0.4735, allocations: 1.667 MB / 0.5892 GB, free: 3.762 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.068e-06/0.4735, allocations: 0 / 0.5892 GB, free: 3.762 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006205/0.4741, allocations: 136 kB / 0.5893 GB, free: 3.629 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002313/0.4744, allocations: 70.05 kB / 0.5894 GB, free: 3.555 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.745e-05/0.4744, allocations: 15.98 kB / 0.5894 GB, free: 3.539 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001873/0.4763, allocations: 2.709 MB / 0.5921 GB, free: 0.5547 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.579e-06/0.4763, allocations: 3.953 kB / 0.5921 GB, free: 0.5508 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002245/0.4786, allocations: 1.411 MB / 0.5935 GB, free: 15.05 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003126/0.4789, allocations: 180.4 kB / 0.5936 GB, free: 14.86 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.126e-05/0.479, allocations: 12 kB / 0.5936 GB, free: 14.85 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004955/0.4795, allocations: 67.92 kB / 0.5937 GB, free: 14.78 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001246/0.4796, allocations: 48.5 kB / 0.5937 GB, free: 14.73 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.361e-05/0.4797, allocations: 27.94 kB / 0.5938 GB, free: 14.71 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004968/0.4802, allocations: 319.1 kB / 0.5941 GB, free: 14.4 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4802, allocations: 0 / 0.5941 GB, free: 14.4 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0009274/0.4811, allocations: 260.1 kB / 0.5943 GB, free: 14.15 MB / 410.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 (61): * Single equations (assignments): 56 * 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.002767/0.4839, allocations: 2.462 MB / 0.5967 GB, free: 11.6 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002815/0.4867, allocations: 1.592 MB / 0.5983 GB, free: 9.949 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.4868, allocations: 0 / 0.5983 GB, free: 9.949 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009726/0.4877, allocations: 0.6142 MB / 0.5989 GB, free: 9.309 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005874/0.4883, allocations: 99.91 kB / 0.599 GB, free: 9.211 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00755/0.4959, allocations: 5.76 MB / 0.6046 GB, free: 3.336 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005131/0.4964, allocations: 0.9427 MB / 0.6055 GB, free: 2.367 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0004712/0.4969, allocations: 148.4 kB / 0.6057 GB, free: 2.219 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003224/0.4973, allocations: 223.4 kB / 0.6059 GB, free: 2 MB / 410.7 MB Notification: Performance of SimCode: time 1.162e-06/0.4973, allocations: 4 kB / 0.6059 GB, free: 1.996 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03046/0.5277, allocations: 13.73 MB / 0.6193 GB, free: 4.277 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002442/0.528, allocations: 217.9 kB / 0.6195 GB, free: 4.031 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.211/2.739, allocations: 0 / 0.6195 GB, free: 4.031 MB / 426.7 MB (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest2_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest2.fmu > PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe 2>&1)