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.001836/0.001836, allocations: 184.9 kB / 17.27 MB, free: 4.504 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.433/1.433, allocations: 205.1 MB / 223.1 MB, free: 8.461 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.0009396/0.0009396, allocations: 106 kB / 270.5 MB, free: 8.418 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1701/0.1701, allocations: 38.01 MB / 355.8 MB, free: 2.922 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001063/0.001063, allocations: 59.92 kB / 421.9 MB, free: 37.76 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3008/0.3019, allocations: 55.23 MB / 477.1 MB, free: 9.906 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PowerAngle): time 0.01151/0.3134, allocations: 8.692 MB / 485.8 MB, free: 3.746 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.006404/0.3199, allocations: 3.43 MB / 489.2 MB, free: 1.324 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001417/0.3214, allocations: 51.31 kB / 489.3 MB, free: 1.305 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002254/0.3236, allocations: 0.728 MB / 490 MB, free: 0.8711 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002408/0.3261, allocations: 0.6331 MB / 490.6 MB, free: 0.543 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001205/0.3273, allocations: 340 kB / 491 MB, free: 380 kB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.003513/0.3308, allocations: 2.012 MB / 493 MB, free: 15.73 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001483/0.3323, allocations: 0.692 MB / 493.7 MB, free: 15.45 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001394/0.3337, allocations: 498.6 kB / 494.1 MB, free: 15.24 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001454/0.3352, allocations: 0.668 MB / 494.8 MB, free: 15 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001505/0.3354, allocations: 55.09 kB / 494.9 MB, free: 15 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001333/0.3367, allocations: 484.3 kB / 495.3 MB, free: 14.86 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006688/0.3374, allocations: 442.6 kB / 495.8 MB, free: 14.73 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006964/0.3381, allocations: 490.7 kB / 496.3 MB, free: 14.45 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002219/0.3403, allocations: 1.383 MB / 497.6 MB, free: 13.81 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.494e-06/0.3403, allocations: 4 kB / 497.6 MB, free: 13.81 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3404, allocations: 1.25 kB / 497.6 MB, free: 13.81 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.032e-05/0.3404, allocations: 0 / 497.6 MB, free: 13.81 MB / 330.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.002953/0.3433, allocations: 1.26 MB / 498.9 MB, free: 12.85 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.202e-05/0.3434, allocations: 9.75 kB / 498.9 MB, free: 12.85 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00137/0.3448, allocations: 203 kB / 499.1 MB, free: 12.75 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00167/0.3465, allocations: 0.6765 MB / 499.8 MB, free: 12.23 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.347e-05/0.3465, allocations: 58.59 kB / 499.8 MB, free: 12.21 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000264/0.3468, allocations: 104.4 kB / 499.9 MB, free: 12.17 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002166/0.349, allocations: 1.126 MB / 0.4893 GB, free: 11.46 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.279e-05/0.349, allocations: 1.25 kB / 0.4893 GB, free: 11.46 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.258e-05/0.3491, allocations: 32 kB / 0.4894 GB, free: 11.44 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000189/0.3493, allocations: 71.16 kB / 0.4894 GB, free: 11.42 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001693/0.351, allocations: 0.8952 MB / 0.4903 GB, free: 10.99 MB / 330.7 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.006939/0.358, allocations: 4.081 MB / 0.4943 GB, free: 7.695 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007307/0.3587, allocations: 431.8 kB / 0.4947 GB, free: 7.398 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004638/0.3592, allocations: 264.1 kB / 0.495 GB, free: 7.266 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.775e-05/0.3593, allocations: 12.05 kB / 0.495 GB, free: 7.258 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.181e-05/0.3593, allocations: 49.23 kB / 0.495 GB, free: 7.203 MB / 330.7 MB Notification: Performance of pre-optimization done (n=45): time 3.687e-06/0.3593, allocations: 0 / 0.495 GB, free: 7.203 MB / 330.7 MB Notification: Performance of matching and sorting (n=52): time 0.004536/0.3639, allocations: 1.973 MB / 0.4969 GB, free: 6.031 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.636e-05/0.3639, allocations: 83.23 kB / 0.497 GB, free: 5.938 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008278/0.3648, allocations: 0.5664 MB / 0.4976 GB, free: 5.602 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.802e-05/0.3648, allocations: 36.22 kB / 0.4976 GB, free: 5.562 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000346/0.3652, allocations: 472.7 kB / 0.4981 GB, free: 5.145 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001747/0.3654, allocations: 186.8 kB / 0.4982 GB, free: 4.984 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002271/0.3656, allocations: 151.1 kB / 0.4984 GB, free: 4.891 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002122/0.3658, allocations: 385.3 kB / 0.4987 GB, free: 4.523 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004596/0.3663, allocations: 272.6 kB / 0.499 GB, free: 4.395 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006283/0.3669, allocations: 0.4998 MB / 0.4995 GB, free: 3.941 MB / 330.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.002864/0.3698, allocations: 1.408 MB / 0.5009 GB, free: 2.43 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/0.3698, allocations: 4 kB / 0.5009 GB, free: 2.426 MB / 330.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00187/0.3717, allocations: 1.095 MB / 0.5019 GB, free: 1.293 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.605e-05/0.3717, allocations: 8 kB / 0.5019 GB, free: 1.285 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001151/0.3729, allocations: 0.7687 MB / 0.5027 GB, free: 500 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004978/0.3734, allocations: 158.4 kB / 0.5028 GB, free: 332 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005741/0.374, allocations: 171.7 kB / 0.503 GB, free: 160 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00375/0.3778, allocations: 4.498 MB / 0.5074 GB, free: 11.25 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000654/0.3784, allocations: 39.97 kB / 0.5074 GB, free: 11.21 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.053e-05/0.3785, allocations: 28 kB / 0.5075 GB, free: 11.18 MB / 346.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: generator.w_el = generator.omega[1] + generator.omega[2]. 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (87): * Single equations (assignments): 84 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,3,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006261/0.3791, allocations: 329.4 kB / 0.5078 GB, free: 10.85 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001132/0.3792, allocations: 63.25 kB / 0.5078 GB, free: 10.79 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00105/0.3803, allocations: 0.6435 MB / 0.5085 GB, free: 10.13 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.3803, allocations: 4 kB / 0.5085 GB, free: 10.13 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.267e-06/0.3803, allocations: 4 kB / 0.5085 GB, free: 10.12 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.644e-06/0.3803, allocations: 7.922 kB / 0.5085 GB, free: 10.12 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002413/0.3828, allocations: 1.526 MB / 0.51 GB, free: 8.52 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.018e-06/0.3828, allocations: 4.188 kB / 0.51 GB, free: 8.516 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005834/0.3834, allocations: 123.9 kB / 0.5101 GB, free: 8.395 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.272e-06/0.3834, allocations: 4 kB / 0.5101 GB, free: 8.391 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.707e-05/0.3834, allocations: 15.94 kB / 0.5101 GB, free: 8.375 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.539e-06/0.3834, allocations: 4 kB / 0.5101 GB, free: 8.371 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.3834, allocations: 3.938 kB / 0.5101 GB, free: 8.367 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006225/0.3897, allocations: 4.337 MB / 0.5144 GB, free: 3.855 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002612/0.3899, allocations: 180.2 kB / 0.5145 GB, free: 3.66 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.402e-05/0.39, allocations: 19.98 kB / 0.5146 GB, free: 3.641 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003066/0.3904, allocations: 15.98 kB / 0.5146 GB, free: 3.625 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.946e-05/0.3904, allocations: 44.33 kB / 0.5146 GB, free: 3.582 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.113e-05/0.3905, allocations: 12 kB / 0.5146 GB, free: 3.57 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000466/0.3909, allocations: 415 kB / 0.515 GB, free: 3.164 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.391, allocations: 0 / 0.515 GB, free: 3.164 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001097/0.3921, allocations: 300 kB / 0.5153 GB, free: 2.871 MB / 346.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003245/0.3924, allocations: 143 kB / 0.5154 GB, free: 2.719 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001557/0.394, allocations: 1.024 MB / 0.5164 GB, free: 1.66 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.394, allocations: 0 / 0.5164 GB, free: 1.66 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003801/0.3944, allocations: 266.3 kB / 0.5167 GB, free: 1.402 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008249/0.3952, allocations: 147.8 kB / 0.5168 GB, free: 1.258 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003623/0.3988, allocations: 2.659 MB / 0.5194 GB, free: 14.54 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000768/0.3996, allocations: 1.102 MB / 0.5205 GB, free: 13.41 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0006308/0.4003, allocations: 213.7 kB / 0.5207 GB, free: 13.2 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002045/0.4005, allocations: 63.42 kB / 0.5208 GB, free: 13.14 MB / 362.7 MB Notification: Performance of SimCode: time 5.71e-07/0.4005, allocations: 4 kB / 0.5208 GB, free: 13.13 MB / 362.7 MB Notification: Performance of Templates: time 0.01651/0.417, allocations: 9.315 MB / 0.5299 GB, free: 3.836 MB / 362.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@2/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