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.001671/0.001671, allocations: 112.2 kB / 17.74 MB, free: 5.344 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.001909/0.001909, allocations: 187.1 kB / 18.67 MB, free: 4.422 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.444/1.444, allocations: 222.9 MB / 242.4 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.1877/0.1877, allocations: 38.04 MB / 330.6 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001439/0.00144, allocations: 63.89 kB / 458.8 MB, free: 6.855 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.355/0.3564, allocations: 58.05 MB / 0.5048 GB, free: 7.781 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PowerAngle): time 0.007956/0.3644, allocations: 7.46 MB / 0.512 GB, free: 2.586 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004766/0.3692, allocations: 2.981 MB / 0.515 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000723/0.37, allocations: 29.22 kB / 0.515 GB, free: 492 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002334/0.3723, allocations: 0.7755 MB / 0.5157 GB, free: 12 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002459/0.3748, allocations: 0.6846 MB / 0.5164 GB, free: 15.64 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001338/0.3761, allocations: 381.8 kB / 0.5168 GB, free: 15.46 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002564/0.3787, allocations: 1.33 MB / 0.5181 GB, free: 14.89 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001616/0.3803, allocations: 0.7516 MB / 0.5188 GB, free: 14.56 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001586/0.3819, allocations: 0.5623 MB / 0.5194 GB, free: 14.31 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001556/0.3835, allocations: 0.624 MB / 0.52 GB, free: 14.06 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000318/0.3838, allocations: 74.53 kB / 0.52 GB, free: 14.06 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001478/0.3853, allocations: 482.8 kB / 0.5205 GB, free: 13.93 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008999/0.3863, allocations: 456.4 kB / 0.5209 GB, free: 13.77 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001478/0.3877, allocations: 0.5026 MB / 0.5214 GB, free: 13.48 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003186/0.3909, allocations: 1.422 MB / 0.5228 GB, free: 12.99 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.391, allocations: 1.219 kB / 0.5228 GB, free: 12.99 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.391, allocations: 4 kB / 0.5228 GB, free: 12.99 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.131e-05/0.3911, allocations: 0 / 0.5228 GB, free: 12.99 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.004295/0.3954, allocations: 1.265 MB / 0.5241 GB, free: 12.14 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.516e-05/0.3954, allocations: 13.48 kB / 0.5241 GB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001678/0.3971, allocations: 201.4 kB / 0.5243 GB, free: 12.08 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001875/0.399, allocations: 0.7228 MB / 0.525 GB, free: 11.66 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.01e-05/0.3991, allocations: 62.27 kB / 0.525 GB, free: 11.63 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002523/0.3994, allocations: 99.91 kB / 0.5251 GB, free: 11.59 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002022/0.4014, allocations: 1.112 MB / 0.5262 GB, free: 11.11 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.415e-05/0.4014, allocations: 13.91 kB / 0.5262 GB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.675e-05/0.4015, allocations: 36.83 kB / 0.5263 GB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001908/0.4017, allocations: 72.36 kB / 0.5263 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001655/0.4034, allocations: 0.8855 MB / 0.5272 GB, free: 10.78 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.006317/0.4097, allocations: 4.049 MB / 0.5311 GB, free: 7.855 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007779/0.4105, allocations: 420.6 kB / 0.5315 GB, free: 7.57 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000403/0.4109, allocations: 272.8 kB / 0.5318 GB, free: 7.43 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.464e-05/0.411, allocations: 12.22 kB / 0.5318 GB, free: 7.422 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.983e-05/0.4111, allocations: 37.56 kB / 0.5319 GB, free: 7.379 MB / 398.1 MB Notification: Performance of pre-optimization done (n=45): time 2.725e-06/0.4111, allocations: 0 / 0.5319 GB, free: 7.379 MB / 398.1 MB Notification: Performance of matching and sorting (n=52): time 0.005025/0.4161, allocations: 1.982 MB / 0.5338 GB, free: 6.199 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.975e-05/0.4162, allocations: 83.39 kB / 0.5339 GB, free: 6.105 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009367/0.4171, allocations: 0.5653 MB / 0.5344 GB, free: 5.77 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.382e-05/0.4172, allocations: 36.33 kB / 0.5345 GB, free: 5.73 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005033/0.4177, allocations: 473.2 kB / 0.5349 GB, free: 5.312 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001924/0.4179, allocations: 193.9 kB / 0.5351 GB, free: 5.145 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002626/0.4182, allocations: 148.4 kB / 0.5352 GB, free: 5.055 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001913/0.4184, allocations: 380.2 kB / 0.5356 GB, free: 4.691 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004778/0.4189, allocations: 269.4 kB / 0.5359 GB, free: 4.562 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007212/0.4196, allocations: 0.5104 MB / 0.5363 GB, free: 4.113 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.003283/0.4229, allocations: 1.396 MB / 0.5377 GB, free: 3.219 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.011e-05/0.4229, allocations: 2.219 kB / 0.5377 GB, free: 3.219 MB / 398.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002133/0.425, allocations: 1.105 MB / 0.5388 GB, free: 2.574 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.504e-05/0.4251, allocations: 7.531 kB / 0.5388 GB, free: 2.574 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001332/0.4264, allocations: 0.7545 MB / 0.5395 GB, free: 2.137 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005579/0.427, allocations: 160.3 kB / 0.5397 GB, free: 2.051 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006205/0.4276, allocations: 174.9 kB / 0.5399 GB, free: 2.008 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004594/0.4322, allocations: 4.859 MB / 0.5446 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006732/0.4329, allocations: 39.22 kB / 0.5446 GB, free: 13.28 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.407e-05/0.433, allocations: 30.12 kB / 0.5447 GB, free: 13.28 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.0006876/0.4337, allocations: 320.2 kB / 0.545 GB, free: 13.04 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001898/0.4339, allocations: 69.34 kB / 0.545 GB, free: 13 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001213/0.4351, allocations: 0.6389 MB / 0.5457 GB, free: 12.63 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.316e-06/0.4351, allocations: 6.25 kB / 0.5457 GB, free: 12.63 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.4351, allocations: 1.406 kB / 0.5457 GB, free: 12.63 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.066e-06/0.4352, allocations: 3.984 kB / 0.5457 GB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003089/0.4383, allocations: 1.512 MB / 0.5472 GB, free: 11.63 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.951e-06/0.4383, allocations: 5.281 kB / 0.5472 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006048/0.4389, allocations: 124.6 kB / 0.5473 GB, free: 11.6 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.652e-05/0.4389, allocations: 11.48 kB / 0.5473 GB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.318e-05/0.439, allocations: 15.38 kB / 0.5473 GB, free: 11.58 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.826e-06/0.439, allocations: 6.969 kB / 0.5473 GB, free: 11.58 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.439, allocations: 2.156 kB / 0.5473 GB, free: 11.58 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001475/0.4405, allocations: 0.9595 MB / 0.5482 GB, free: 10.75 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003683/0.4409, allocations: 184.2 kB / 0.5484 GB, free: 10.55 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001614/0.441, allocations: 16 kB / 0.5484 GB, free: 10.54 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003984/0.4414, allocations: 23.97 kB / 0.5485 GB, free: 10.51 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.763e-05/0.4415, allocations: 44.27 kB / 0.5485 GB, free: 10.47 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.392e-05/0.4416, allocations: 16.05 kB / 0.5485 GB, free: 10.45 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005529/0.4421, allocations: 411 kB / 0.5489 GB, free: 10.05 MB / 414.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.4421, allocations: 0 / 0.5489 GB, free: 10.05 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001064/0.4432, allocations: 232 kB / 0.5491 GB, free: 9.82 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.0004504/0.4437, allocations: 141.7 kB / 0.5493 GB, free: 9.676 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001796/0.4455, allocations: 1.032 MB / 0.5503 GB, free: 8.609 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.4455, allocations: 0 / 0.5503 GB, free: 8.609 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003851/0.4459, allocations: 270.2 kB / 0.5505 GB, free: 8.344 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009234/0.4468, allocations: 152.2 kB / 0.5507 GB, free: 8.203 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00377/0.4506, allocations: 2.011 MB / 0.5526 GB, free: 6.141 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008199/0.4514, allocations: 1.071 MB / 0.5537 GB, free: 5.043 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002347/0.4517, allocations: 63.42 kB / 0.5537 GB, free: 4.98 MB / 414.1 MB Notification: Performance of SimCode: time 9.52e-07/0.4517, allocations: 4 kB / 0.5538 GB, free: 4.977 MB / 414.1 MB Notification: Performance of Templates: time 0.02245/0.4741, allocations: 15.36 MB / 0.5688 GB, free: 5.621 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Generation.PowerAngle.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches