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.001647/0.001647, allocations: 114.3 kB / 17.68 MB, free: 5.473 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.001724/0.001724, allocations: 190.9 kB / 18.62 MB, free: 4.543 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.494/1.494, allocations: 222.9 MB / 242.3 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1947/0.1947, allocations: 38.03 MB / 330.5 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 59.41 kB / 400.2 MB, free: 33.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1217/0.123, allocations: 58.06 MB / 458.3 MB, free: 7.316 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PowerAngle): time 0.009308/0.1324, allocations: 7.441 MB / 465.8 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005366/0.1378, allocations: 2.999 MB / 468.8 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006606/0.1385, allocations: 23.88 kB / 468.8 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002144/0.1406, allocations: 0.781 MB / 469.6 MB, free: 12.03 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00214/0.1428, allocations: 0.696 MB / 470.3 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001111/0.1439, allocations: 375.1 kB / 470.6 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002246/0.1462, allocations: 1.321 MB / 471.9 MB, free: 9.637 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001052/0.1472, allocations: 0.7524 MB / 472.7 MB, free: 8.875 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008867/0.1481, allocations: 0.5526 MB / 473.2 MB, free: 8.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008782/0.149, allocations: 0.6229 MB / 473.9 MB, free: 7.695 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001159/0.1492, allocations: 72 kB / 473.9 MB, free: 7.625 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000862/0.15, allocations: 479.2 kB / 474.4 MB, free: 7.156 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003953/0.1504, allocations: 454.9 kB / 474.9 MB, free: 6.711 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004997/0.1509, allocations: 0.5054 MB / 475.4 MB, free: 6.203 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00166/0.1526, allocations: 1.425 MB / 476.8 MB, free: 4.773 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.421e-06/0.1526, allocations: 0 / 476.8 MB, free: 4.773 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.1526, allocations: 0 / 476.8 MB, free: 4.773 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.49e-05/0.1527, allocations: 0 / 476.8 MB, free: 4.773 MB / 350.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.002332/0.155, allocations: 1.269 MB / 478.1 MB, free: 3.453 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.659e-05/0.1551, allocations: 11.89 kB / 478.1 MB, free: 3.441 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001211/0.1563, allocations: 203.6 kB / 478.3 MB, free: 3.242 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001526/0.1578, allocations: 0.7177 MB / 479 MB, free: 2.484 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.202e-05/0.1579, allocations: 70.36 kB / 479 MB, free: 2.418 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002341/0.1581, allocations: 95.86 kB / 479.1 MB, free: 2.324 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001641/0.1598, allocations: 1.111 MB / 480.3 MB, free: 1.164 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.008e-05/0.1598, allocations: 4 kB / 480.3 MB, free: 1.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.305e-05/0.1599, allocations: 32 kB / 480.3 MB, free: 1.129 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001538/0.1601, allocations: 69.95 kB / 480.4 MB, free: 1.062 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001317/0.1614, allocations: 0.8938 MB / 481.2 MB, free: 172 kB / 350.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.005392/0.1668, allocations: 4.058 MB / 485.3 MB, free: 11.89 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006152/0.1674, allocations: 414.1 kB / 485.7 MB, free: 11.45 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003768/0.1678, allocations: 269.6 kB / 486 MB, free: 11.18 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.418e-05/0.1679, allocations: 7.938 kB / 486 MB, free: 11.17 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.586e-05/0.1679, allocations: 38.56 kB / 486 MB, free: 11.12 MB / 366.1 MB Notification: Performance of pre-optimization done (n=45): time 2.635e-06/0.1679, allocations: 3.938 kB / 486 MB, free: 11.12 MB / 366.1 MB Notification: Performance of matching and sorting (n=52): time 0.004612/0.1725, allocations: 1.977 MB / 488 MB, free: 9.086 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.885e-05/0.1726, allocations: 85.53 kB / 488.1 MB, free: 8.984 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009029/0.1735, allocations: 0.5694 MB / 488.7 MB, free: 8.406 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.912e-05/0.1736, allocations: 33.7 kB / 488.7 MB, free: 8.367 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003881/0.174, allocations: 478.4 kB / 489.2 MB, free: 7.891 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001924/0.1742, allocations: 185.3 kB / 489.3 MB, free: 7.707 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003262/0.1745, allocations: 150.4 kB / 489.5 MB, free: 7.551 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000215/0.1748, allocations: 386.7 kB / 489.9 MB, free: 7.164 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006283/0.1754, allocations: 265.8 kB / 490.1 MB, free: 6.906 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007636/0.1762, allocations: 0.5081 MB / 490.6 MB, free: 6.293 MB / 366.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.003289/0.1795, allocations: 1.4 MB / 492 MB, free: 4.793 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.466e-06/0.1795, allocations: 4 kB / 492 MB, free: 4.789 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001995/0.1815, allocations: 1.095 MB / 493.1 MB, free: 3.656 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.217e-05/0.1815, allocations: 8 kB / 493.1 MB, free: 3.648 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001257/0.1828, allocations: 0.7599 MB / 493.9 MB, free: 2.863 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005456/0.1834, allocations: 158.6 kB / 494 MB, free: 2.699 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006313/0.184, allocations: 175.7 kB / 494.2 MB, free: 2.527 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004347/0.1884, allocations: 4.849 MB / 499.1 MB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007007/0.1891, allocations: 39.97 kB / 499.1 MB, free: 13.21 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.326e-05/0.1892, allocations: 32 kB / 499.1 MB, free: 13.18 MB / 382.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.0005787/0.1897, allocations: 323.7 kB / 499.5 MB, free: 12.86 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001237/0.1899, allocations: 71.09 kB / 499.5 MB, free: 12.79 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001111/0.191, allocations: 0.6434 MB / 0.4884 GB, free: 12.13 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.124e-06/0.191, allocations: 4 kB / 0.4885 GB, free: 12.12 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-06/0.191, allocations: 7.938 kB / 0.4885 GB, free: 12.12 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.802e-06/0.191, allocations: 0 / 0.4885 GB, free: 12.12 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002547/0.1936, allocations: 1.522 MB / 0.4899 GB, free: 10.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.15e-06/0.1936, allocations: 8.188 kB / 0.49 GB, free: 10.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005962/0.1942, allocations: 119.9 kB / 0.4901 GB, free: 10.4 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.665e-05/0.1942, allocations: 4 kB / 0.4901 GB, free: 10.39 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.019e-05/0.1943, allocations: 12 kB / 0.4901 GB, free: 10.38 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.969e-06/0.1943, allocations: 11.92 kB / 0.4901 GB, free: 10.37 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.1943, allocations: 4 kB / 0.4901 GB, free: 10.37 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001236/0.1956, allocations: 0.9561 MB / 0.491 GB, free: 9.375 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003314/0.1959, allocations: 176.4 kB / 0.4912 GB, free: 9.184 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.74e-05/0.196, allocations: 23.89 kB / 0.4912 GB, free: 9.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003311/0.1963, allocations: 19.98 kB / 0.4912 GB, free: 9.141 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.101e-05/0.1964, allocations: 40.33 kB / 0.4913 GB, free: 9.102 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.29e-05/0.1965, allocations: 12 kB / 0.4913 GB, free: 9.09 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005243/0.197, allocations: 411 kB / 0.4917 GB, free: 8.688 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.197, allocations: 0 / 0.4917 GB, free: 8.688 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009497/0.198, allocations: 240 kB / 0.4919 GB, free: 8.453 MB / 382.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.0003768/0.1983, allocations: 153.6 kB / 0.4921 GB, free: 8.297 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001607/0.2, allocations: 1.014 MB / 0.493 GB, free: 7.246 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.2, allocations: 0 / 0.493 GB, free: 7.246 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003737/0.2004, allocations: 267.9 kB / 0.4933 GB, free: 6.984 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007687/0.2011, allocations: 150.5 kB / 0.4934 GB, free: 6.836 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003021/0.2042, allocations: 1.929 MB / 0.4953 GB, free: 4.852 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007146/0.2049, allocations: 1.082 MB / 0.4964 GB, free: 3.742 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005381/0.2055, allocations: 201.8 kB / 0.4966 GB, free: 3.543 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001738/0.2056, allocations: 59.42 kB / 0.4966 GB, free: 3.488 MB / 382.1 MB Notification: Performance of SimCode: time 1.292e-06/0.2056, allocations: 0 / 0.4966 GB, free: 3.488 MB / 382.1 MB Notification: Performance of Templates: time 0.01741/0.2231, allocations: 8.657 MB / 0.5051 GB, free: 10.89 MB / 398.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 -s cvode -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