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.001506/0.001506, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.602/1.602, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008067/0.0008067, allocations: 89.53 kB / 262.1 MB, free: 13.89 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1611/0.1611, allocations: 37.99 MB / 348 MB, free: 7.781 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.618e-05/1.621e-05, allocations: 4 kB / 410.6 MB, free: 46.96 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09636/0.0964, allocations: 56.33 MB / 466.9 MB, free: 6.566 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.354/0.4504, allocations: 111.4 MB / 0.5648 GB, free: 15.45 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002859/0.4508, allocations: 95.94 kB / 0.5649 GB, free: 15.35 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.08199/0.5328, allocations: 29.42 MB / 0.5936 GB, free: 1.586 MB / 427.1 MB Notification: Performance of FrontEnd: time 2.375e-06/0.5329, allocations: 0 / 0.5936 GB, free: 1.586 MB / 427.1 MB Notification: Performance of Transformations before backend: time 5.55e-05/0.5329, allocations: 27.92 kB / 0.5936 GB, free: 1.559 MB / 427.1 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.002026/0.535, allocations: 1.029 MB / 0.5946 GB, free: 488 kB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.643e-05/0.535, allocations: 8.031 kB / 0.5947 GB, free: 480 kB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001047/0.5361, allocations: 186.7 kB / 0.5948 GB, free: 292 kB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003164/0.5393, allocations: 1.187 MB / 0.596 GB, free: 15.06 MB / 443.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.654e-05/0.5393, allocations: 24 kB / 0.596 GB, free: 15.04 MB / 443.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001851/0.5395, allocations: 55.98 kB / 0.5961 GB, free: 14.98 MB / 443.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001222/0.5407, allocations: 0.7224 MB / 0.5968 GB, free: 14.26 MB / 443.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0015/0.5422, allocations: 0.9716 MB / 0.5977 GB, free: 13.24 MB / 443.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.609e-05/0.5423, allocations: 0 / 0.5977 GB, free: 13.24 MB / 443.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.699e-05/0.5424, allocations: 4 kB / 0.5977 GB, free: 13.23 MB / 443.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001053/0.5425, allocations: 65.97 kB / 0.5978 GB, free: 13.17 MB / 443.1 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.005236/0.5477, allocations: 3.903 MB / 0.6016 GB, free: 9.066 MB / 443.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006381/0.5484, allocations: 488.2 kB / 0.6021 GB, free: 8.535 MB / 443.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003558/0.5487, allocations: 270.8 kB / 0.6023 GB, free: 8.266 MB / 443.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.574e-05/0.5488, allocations: 12.33 kB / 0.6023 GB, free: 8.254 MB / 443.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.141e-05/0.5488, allocations: 38.88 kB / 0.6024 GB, free: 8.207 MB / 443.1 MB Notification: Performance of pre-optimization done (n=47): time 2.314e-06/0.5488, allocations: 0 / 0.6024 GB, free: 8.207 MB / 443.1 MB Notification: Performance of matching and sorting (n=54): time 0.003216/0.5521, allocations: 1.639 MB / 0.604 GB, free: 6.52 MB / 443.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.358e-05/0.5521, allocations: 85.48 kB / 0.6041 GB, free: 6.418 MB / 443.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005227/0.5527, allocations: 414.1 kB / 0.6045 GB, free: 6.008 MB / 443.1 MB Notification: Performance of collectPreVariables (initialization): time 3.983e-05/0.5527, allocations: 29.7 kB / 0.6045 GB, free: 5.973 MB / 443.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003186/0.553, allocations: 470.3 kB / 0.6049 GB, free: 5.504 MB / 443.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002054/0.5533, allocations: 201.1 kB / 0.6051 GB, free: 5.305 MB / 443.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.369e-05/0.5533, allocations: 0 / 0.6051 GB, free: 5.305 MB / 443.1 MB Notification: Performance of setup shared object (initialization): time 0.0001733/0.5535, allocations: 374.8 kB / 0.6055 GB, free: 4.93 MB / 443.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003697/0.5539, allocations: 253.5 kB / 0.6057 GB, free: 4.684 MB / 443.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004919/0.5544, allocations: 484.7 kB / 0.6062 GB, free: 4.105 MB / 443.1 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.002282/0.5567, allocations: 0.701 MB / 0.6069 GB, free: 3.406 MB / 443.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.712e-06/0.5567, allocations: 4 kB / 0.6069 GB, free: 3.402 MB / 443.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.002272/0.5589, allocations: 1.076 MB / 0.6079 GB, free: 2.285 MB / 443.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.539e-05/0.559, allocations: 8.344 kB / 0.6079 GB, free: 2.277 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001589/0.5606, allocations: 0.796 MB / 0.6087 GB, free: 1.449 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006526/0.5613, allocations: 211.2 kB / 0.6089 GB, free: 1.23 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005997/0.5619, allocations: 163.8 kB / 0.6091 GB, free: 1.07 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005864/0.5677, allocations: 5.998 MB / 0.6149 GB, free: 10.6 MB / 459.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007275/0.5685, allocations: 35.95 kB / 0.615 GB, free: 10.57 MB / 459.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.465e-05/0.5686, allocations: 32 kB / 0.615 GB, free: 10.54 MB / 459.1 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. Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: infBus.V:VARIABLE(unit = "V" nominal = 1000.0 protected = true ) = 20000.0 * infBus.v0 type: Real 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 (87): * Single equations (assignments): 83 * 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.0003266/0.5689, allocations: 132.7 kB / 0.6151 GB, free: 10.4 MB / 459.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001169/0.569, allocations: 63.38 kB / 0.6152 GB, free: 10.34 MB / 459.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001113/0.5702, allocations: 0.5957 MB / 0.6158 GB, free: 9.73 MB / 459.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.181e-05/0.5702, allocations: 11.94 kB / 0.6158 GB, free: 9.719 MB / 459.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.834e-06/0.5702, allocations: 0 / 0.6158 GB, free: 9.719 MB / 459.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.125e-06/0.5702, allocations: 3.984 kB / 0.6158 GB, free: 9.715 MB / 459.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002355/0.5726, allocations: 1.377 MB / 0.6171 GB, free: 8.277 MB / 459.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.5726, allocations: 0 / 0.6171 GB, free: 8.277 MB / 459.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006196/0.5732, allocations: 123.9 kB / 0.6172 GB, free: 8.156 MB / 459.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.538e-06/0.5732, allocations: 7.953 kB / 0.6172 GB, free: 8.148 MB / 459.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.648e-05/0.5733, allocations: 20.17 kB / 0.6173 GB, free: 8.129 MB / 459.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.198e-06/0.5733, allocations: 11.92 kB / 0.6173 GB, free: 8.117 MB / 459.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.5733, allocations: 0 / 0.6173 GB, free: 8.117 MB / 459.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001211/0.5745, allocations: 0.9981 MB / 0.6182 GB, free: 7.039 MB / 459.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002549/0.5748, allocations: 184.3 kB / 0.6184 GB, free: 6.84 MB / 459.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.086e-05/0.5749, allocations: 12 kB / 0.6184 GB, free: 6.828 MB / 459.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003077/0.5752, allocations: 20.09 kB / 0.6185 GB, free: 6.809 MB / 459.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.743e-05/0.5753, allocations: 32.39 kB / 0.6185 GB, free: 6.777 MB / 459.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.763e-05/0.5753, allocations: 16 kB / 0.6185 GB, free: 6.762 MB / 459.1 MB Notification: Performance of sorting global known variables: time 0.0003652/0.5757, allocations: 314.9 kB / 0.6188 GB, free: 6.457 MB / 459.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5757, allocations: 0 / 0.6188 GB, free: 6.457 MB / 459.1 MB Notification: Performance of remove unused functions: time 0.0008966/0.5766, allocations: 200 kB / 0.619 GB, free: 6.262 MB / 459.1 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 (55): * Single equations (assignments): 54 * 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.0002715/0.5769, allocations: 156.9 kB / 0.6191 GB, free: 6.098 MB / 459.1 MB Notification: Performance of simCode: created initialization part: time 0.001681/0.5786, allocations: 1.079 MB / 0.6202 GB, free: 4.977 MB / 459.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.5786, allocations: 0 / 0.6202 GB, free: 4.977 MB / 459.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003391/0.5789, allocations: 257.5 kB / 0.6204 GB, free: 4.727 MB / 459.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006248/0.5796, allocations: 118.6 kB / 0.6206 GB, free: 4.613 MB / 459.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002598/0.5822, allocations: 1.535 MB / 0.6221 GB, free: 3.023 MB / 459.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007256/0.5829, allocations: 1.098 MB / 0.6231 GB, free: 1.895 MB / 459.1 MB Notification: Performance of simCode: alias equations: time 0.0005642/0.5835, allocations: 205.4 kB / 0.6233 GB, free: 1.691 MB / 459.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001517/0.5836, allocations: 59.42 kB / 0.6234 GB, free: 1.637 MB / 459.1 MB Notification: Performance of SimCode: time 6.61e-07/0.5837, allocations: 0 / 0.6234 GB, free: 1.637 MB / 459.1 MB Notification: Performance of Templates: time 0.01492/0.5986, allocations: 7.523 MB / 0.6307 GB, free: 10.13 MB / 475.1 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