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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001609/0.001609, allocations: 113 kB / 17.05 MB, free: 6.086 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002311/0.002311, allocations: 188 kB / 17.99 MB, free: 5.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.465/1.465, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1776/0.1776, allocations: 38.05 MB / 329.9 MB, free: 8.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 60.09 kB / 458.1 MB, free: 6.844 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3736/0.3748, allocations: 58.06 MB / 0.5041 GB, free: 7.816 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PowerAngle): time 0.008305/0.3832, allocations: 7.451 MB / 0.5114 GB, free: 2.625 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004951/0.3882, allocations: 2.981 MB / 0.5143 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008811/0.3891, allocations: 29.94 kB / 0.5143 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002108/0.3912, allocations: 0.7787 MB / 0.5151 GB, free: 48 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002488/0.3937, allocations: 0.6853 MB / 0.5157 GB, free: 15.68 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001329/0.3951, allocations: 373.9 kB / 0.5161 GB, free: 15.5 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002788/0.3979, allocations: 1.328 MB / 0.5174 GB, free: 14.93 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001337/0.3992, allocations: 0.7488 MB / 0.5181 GB, free: 14.61 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001261/0.4005, allocations: 0.5502 MB / 0.5187 GB, free: 14.36 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00124/0.4018, allocations: 0.6362 MB / 0.5193 GB, free: 14.11 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001558/0.4019, allocations: 74.16 kB / 0.5194 GB, free: 14.11 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001034/0.403, allocations: 474.7 kB / 0.5198 GB, free: 13.98 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000457/0.4034, allocations: 455.7 kB / 0.5203 GB, free: 13.82 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005946/0.4041, allocations: 0.5041 MB / 0.5207 GB, free: 13.53 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002163/0.4062, allocations: 1.43 MB / 0.5221 GB, free: 13.04 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.4062, allocations: 0 / 0.5221 GB, free: 13.04 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.4063, allocations: 4 kB / 0.5221 GB, free: 13.03 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.705e-05/0.4063, allocations: 0 / 0.5221 GB, free: 13.03 MB / 398.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.00228/0.4086, allocations: 1.287 MB / 0.5234 GB, free: 12.16 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.362e-05/0.4086, allocations: 8.406 kB / 0.5234 GB, free: 12.16 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001237/0.4098, allocations: 210.9 kB / 0.5236 GB, free: 12.1 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001398/0.4113, allocations: 0.73 MB / 0.5243 GB, free: 11.67 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.61e-05/0.4113, allocations: 59.94 kB / 0.5244 GB, free: 11.64 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002178/0.4115, allocations: 104.2 kB / 0.5245 GB, free: 11.6 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001886/0.4134, allocations: 1.107 MB / 0.5256 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.017e-05/0.4135, allocations: 6.344 kB / 0.5256 GB, free: 11.11 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.287e-05/0.4136, allocations: 39.98 kB / 0.5256 GB, free: 11.08 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001874/0.4138, allocations: 72.83 kB / 0.5257 GB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001614/0.4154, allocations: 0.8824 MB / 0.5265 GB, free: 10.8 MB / 398.1 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.005365/0.4208, allocations: 4.072 MB / 0.5305 GB, free: 7.773 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006144/0.4214, allocations: 415 kB / 0.5309 GB, free: 7.496 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003801/0.4218, allocations: 277.7 kB / 0.5312 GB, free: 7.352 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.035e-05/0.4218, allocations: 16.7 kB / 0.5312 GB, free: 7.34 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.835e-05/0.4219, allocations: 36.94 kB / 0.5312 GB, free: 7.297 MB / 398.1 MB Notification: Performance of pre-optimization done (n=45): time 2.335e-06/0.4219, allocations: 0 / 0.5312 GB, free: 7.297 MB / 398.1 MB Notification: Performance of matching and sorting (n=52): time 0.00442/0.4263, allocations: 1.996 MB / 0.5332 GB, free: 6.105 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.233e-05/0.4264, allocations: 91.52 kB / 0.5333 GB, free: 6.004 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007071/0.4271, allocations: 0.5661 MB / 0.5338 GB, free: 5.668 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.485e-05/0.4272, allocations: 36.02 kB / 0.5338 GB, free: 5.629 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003128/0.4275, allocations: 485.6 kB / 0.5343 GB, free: 5.199 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001626/0.4276, allocations: 208.1 kB / 0.5345 GB, free: 5.02 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002033/0.4279, allocations: 143.8 kB / 0.5346 GB, free: 4.934 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001591/0.428, allocations: 380.8 kB / 0.535 GB, free: 4.57 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004157/0.4284, allocations: 269.4 kB / 0.5353 GB, free: 4.441 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005594/0.429, allocations: 0.5086 MB / 0.5358 GB, free: 3.992 MB / 398.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.003123/0.4321, allocations: 1.406 MB / 0.5371 GB, free: 3.09 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.46e-06/0.4322, allocations: 1.906 kB / 0.5371 GB, free: 3.09 MB / 398.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001909/0.4341, allocations: 1.092 MB / 0.5382 GB, free: 2.457 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.101e-05/0.4341, allocations: 8.656 kB / 0.5382 GB, free: 2.457 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001218/0.4353, allocations: 0.7588 MB / 0.539 GB, free: 2.016 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004966/0.4358, allocations: 156.3 kB / 0.5391 GB, free: 1.934 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006073/0.4365, allocations: 179.3 kB / 0.5393 GB, free: 1.887 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004028/0.4405, allocations: 4.863 MB / 0.544 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006247/0.4411, allocations: 38.94 kB / 0.5441 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.767e-05/0.4412, allocations: 29.62 kB / 0.5441 GB, free: 13.15 MB / 414.1 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.0005079/0.4417, allocations: 319.4 kB / 0.5444 GB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000122/0.4419, allocations: 75.62 kB / 0.5445 GB, free: 12.87 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001033/0.4429, allocations: 0.6384 MB / 0.5451 GB, free: 12.5 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.4429, allocations: 5.5 kB / 0.5451 GB, free: 12.5 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.953e-06/0.4429, allocations: 1.375 kB / 0.5451 GB, free: 12.5 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.097e-06/0.4429, allocations: 9.297 kB / 0.5451 GB, free: 12.49 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002378/0.4453, allocations: 1.519 MB / 0.5466 GB, free: 11.49 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.04e-06/0.4453, allocations: 1.438 kB / 0.5466 GB, free: 11.49 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005884/0.4459, allocations: 132.7 kB / 0.5467 GB, free: 11.45 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.44e-06/0.446, allocations: 7.188 kB / 0.5467 GB, free: 11.45 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.74e-05/0.446, allocations: 15.12 kB / 0.5467 GB, free: 11.44 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.39e-06/0.446, allocations: 4.188 kB / 0.5467 GB, free: 11.44 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.446, allocations: 1.156 kB / 0.5467 GB, free: 11.44 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001245/0.4473, allocations: 0.9689 MB / 0.5477 GB, free: 10.64 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002545/0.4475, allocations: 180.7 kB / 0.5479 GB, free: 10.45 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.104e-05/0.4476, allocations: 19.98 kB / 0.5479 GB, free: 10.43 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003236/0.448, allocations: 19.98 kB / 0.5479 GB, free: 10.41 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.262e-05/0.448, allocations: 36.33 kB / 0.5479 GB, free: 10.37 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.239e-05/0.4481, allocations: 20 kB / 0.548 GB, free: 10.35 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004902/0.4486, allocations: 415 kB / 0.5483 GB, free: 9.941 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4486, allocations: 0 / 0.5483 GB, free: 9.941 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009205/0.4495, allocations: 227.9 kB / 0.5486 GB, free: 9.719 MB / 414.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 () * 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.0003113/0.4498, allocations: 142 kB / 0.5487 GB, free: 9.574 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001531/0.4514, allocations: 1.027 MB / 0.5497 GB, free: 8.512 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.4514, allocations: 0 / 0.5497 GB, free: 8.512 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003695/0.4518, allocations: 270.2 kB / 0.55 GB, free: 8.246 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007725/0.4525, allocations: 152.6 kB / 0.5501 GB, free: 8.105 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002896/0.4554, allocations: 1.965 MB / 0.552 GB, free: 6.094 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006735/0.4561, allocations: 1.078 MB / 0.5531 GB, free: 4.988 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004991/0.4566, allocations: 197.8 kB / 0.5533 GB, free: 4.793 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001916/0.4568, allocations: 67.42 kB / 0.5533 GB, free: 4.727 MB / 414.1 MB Notification: Performance of SimCode: time 6.12e-07/0.4569, allocations: 0 / 0.5533 GB, free: 4.727 MB / 414.1 MB Notification: Performance of Templates: time 0.0154/0.4723, allocations: 8.836 MB / 0.562 GB, free: 11.94 MB / 430.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches