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.001136/0.001136, allocations: 107.1 kB / 17.06 MB, free: 5.824 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.001226/0.001227, allocations: 191 kB / 18 MB, free: 4.977 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.416/1.416, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1796/0.1796, allocations: 38.05 MB / 329.9 MB, free: 8.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001216/0.001216, allocations: 59.91 kB / 458.2 MB, free: 6.855 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3365/0.3377, allocations: 58.05 MB / 0.5041 GB, free: 7.73 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PowerAngle): time 0.01308/0.3509, allocations: 7.461 MB / 0.5114 GB, free: 2.539 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006651/0.3576, allocations: 2.975 MB / 0.5143 GB, free: 460 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000904/0.3585, allocations: 25.66 kB / 0.5143 GB, free: 452 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003049/0.3616, allocations: 0.7813 MB / 0.5151 GB, free: 15.97 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003341/0.3649, allocations: 0.7005 MB / 0.5158 GB, free: 15.59 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001802/0.3668, allocations: 374.2 kB / 0.5161 GB, free: 15.41 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003506/0.3703, allocations: 1.332 MB / 0.5174 GB, free: 14.84 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002199/0.3725, allocations: 0.7503 MB / 0.5182 GB, free: 14.52 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0023/0.3748, allocations: 0.5626 MB / 0.5187 GB, free: 14.27 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002595/0.3774, allocations: 0.629 MB / 0.5193 GB, free: 14.02 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005953/0.378, allocations: 74.28 kB / 0.5194 GB, free: 14.02 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002065/0.3801, allocations: 473.7 kB / 0.5198 GB, free: 13.89 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001212/0.3814, allocations: 458.7 kB / 0.5203 GB, free: 13.73 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00229/0.3837, allocations: 0.5058 MB / 0.5208 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004454/0.3881, allocations: 1.421 MB / 0.5222 GB, free: 12.95 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.062e-06/0.3882, allocations: 1.219 kB / 0.5222 GB, free: 12.95 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.266e-06/0.3882, allocations: 0.75 kB / 0.5222 GB, free: 12.95 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.813e-05/0.3882, allocations: 0 / 0.5222 GB, free: 12.95 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.005758/0.394, allocations: 1.264 MB / 0.5234 GB, free: 12.1 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.754e-05/0.3941, allocations: 14.19 kB / 0.5234 GB, free: 12.1 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002381/0.3965, allocations: 205.2 kB / 0.5236 GB, free: 12.04 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002946/0.3994, allocations: 0.7222 MB / 0.5243 GB, free: 11.62 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001037/0.3996, allocations: 59.59 kB / 0.5244 GB, free: 11.59 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004483/0.4, allocations: 100.5 kB / 0.5245 GB, free: 11.55 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003345/0.4034, allocations: 1.111 MB / 0.5256 GB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.237e-05/0.4035, allocations: 6.75 kB / 0.5256 GB, free: 11.06 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001531/0.4036, allocations: 35.61 kB / 0.5256 GB, free: 11.04 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002873/0.4039, allocations: 72.95 kB / 0.5257 GB, free: 11.02 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002857/0.4068, allocations: 0.8855 MB / 0.5265 GB, free: 10.75 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.009525/0.4163, allocations: 4.063 MB / 0.5305 GB, free: 7.844 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009347/0.4173, allocations: 414.3 kB / 0.5309 GB, free: 7.566 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006666/0.418, allocations: 272.7 kB / 0.5311 GB, free: 7.426 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.19e-05/0.4181, allocations: 16.23 kB / 0.5312 GB, free: 7.414 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.04e-05/0.4182, allocations: 37.91 kB / 0.5312 GB, free: 7.371 MB / 398.1 MB Notification: Performance of pre-optimization done (n=45): time 4.528e-06/0.4182, allocations: 0 / 0.5312 GB, free: 7.371 MB / 398.1 MB Notification: Performance of matching and sorting (n=52): time 0.00696/0.4252, allocations: 1.973 MB / 0.5331 GB, free: 6.199 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.802e-05/0.4253, allocations: 87.86 kB / 0.5332 GB, free: 6.102 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001274/0.4265, allocations: 0.5654 MB / 0.5338 GB, free: 5.766 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.451e-05/0.4266, allocations: 36.11 kB / 0.5338 GB, free: 5.727 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005044/0.4271, allocations: 481.8 kB / 0.5343 GB, free: 5.301 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002836/0.4274, allocations: 189.9 kB / 0.5344 GB, free: 5.137 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003539/0.4278, allocations: 143.3 kB / 0.5346 GB, free: 5.051 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000268/0.4281, allocations: 380.6 kB / 0.5349 GB, free: 4.688 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007075/0.4288, allocations: 273.6 kB / 0.5352 GB, free: 4.555 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000965/0.4298, allocations: 0.5061 MB / 0.5357 GB, free: 4.109 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.004812/0.4346, allocations: 1.405 MB / 0.5371 GB, free: 3.207 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.31e-05/0.4346, allocations: 6.094 kB / 0.5371 GB, free: 3.203 MB / 398.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.003152/0.4378, allocations: 1.097 MB / 0.5381 GB, free: 2.566 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.313e-05/0.4379, allocations: 7.719 kB / 0.5382 GB, free: 2.566 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002091/0.44, allocations: 0.7549 MB / 0.5389 GB, free: 2.129 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008173/0.4408, allocations: 159.6 kB / 0.539 GB, free: 2.043 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009937/0.4418, allocations: 175.9 kB / 0.5392 GB, free: 2 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006554/0.4484, allocations: 4.85 MB / 0.5439 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001197/0.4496, allocations: 38.56 kB / 0.544 GB, free: 13.28 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001285/0.4497, allocations: 34.78 kB / 0.544 GB, free: 13.27 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.001023/0.4508, allocations: 315.8 kB / 0.5443 GB, free: 13.04 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003196/0.4511, allocations: 69.25 kB / 0.5444 GB, free: 13 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001818/0.4529, allocations: 0.6445 MB / 0.545 GB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.886e-06/0.453, allocations: 5.688 kB / 0.545 GB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.427e-06/0.453, allocations: 4 kB / 0.545 GB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.318e-05/0.453, allocations: 5.391 kB / 0.545 GB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004531/0.4575, allocations: 1.522 MB / 0.5465 GB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.088e-06/0.4576, allocations: 2.219 kB / 0.5465 GB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009254/0.4585, allocations: 124.9 kB / 0.5466 GB, free: 11.58 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.665e-05/0.4585, allocations: 3.625 kB / 0.5466 GB, free: 11.58 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.975e-05/0.4586, allocations: 18.16 kB / 0.5467 GB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.049e-05/0.4586, allocations: 3.875 kB / 0.5467 GB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.48e-06/0.4586, allocations: 2.5 kB / 0.5467 GB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002152/0.4608, allocations: 0.9585 MB / 0.5476 GB, free: 10.75 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004668/0.4613, allocations: 188.2 kB / 0.5478 GB, free: 10.55 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001876/0.4615, allocations: 19.98 kB / 0.5478 GB, free: 10.53 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005458/0.462, allocations: 19.98 kB / 0.5478 GB, free: 10.51 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001041/0.4622, allocations: 36.33 kB / 0.5478 GB, free: 10.47 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.337e-05/0.4622, allocations: 16 kB / 0.5479 GB, free: 10.46 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0007905/0.463, allocations: 411 kB / 0.5483 GB, free: 10.05 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.463, allocations: 0 / 0.5483 GB, free: 10.05 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00159/0.4646, allocations: 232 kB / 0.5485 GB, free: 9.824 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.0004624/0.4651, allocations: 145 kB / 0.5486 GB, free: 9.676 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002416/0.4675, allocations: 1.023 MB / 0.5496 GB, free: 8.617 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.037e-06/0.4676, allocations: 1.438 kB / 0.5496 GB, free: 8.617 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006266/0.4682, allocations: 266.7 kB / 0.5499 GB, free: 8.355 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001329/0.4695, allocations: 156.4 kB / 0.55 GB, free: 8.211 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004922/0.4745, allocations: 1.932 MB / 0.5519 GB, free: 6.23 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001192/0.4757, allocations: 1.086 MB / 0.553 GB, free: 5.117 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0008577/0.4766, allocations: 197.8 kB / 0.5532 GB, free: 4.922 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000295/0.4769, allocations: 63.41 kB / 0.5532 GB, free: 4.859 MB / 414.1 MB Notification: Performance of SimCode: time 9.02e-07/0.4769, allocations: 0 / 0.5532 GB, free: 4.859 MB / 414.1 MB Notification: Performance of Templates: time 0.02612/0.503, allocations: 8.849 MB / 0.5619 GB, free: 12.07 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