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.001345/0.001351, allocations: 177 kB / 17.4 MB, free: 4.418 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.421/1.421, allocations: 205.4 MB / 223.5 MB, free: 8.934 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.0007595/0.0007595, allocations: 84.92 kB / 271.9 MB, free: 8.23 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1759/0.1759, allocations: 38.08 MB / 358.2 MB, free: 1.711 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003865/0.0003866, allocations: 12 kB / 425.2 MB, free: 37.36 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2671/0.2675, allocations: 56.32 MB / 481.6 MB, free: 9.578 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1292/0.3967, allocations: 104 MB / 0.5719 GB, free: 14.22 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003137/0.3971, allocations: 91.81 kB / 0.5719 GB, free: 14.14 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06259/0.4597, allocations: 25.24 MB / 0.5966 GB, free: 4.664 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.475e-06/0.4597, allocations: 0 / 0.5966 GB, free: 4.664 MB / 426.7 MB Notification: Performance of Transformations before backend: time 6.687e-05/0.4598, allocations: 16 kB / 0.5966 GB, free: 4.648 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.002305/0.4621, allocations: 1.018 MB / 0.5976 GB, free: 3.57 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.767e-05/0.4622, allocations: 12.03 kB / 0.5976 GB, free: 3.559 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00145/0.4636, allocations: 187.8 kB / 0.5978 GB, free: 3.375 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001088/0.4647, allocations: 0.5767 MB / 0.5984 GB, free: 2.754 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.511e-05/0.4648, allocations: 45.67 kB / 0.5984 GB, free: 2.711 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001142/0.4649, allocations: 60.28 kB / 0.5985 GB, free: 2.652 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001394/0.4663, allocations: 0.7948 MB / 0.5992 GB, free: 1.82 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.362e-05/0.4664, allocations: 8.109 kB / 0.5992 GB, free: 1.812 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.372e-05/0.4664, allocations: 27.94 kB / 0.5993 GB, free: 1.785 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.949e-05/0.4665, allocations: 37.3 kB / 0.5993 GB, free: 1.75 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001463/0.468, allocations: 0.7467 MB / 0.6 GB, free: 1.004 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004217/0.4722, allocations: 2.946 MB / 0.6029 GB, free: 13.93 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001313/0.4736, allocations: 0.6042 MB / 0.6035 GB, free: 13.31 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006571/0.4742, allocations: 374.8 kB / 0.6039 GB, free: 12.94 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.177e-05/0.4743, allocations: 4.438 kB / 0.6039 GB, free: 12.93 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00076/0.4751, allocations: 434.2 kB / 0.6043 GB, free: 12.49 MB / 442.7 MB Notification: Performance of pre-optimization done (n=56): time 3.246e-06/0.4751, allocations: 0 / 0.6043 GB, free: 12.49 MB / 442.7 MB Notification: Performance of matching and sorting (n=58): time 0.004321/0.4794, allocations: 2.27 MB / 0.6065 GB, free: 10.12 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.706e-05/0.4795, allocations: 119.3 kB / 0.6066 GB, free: 9.98 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007518/0.4803, allocations: 482 kB / 0.6071 GB, free: 9.5 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.009e-05/0.4804, allocations: 41.69 kB / 0.6071 GB, free: 9.453 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002232/0.4806, allocations: 316.5 kB / 0.6074 GB, free: 9.137 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001545/0.4808, allocations: 201.1 kB / 0.6076 GB, free: 8.938 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.147e-05/0.4808, allocations: 16.03 kB / 0.6076 GB, free: 8.922 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001183/0.4809, allocations: 362.8 kB / 0.608 GB, free: 8.559 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005798/0.4815, allocations: 297.1 kB / 0.6082 GB, free: 8.27 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006475/0.4822, allocations: 411 kB / 0.6086 GB, free: 7.824 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001371/0.4836, allocations: 0.7419 MB / 0.6094 GB, free: 7.035 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.4836, allocations: 4 kB / 0.6094 GB, free: 7.031 MB / 442.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.00215/0.4857, allocations: 1.056 MB / 0.6104 GB, free: 5.957 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001257/0.4859, allocations: 201.6 kB / 0.6106 GB, free: 5.711 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.568e-06/0.4859, allocations: 4 kB / 0.6106 GB, free: 5.707 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000711/0.4866, allocations: 224.8 kB / 0.6108 GB, free: 5.484 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005069/0.4871, allocations: 123.8 kB / 0.6109 GB, free: 5.363 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00424/0.4914, allocations: 3.863 MB / 0.6147 GB, free: 1.238 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006291/0.492, allocations: 71.98 kB / 0.6148 GB, free: 1.168 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.418e-05/0.4921, allocations: 24 kB / 0.6148 GB, free: 1.145 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.236e-06/0.4921, allocations: 4 kB / 0.6148 GB, free: 1.141 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00178/0.4939, allocations: 0.8791 MB / 0.6156 GB, free: 256 kB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.587e-06/0.4939, allocations: 0 / 0.6156 GB, free: 256 kB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005267/0.4945, allocations: 173.7 kB / 0.6158 GB, free: 76 kB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005049/0.495, allocations: 123.8 kB / 0.6159 GB, free: 15.95 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003546/0.4986, allocations: 3.626 MB / 0.6195 GB, free: 12.06 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006073/0.4992, allocations: 67.89 kB / 0.6195 GB, free: 11.99 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.05e-05/0.4993, allocations: 28 kB / 0.6196 GB, free: 11.96 MB / 458.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 () * 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.0004959/0.4998, allocations: 300.9 kB / 0.6199 GB, free: 11.66 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000117/0.4999, allocations: 59.33 kB / 0.6199 GB, free: 11.6 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001697/0.5016, allocations: 0.8423 MB / 0.6207 GB, free: 10.75 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.218e-06/0.5016, allocations: 8 kB / 0.6207 GB, free: 10.74 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.5016, allocations: 4 kB / 0.6207 GB, free: 10.73 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.807e-06/0.5016, allocations: 3.984 kB / 0.6207 GB, free: 10.73 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002819/0.5045, allocations: 1.702 MB / 0.6224 GB, free: 8.945 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.132e-06/0.5045, allocations: 4 kB / 0.6224 GB, free: 8.941 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006054/0.5051, allocations: 140 kB / 0.6225 GB, free: 8.805 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002213/0.5053, allocations: 61.67 kB / 0.6226 GB, free: 8.738 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.387e-05/0.5054, allocations: 19.98 kB / 0.6226 GB, free: 8.719 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001958/0.5074, allocations: 2.693 MB / 0.6253 GB, free: 5.758 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.898e-06/0.5074, allocations: 7.969 kB / 0.6253 GB, free: 5.75 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00231/0.5097, allocations: 1.333 MB / 0.6266 GB, free: 4.371 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003205/0.51, allocations: 196.3 kB / 0.6267 GB, free: 4.16 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.298e-05/0.5101, allocations: 15.98 kB / 0.6268 GB, free: 4.145 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005148/0.5107, allocations: 63.94 kB / 0.6268 GB, free: 4.082 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000145/0.5108, allocations: 56.42 kB / 0.6269 GB, free: 4.027 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.356e-05/0.5109, allocations: 19.98 kB / 0.6269 GB, free: 4.008 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0005606/0.5114, allocations: 346.8 kB / 0.6272 GB, free: 3.672 MB / 458.7 MB Notification: Performance of sort global known variables: time 2e-07/0.5114, allocations: 0 / 0.6272 GB, free: 3.672 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001085/0.5125, allocations: 284 kB / 0.6275 GB, free: 3.395 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.0002155/0.5128, allocations: 131.3 kB / 0.6276 GB, free: 3.254 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003071/0.5158, allocations: 1.767 MB / 0.6294 GB, free: 1.414 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.5159, allocations: 8 kB / 0.6294 GB, free: 1.406 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000999/0.5169, allocations: 0.6178 MB / 0.63 GB, free: 0.7617 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008418/0.5177, allocations: 110.4 kB / 0.6301 GB, free: 0.6562 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002953/0.5207, allocations: 1.812 MB / 0.6318 GB, free: 14.8 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005745/0.5213, allocations: 0.9431 MB / 0.6328 GB, free: 13.82 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0005418/0.5218, allocations: 160.5 kB / 0.6329 GB, free: 13.66 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001631/0.522, allocations: 43.44 kB / 0.633 GB, free: 13.62 MB / 474.7 MB Notification: Performance of SimCode: time 7.52e-07/0.522, allocations: 4 kB / 0.633 GB, free: 13.62 MB / 474.7 MB Notification: Performance of Templates: time 0.01748/0.5395, allocations: 9.18 MB / 0.6419 GB, free: 4.438 MB / 474.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/jenkins1/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