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: translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hydroPlant.P_control|hydroPlant.P_generator|hydroPlant.reservoirLevel.y",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2") translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hydroPlant.P_control|hydroPlant.P_generator|hydroPlant.reservoirLevel.y",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001453/0.001453, allocations: 175.3 kB / 13.63 MB, free: 1.684 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.393/1.393, allocations: 205.2 MB / 219.4 MB, free: 14.26 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.0007707/0.0007707, allocations: 90.64 kB / 267.5 MB, free: 14.1 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1482/0.1482, allocations: 37.97 MB / 353.5 MB, free: 1.754 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.647e-05/2.658e-05, allocations: 4 kB / 417.7 MB, free: 29.11 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08475/0.08479, allocations: 56.31 MB / 474.1 MB, free: 4.797 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3262/0.411, allocations: 103.9 MB / 0.5644 GB, free: 15.41 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002164/0.4113, allocations: 86.08 kB / 0.5645 GB, free: 15.37 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06553/0.4768, allocations: 25.09 MB / 0.589 GB, free: 10.58 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.4768, allocations: 0 / 0.589 GB, free: 10.58 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.913e-05/0.4769, allocations: 23.94 kB / 0.589 GB, free: 10.56 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.001533/0.4784, allocations: 0.9221 MB / 0.5899 GB, free: 9.633 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.595e-05/0.4785, allocations: 8.031 kB / 0.5899 GB, free: 9.625 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001213/0.4797, allocations: 190.9 kB / 0.5901 GB, free: 9.438 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008311/0.4805, allocations: 0.5322 MB / 0.5906 GB, free: 8.957 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.787e-05/0.4806, allocations: 41 kB / 0.5906 GB, free: 8.93 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.644e-05/0.4807, allocations: 57.36 kB / 0.5907 GB, free: 8.891 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001114/0.4818, allocations: 0.7254 MB / 0.5914 GB, free: 8.352 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.382e-05/0.4819, allocations: 7.844 kB / 0.5914 GB, free: 8.344 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.506e-05/0.4819, allocations: 30.62 kB / 0.5914 GB, free: 8.328 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.006e-05/0.482, allocations: 44.97 kB / 0.5915 GB, free: 8.289 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009849/0.483, allocations: 0.6282 MB / 0.5921 GB, free: 7.871 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003831/0.4869, allocations: 2.93 MB / 0.5949 GB, free: 5.426 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008504/0.4877, allocations: 0.5009 MB / 0.5954 GB, free: 5.07 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004501/0.4882, allocations: 309.1 kB / 0.5957 GB, free: 4.879 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.336e-05/0.4883, allocations: 12.36 kB / 0.5957 GB, free: 4.867 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005671/0.4888, allocations: 386 kB / 0.5961 GB, free: 4.578 MB / 394.7 MB Notification: Performance of pre-optimization done (n=56): time 2.314e-06/0.4888, allocations: 0 / 0.5961 GB, free: 4.578 MB / 394.7 MB Notification: Performance of matching and sorting (n=58): time 0.002474/0.4913, allocations: 1.565 MB / 0.5976 GB, free: 3.32 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.539e-05/0.4914, allocations: 107.4 kB / 0.5977 GB, free: 3.191 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004359/0.4918, allocations: 416.2 kB / 0.5981 GB, free: 2.863 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.643e-05/0.4919, allocations: 35.89 kB / 0.5982 GB, free: 2.828 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001988/0.4921, allocations: 312 kB / 0.5985 GB, free: 2.617 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001598/0.4923, allocations: 194.6 kB / 0.5986 GB, free: 2.449 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.249e-05/0.4923, allocations: 15 kB / 0.5987 GB, free: 2.445 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.4925, allocations: 368.8 kB / 0.599 GB, free: 2.098 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003598/0.4928, allocations: 238.4 kB / 0.5992 GB, free: 1.957 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004251/0.4933, allocations: 355.9 kB / 0.5996 GB, free: 1.664 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004578/0.4937, allocations: 312.3 kB / 0.5999 GB, free: 1.449 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.918e-06/0.4938, allocations: 4 kB / 0.5999 GB, free: 1.445 MB / 394.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001518/0.4953, allocations: 0.8935 MB / 0.6008 GB, free: 0.7578 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004519/0.4957, allocations: 1.166 MB / 0.6019 GB, free: 15.52 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.4958, allocations: 4 kB / 0.6019 GB, free: 15.51 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006011/0.4964, allocations: 186 kB / 0.6021 GB, free: 15.37 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004905/0.4969, allocations: 119.4 kB / 0.6022 GB, free: 15.25 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002047/0.4989, allocations: 2.136 MB / 0.6043 GB, free: 13.13 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000535/0.4995, allocations: 70.42 kB / 0.6043 GB, free: 13.07 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.849e-05/0.4995, allocations: 27.08 kB / 0.6044 GB, free: 13.05 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.895e-06/0.4996, allocations: 4 kB / 0.6044 GB, free: 13.05 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001371/0.5009, allocations: 0.789 MB / 0.6051 GB, free: 12.48 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.677e-06/0.501, allocations: 8.281 kB / 0.6052 GB, free: 12.47 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005994/0.5016, allocations: 174.3 kB / 0.6053 GB, free: 12.31 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006591/0.5023, allocations: 116 kB / 0.6054 GB, free: 12.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003497/0.5058, allocations: 3.62 MB / 0.609 GB, free: 8.316 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005054/0.5063, allocations: 67.92 kB / 0.609 GB, free: 8.25 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.593e-05/0.5064, allocations: 20 kB / 0.609 GB, free: 8.23 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 () * 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.0001932/0.5066, allocations: 140.9 kB / 0.6092 GB, free: 8.086 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.569e-05/0.5066, allocations: 63.25 kB / 0.6092 GB, free: 8.023 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001329/0.508, allocations: 0.7291 MB / 0.61 GB, free: 7.281 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.264e-06/0.508, allocations: 8 kB / 0.61 GB, free: 7.273 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.508, allocations: 0 / 0.61 GB, free: 7.273 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.658e-06/0.508, allocations: 7.984 kB / 0.61 GB, free: 7.266 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002394/0.5104, allocations: 1.597 MB / 0.6115 GB, free: 5.586 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.606e-06/0.5105, allocations: 0 / 0.6115 GB, free: 5.586 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005954/0.5111, allocations: 135.8 kB / 0.6117 GB, free: 5.453 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002241/0.5113, allocations: 69.66 kB / 0.6117 GB, free: 5.379 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.645e-05/0.5113, allocations: 20.09 kB / 0.6117 GB, free: 5.359 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001917/0.5133, allocations: 2.682 MB / 0.6144 GB, free: 2.406 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.5133, allocations: 0 / 0.6144 GB, free: 2.406 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001696/0.515, allocations: 1.251 MB / 0.6156 GB, free: 1.07 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002535/0.5153, allocations: 184.6 kB / 0.6158 GB, free: 0.8711 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.776e-05/0.5153, allocations: 27.94 kB / 0.6158 GB, free: 0.8438 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004796/0.5158, allocations: 63.94 kB / 0.6158 GB, free: 0.7812 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001315/0.516, allocations: 60.41 kB / 0.6159 GB, free: 0.7188 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.164e-05/0.516, allocations: 19.98 kB / 0.6159 GB, free: 0.6992 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003506/0.5164, allocations: 321.6 kB / 0.6162 GB, free: 400 kB / 410.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5164, allocations: 0 / 0.6162 GB, free: 400 kB / 410.7 MB Notification: Performance of remove unused functions: time 0.0008757/0.5173, allocations: 268.1 kB / 0.6165 GB, free: 132 kB / 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) * 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.0001953/0.5175, allocations: 133.8 kB / 0.6166 GB, free: 15.99 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002162/0.5196, allocations: 1.462 MB / 0.618 GB, free: 14.46 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.5197, allocations: 1 kB / 0.618 GB, free: 14.46 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007151/0.5204, allocations: 0.567 MB / 0.6186 GB, free: 13.87 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005508/0.5209, allocations: 113.6 kB / 0.6187 GB, free: 13.77 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001905/0.5229, allocations: 1.178 MB / 0.6199 GB, free: 12.55 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005016/0.5234, allocations: 0.9594 MB / 0.6208 GB, free: 11.56 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0005774/0.524, allocations: 192.5 kB / 0.621 GB, free: 11.37 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001331/0.5241, allocations: 39.44 kB / 0.621 GB, free: 11.33 MB / 426.7 MB Notification: Performance of SimCode: time 4.11e-07/0.5241, allocations: 0 / 0.621 GB, free: 11.33 MB / 426.7 MB Notification: Performance of Templates: time 0.01476/0.5389, allocations: 9.706 MB / 0.6305 GB, free: 1.621 MB / 426.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.makefile (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 & ./PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.mat","../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches