Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.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.AC3ph.Generation.PowerAngle,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|generator.powerAngle|sensor.p.1.|sensor.p.2.|sensor.p.3.|sensor1.p.1.|sensor1.p.2.|sensor1.p.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle") translateModel(PowerSystems.Examples.AC3ph.Generation.PowerAngle,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|generator.powerAngle|sensor.p.1.|sensor.p.2.|sensor.p.3.|sensor1.p.1.|sensor1.p.2.|sensor1.p.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001445/0.001445, allocations: 175 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.452/1.452, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.001035/0.001035, allocations: 78.78 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1621/0.1621, allocations: 37.97 MB / 353.5 MB, free: 1.746 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.701e-05/2.71e-05, allocations: 4 kB / 417.7 MB, free: 29.12 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1031, allocations: 56.32 MB / 474.1 MB, free: 4.797 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3578/0.4609, allocations: 112.1 MB / 0.5724 GB, free: 6.984 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002616/0.4613, allocations: 92.12 kB / 0.5725 GB, free: 6.938 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07813/0.5394, allocations: 29.69 MB / 0.6015 GB, free: 13.42 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.5394, allocations: 0 / 0.6015 GB, free: 13.42 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.288e-05/0.5395, allocations: 27.98 kB / 0.6015 GB, free: 13.39 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 223 * Number of variables: 223 Notification: Performance of Generate backend data structure: time 0.001677/0.5412, allocations: 1.028 MB / 0.6025 GB, free: 12.38 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.072e-05/0.5412, allocations: 12.03 kB / 0.6026 GB, free: 12.36 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001021/0.5423, allocations: 190.7 kB / 0.6027 GB, free: 12.18 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002693/0.545, allocations: 1.187 MB / 0.6039 GB, free: 11.14 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.454e-05/0.545, allocations: 61.3 kB / 0.604 GB, free: 11.11 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001719/0.5452, allocations: 85.48 kB / 0.604 GB, free: 11.05 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001522/0.5467, allocations: 1.091 MB / 0.6051 GB, free: 10.22 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.73e-05/0.5468, allocations: 4 kB / 0.6051 GB, free: 10.22 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.878e-05/0.5469, allocations: 30.88 kB / 0.6051 GB, free: 10.21 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.723e-05/0.547, allocations: 64.72 kB / 0.6052 GB, free: 10.16 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001257/0.5482, allocations: 0.8549 MB / 0.606 GB, free: 9.555 MB / 410.7 MB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004789/0.553, allocations: 4.09 MB / 0.61 GB, free: 5.906 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005242/0.5536, allocations: 405.8 kB / 0.6104 GB, free: 5.566 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003395/0.5539, allocations: 263 kB / 0.6107 GB, free: 5.391 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.223e-05/0.554, allocations: 11.98 kB / 0.6107 GB, free: 5.379 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.794e-05/0.554, allocations: 41.67 kB / 0.6107 GB, free: 5.332 MB / 410.7 MB Notification: Performance of pre-optimization done (n=45): time 4.699e-06/0.554, allocations: 0 / 0.6107 GB, free: 5.332 MB / 410.7 MB Notification: Performance of matching and sorting (n=52): time 0.003622/0.5577, allocations: 1.795 MB / 0.6125 GB, free: 3.809 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.289e-05/0.5577, allocations: 93.36 kB / 0.6126 GB, free: 3.703 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005831/0.5583, allocations: 497.3 kB / 0.613 GB, free: 3.316 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.213e-05/0.5584, allocations: 35.45 kB / 0.6131 GB, free: 3.281 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002966/0.5587, allocations: 461.5 kB / 0.6135 GB, free: 2.93 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001493/0.5588, allocations: 195.6 kB / 0.6137 GB, free: 2.762 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.404e-05/0.5589, allocations: 17.25 kB / 0.6137 GB, free: 2.758 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000157/0.559, allocations: 381 kB / 0.6141 GB, free: 2.402 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003764/0.5594, allocations: 258.2 kB / 0.6143 GB, free: 2.23 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005169/0.5599, allocations: 499.6 kB / 0.6148 GB, free: 1.746 MB / 410.7 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.002104/0.562, allocations: 0.7161 MB / 0.6155 GB, free: 1.164 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-06/0.5621, allocations: 0 / 0.6155 GB, free: 1.164 MB / 410.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002204/0.5643, allocations: 1.153 MB / 0.6166 GB, free: 208 kB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.558e-05/0.5643, allocations: 8 kB / 0.6166 GB, free: 200 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001579/0.5659, allocations: 0.8244 MB / 0.6174 GB, free: 15.53 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006278/0.5665, allocations: 205.3 kB / 0.6176 GB, free: 15.35 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005551/0.5671, allocations: 175.2 kB / 0.6178 GB, free: 15.18 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005592/0.5727, allocations: 6.241 MB / 0.6239 GB, free: 8.656 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006079/0.5733, allocations: 43.86 kB / 0.6239 GB, free: 8.613 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.377e-05/0.5734, allocations: 35.94 kB / 0.624 GB, free: 8.578 MB / 426.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: infBus.V = 20000.0 * infBus.v0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (85): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0001755/0.5736, allocations: 164.8 kB / 0.6241 GB, free: 8.41 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.505e-05/0.5737, allocations: 63.25 kB / 0.6242 GB, free: 8.348 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001022/0.5747, allocations: 0.6274 MB / 0.6248 GB, free: 7.711 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.693e-06/0.5747, allocations: 4.141 kB / 0.6248 GB, free: 7.707 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.075e-06/0.5748, allocations: 4 kB / 0.6248 GB, free: 7.703 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.258e-06/0.5748, allocations: 15.91 kB / 0.6248 GB, free: 7.688 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002383/0.5772, allocations: 1.495 MB / 0.6263 GB, free: 6.121 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.057e-06/0.5772, allocations: 0 / 0.6263 GB, free: 6.121 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005691/0.5778, allocations: 123.9 kB / 0.6264 GB, free: 6 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.102e-06/0.5778, allocations: 4 kB / 0.6264 GB, free: 5.996 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.865e-05/0.5778, allocations: 15.98 kB / 0.6264 GB, free: 5.98 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.248e-06/0.5778, allocations: 4 kB / 0.6264 GB, free: 5.977 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.488e-06/0.5778, allocations: 7.938 kB / 0.6264 GB, free: 5.969 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00115/0.579, allocations: 1.007 MB / 0.6274 GB, free: 4.883 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002351/0.5792, allocations: 184.3 kB / 0.6276 GB, free: 4.684 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.56e-05/0.5793, allocations: 15.94 kB / 0.6276 GB, free: 4.668 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003148/0.5796, allocations: 19.94 kB / 0.6276 GB, free: 4.648 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.029e-05/0.5797, allocations: 36.39 kB / 0.6277 GB, free: 4.613 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.179e-05/0.5797, allocations: 16 kB / 0.6277 GB, free: 4.598 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004277/0.5802, allocations: 403.1 kB / 0.6281 GB, free: 4.207 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5802, allocations: 0 / 0.6281 GB, free: 4.207 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0007335/0.5809, allocations: 231.9 kB / 0.6283 GB, free: 3.98 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (generator.i_s[1],generator.i_s[2],generator.i_s[3],RLgen1.i[1],RLgen1.i[2],RLgen1.i[3]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002225/0.5812, allocations: 147 kB / 0.6284 GB, free: 3.828 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001586/0.5828, allocations: 1.127 MB / 0.6295 GB, free: 2.648 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.5828, allocations: 4 kB / 0.6295 GB, free: 2.645 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000346/0.5831, allocations: 262.3 kB / 0.6298 GB, free: 2.387 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005794/0.5837, allocations: 137.8 kB / 0.6299 GB, free: 2.254 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002327/0.5861, allocations: 1.561 MB / 0.6314 GB, free: 0.6406 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006421/0.5867, allocations: 1.102 MB / 0.6325 GB, free: 15.51 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.000521/0.5872, allocations: 193.8 kB / 0.6327 GB, free: 15.32 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000149/0.5874, allocations: 55.44 kB / 0.6327 GB, free: 15.26 MB / 442.7 MB Notification: Performance of SimCode: time 2.9e-07/0.5874, allocations: 0 / 0.6327 GB, free: 15.26 MB / 442.7 MB Notification: Performance of Templates: time 0.01438/0.6018, allocations: 8.658 MB / 0.6412 GB, free: 6.609 MB / 442.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Generation.PowerAngle.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches