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.001283/0.001283, allocations: 100.9 kB / 17.59 MB, free: 5.426 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.002011/0.002011, allocations: 187.6 kB / 18.51 MB, free: 4.504 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.385/1.385, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1744/0.1744, allocations: 38.03 MB / 330.4 MB, free: 8.844 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001253/0.001253, allocations: 68.47 kB / 399.5 MB, free: 34.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08899/0.09026, allocations: 58.07 MB / 457.5 MB, free: 8.059 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PowerAngle): time 0.007775/0.09807, allocations: 7.438 MB / 465 MB, free: 0.582 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004128/0.1022, allocations: 2.995 MB / 468 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003456/0.1026, allocations: 23.88 kB / 468 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001839/0.1044, allocations: 0.7848 MB / 468.8 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001385/0.1058, allocations: 0.6921 MB / 469.5 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008001/0.1067, allocations: 363.2 kB / 469.8 MB, free: 11.72 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001284/0.108, allocations: 1.336 MB / 471.2 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008149/0.1088, allocations: 0.7447 MB / 471.9 MB, free: 9.625 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005525/0.1094, allocations: 0.5526 MB / 472.5 MB, free: 9.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007381/0.1101, allocations: 0.6229 MB / 473.1 MB, free: 8.445 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001112/0.1102, allocations: 76 kB / 473.2 MB, free: 8.371 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007463/0.111, allocations: 479.2 kB / 473.6 MB, free: 7.902 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003643/0.1114, allocations: 458.9 kB / 474.1 MB, free: 7.453 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004579/0.1118, allocations: 0.4976 MB / 474.6 MB, free: 6.953 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001235/0.1131, allocations: 1.41 MB / 476 MB, free: 5.539 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.1131, allocations: 3.938 kB / 476 MB, free: 5.535 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1131, allocations: 0 / 476 MB, free: 5.535 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.283e-05/0.1131, allocations: 0 / 476 MB, free: 5.535 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.001929/0.115, allocations: 1.264 MB / 477.3 MB, free: 4.223 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.364e-05/0.1151, allocations: 11.89 kB / 477.3 MB, free: 4.211 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001185/0.1163, allocations: 199.6 kB / 477.5 MB, free: 4.016 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001144/0.1174, allocations: 0.6943 MB / 478.2 MB, free: 3.281 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.307e-05/0.1175, allocations: 58.38 kB / 478.2 MB, free: 3.227 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002058/0.1177, allocations: 103.8 kB / 478.3 MB, free: 3.125 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001467/0.1192, allocations: 1.115 MB / 479.4 MB, free: 1.961 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.441e-05/0.1192, allocations: 0 / 479.4 MB, free: 1.961 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.928e-05/0.1193, allocations: 39.98 kB / 479.5 MB, free: 1.922 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000173/0.1195, allocations: 69.95 kB / 479.5 MB, free: 1.855 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001284/0.1208, allocations: 0.8899 MB / 480.4 MB, free: 0.9648 MB / 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.004628/0.1254, allocations: 4.089 MB / 484.5 MB, free: 12.66 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000554/0.126, allocations: 410.1 kB / 484.9 MB, free: 12.22 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003457/0.1263, allocations: 273.6 kB / 485.2 MB, free: 11.95 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.487e-05/0.1264, allocations: 11.94 kB / 485.2 MB, free: 11.94 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.656e-05/0.1264, allocations: 34.56 kB / 485.2 MB, free: 11.89 MB / 366.1 MB Notification: Performance of pre-optimization done (n=45): time 2.595e-06/0.1264, allocations: 3.938 kB / 485.2 MB, free: 11.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=52): time 0.003934/0.1304, allocations: 1.981 MB / 487.2 MB, free: 9.852 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.759e-05/0.1304, allocations: 85.55 kB / 487.3 MB, free: 9.75 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005905/0.131, allocations: 0.5655 MB / 487.9 MB, free: 9.176 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.21e-05/0.1311, allocations: 37.7 kB / 487.9 MB, free: 9.133 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002841/0.1314, allocations: 470.4 kB / 488.4 MB, free: 8.664 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001479/0.1315, allocations: 197.2 kB / 488.5 MB, free: 8.469 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001918/0.1317, allocations: 146.5 kB / 488.7 MB, free: 8.316 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.1319, allocations: 378.7 kB / 489.1 MB, free: 7.938 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003884/0.1323, allocations: 269.8 kB / 489.3 MB, free: 7.676 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005371/0.1328, allocations: 0.5081 MB / 489.8 MB, free: 7.062 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.002928/0.1358, allocations: 1.4 MB / 491.2 MB, free: 5.562 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.873e-06/0.1358, allocations: 4 kB / 491.2 MB, free: 5.559 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001787/0.1376, allocations: 1.103 MB / 492.3 MB, free: 4.418 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.946e-05/0.1376, allocations: 8 kB / 492.3 MB, free: 4.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001227/0.1388, allocations: 0.757 MB / 493.1 MB, free: 3.625 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005227/0.1394, allocations: 162.4 kB / 493.3 MB, free: 3.457 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005903/0.14, allocations: 179.7 kB / 493.4 MB, free: 3.281 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004657/0.1446, allocations: 4.849 MB / 498.3 MB, free: 14.01 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006186/0.1453, allocations: 39.97 kB / 498.3 MB, free: 13.97 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.507e-05/0.1454, allocations: 36 kB / 498.4 MB, free: 13.94 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.0005008/0.1459, allocations: 321.4 kB / 498.7 MB, free: 13.61 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001837/0.1461, allocations: 71.09 kB / 498.7 MB, free: 13.54 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001083/0.1472, allocations: 0.6395 MB / 499.4 MB, free: 12.89 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.1472, allocations: 8 kB / 499.4 MB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.803e-06/0.1472, allocations: 0 / 499.4 MB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/0.1472, allocations: 3.984 kB / 499.4 MB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002735/0.1499, allocations: 1.518 MB / 0.4892 GB, free: 11.29 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.539e-06/0.1499, allocations: 0 / 0.4892 GB, free: 11.29 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006343/0.1506, allocations: 123.9 kB / 0.4893 GB, free: 11.17 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.187e-06/0.1506, allocations: 4 kB / 0.4893 GB, free: 11.16 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.965e-05/0.1507, allocations: 12.09 kB / 0.4893 GB, free: 11.15 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.799e-06/0.1507, allocations: 7.938 kB / 0.4893 GB, free: 11.14 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.005e-06/0.1507, allocations: 8.188 kB / 0.4893 GB, free: 11.14 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001261/0.1519, allocations: 0.9589 MB / 0.4903 GB, free: 10.14 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002606/0.1522, allocations: 176.4 kB / 0.4904 GB, free: 9.945 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001039/0.1523, allocations: 23.89 kB / 0.4904 GB, free: 9.922 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003322/0.1527, allocations: 24.11 kB / 0.4905 GB, free: 9.898 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000107/0.1528, allocations: 36.33 kB / 0.4905 GB, free: 9.863 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.16e-05/0.1528, allocations: 16 kB / 0.4905 GB, free: 9.848 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000469/0.1533, allocations: 411 kB / 0.4909 GB, free: 9.445 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.1533, allocations: 4 kB / 0.4909 GB, free: 9.441 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008379/0.1541, allocations: 236 kB / 0.4911 GB, free: 9.211 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.0002859/0.1544, allocations: 150.2 kB / 0.4913 GB, free: 9.059 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001934/0.1564, allocations: 1.148 MB / 0.4924 GB, free: 7.875 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/0.1564, allocations: 0 / 0.4924 GB, free: 7.875 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000479/0.1569, allocations: 270.5 kB / 0.4927 GB, free: 7.605 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007786/0.1577, allocations: 152.4 kB / 0.4928 GB, free: 7.457 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003332/0.161, allocations: 2.025 MB / 0.4948 GB, free: 5.379 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000707/0.1617, allocations: 1.071 MB / 0.4958 GB, free: 4.281 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001946/0.1619, allocations: 67.42 kB / 0.4959 GB, free: 4.215 MB / 382.1 MB Notification: Performance of SimCode: time 4e-07/0.1619, allocations: 0 / 0.4959 GB, free: 4.215 MB / 382.1 MB Notification: Performance of Templates: time 0.02093/0.1829, allocations: 15.28 MB / 0.5108 GB, free: 4.941 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 -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