Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.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.TurbineGenerator,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.TurbineGenerator") translateModel(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator,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.TurbineGenerator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001036/0.001036, allocations: 101 kB / 16.5 MB, free: 6.645 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.00102/0.00102, allocations: 194.8 kB / 17.42 MB, free: 6.066 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.32/1.32, allocations: 222.9 MB / 241.1 MB, free: 15.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.184/0.184, allocations: 38.04 MB / 329.3 MB, free: 9.082 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 69.41 kB / 398.1 MB, free: 34.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.11, allocations: 58.08 MB / 456.2 MB, free: 8.547 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator): time 0.01065/0.1207, allocations: 8.736 MB / 464.9 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006488/0.1273, allocations: 3.381 MB / 468.3 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001367/0.1287, allocations: 55.62 kB / 468.3 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002193/0.1309, allocations: 0.6791 MB / 469 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001971/0.1329, allocations: 0.6419 MB / 469.7 MB, free: 11 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009703/0.1339, allocations: 335.5 kB / 470 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002335/0.1362, allocations: 2.003 MB / 472 MB, free: 8.656 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001052/0.1373, allocations: 0.6659 MB / 472.7 MB, free: 7.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008238/0.1381, allocations: 481.9 kB / 473.1 MB, free: 7.508 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001232/0.1394, allocations: 0.6657 MB / 473.8 MB, free: 6.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002652/0.1397, allocations: 56 kB / 473.9 MB, free: 6.785 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001134/0.1408, allocations: 483.1 kB / 474.3 MB, free: 6.312 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004581/0.1413, allocations: 430.9 kB / 474.7 MB, free: 5.891 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005944/0.1419, allocations: 497.4 kB / 475.2 MB, free: 5.402 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001467/0.1434, allocations: 1.375 MB / 476.6 MB, free: 4.023 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.013e-06/0.1434, allocations: 4 kB / 476.6 MB, free: 4.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1434, allocations: 0 / 476.6 MB, free: 4.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.405e-05/0.1434, allocations: 0 / 476.6 MB, free: 4.02 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: 222 * Number of variables: 222 Notification: Performance of Generate backend data structure: time 0.002258/0.1457, allocations: 1.273 MB / 477.9 MB, free: 2.695 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.1457, allocations: 12.03 kB / 477.9 MB, free: 2.684 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001316/0.147, allocations: 219.5 kB / 478.1 MB, free: 2.469 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001384/0.1484, allocations: 0.6981 MB / 478.8 MB, free: 1.727 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.682e-05/0.1485, allocations: 62.36 kB / 478.9 MB, free: 1.668 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002647/0.1488, allocations: 103.8 kB / 479 MB, free: 1.566 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001689/0.1505, allocations: 1.096 MB / 480.1 MB, free: 432 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.317e-05/0.1505, allocations: 8 kB / 480.1 MB, free: 424 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.649e-05/0.1506, allocations: 28 kB / 480.1 MB, free: 396 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001824/0.1508, allocations: 73.95 kB / 480.2 MB, free: 324 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00143/0.1522, allocations: 0.8704 MB / 481 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005525/0.1578, allocations: 4.008 MB / 485.1 MB, free: 11.24 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006538/0.1585, allocations: 431.8 kB / 485.5 MB, free: 10.78 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003769/0.1589, allocations: 275 kB / 485.7 MB, free: 10.5 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.208e-05/0.1589, allocations: 4.438 kB / 485.7 MB, free: 10.5 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.098e-05/0.1589, allocations: 46.92 kB / 485.8 MB, free: 10.44 MB / 366.1 MB Notification: Performance of pre-optimization done (n=48): time 2.816e-06/0.159, allocations: 0 / 485.8 MB, free: 10.44 MB / 366.1 MB Notification: Performance of matching and sorting (n=51): time 0.002994/0.162, allocations: 1.705 MB / 487.5 MB, free: 8.68 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.767e-05/0.162, allocations: 89.55 kB / 487.6 MB, free: 8.574 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006857/0.1627, allocations: 0.5898 MB / 488.2 MB, free: 7.973 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.786e-05/0.1628, allocations: 45.7 kB / 488.2 MB, free: 7.922 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003197/0.1631, allocations: 466.5 kB / 488.7 MB, free: 7.457 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001522/0.1633, allocations: 189.3 kB / 488.9 MB, free: 7.27 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002085/0.1635, allocations: 138.6 kB / 489 MB, free: 7.129 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001753/0.1637, allocations: 382.8 kB / 489.4 MB, free: 6.746 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003892/0.1641, allocations: 245.8 kB / 489.6 MB, free: 6.508 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005809/0.1646, allocations: 480.9 kB / 490.1 MB, free: 5.941 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001/0.1656, allocations: 0.7742 MB / 490.9 MB, free: 5.07 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.1657, allocations: 4 kB / 490.9 MB, free: 5.066 MB / 366.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.00209/0.1678, allocations: 1.118 MB / 492 MB, free: 3.914 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.514e-05/0.1678, allocations: 8 kB / 492 MB, free: 3.906 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001446/0.1692, allocations: 0.7956 MB / 492.8 MB, free: 3.082 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008309/0.1701, allocations: 226.5 kB / 493 MB, free: 2.852 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000547/0.1707, allocations: 151.8 kB / 493.1 MB, free: 2.703 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005781/0.1764, allocations: 5.233 MB / 498.4 MB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006639/0.1771, allocations: 43.91 kB / 498.4 MB, free: 13.01 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.935e-05/0.1772, allocations: 32 kB / 498.5 MB, free: 12.98 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (80): * Single equations (assignments): 77 * 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): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0005087/0.1777, allocations: 313.1 kB / 498.8 MB, free: 12.67 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001478/0.1779, allocations: 63.16 kB / 498.8 MB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001026/0.1789, allocations: 0.6124 MB / 499.4 MB, free: 11.98 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.211e-06/0.1789, allocations: 4 kB / 499.4 MB, free: 11.98 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.1789, allocations: 4 kB / 499.4 MB, free: 11.98 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.857e-06/0.179, allocations: 7.922 kB / 499.5 MB, free: 11.97 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002524/0.1815, allocations: 1.486 MB / 0.4892 GB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.1815, allocations: 0 / 0.4892 GB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006348/0.1821, allocations: 127.9 kB / 0.4893 GB, free: 10.29 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.857e-06/0.1822, allocations: 7.984 kB / 0.4893 GB, free: 10.28 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.115e-05/0.1822, allocations: 12.16 kB / 0.4893 GB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.354e-06/0.1822, allocations: 11.98 kB / 0.4893 GB, free: 10.26 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.909e-06/0.1822, allocations: 7.938 kB / 0.4894 GB, free: 10.25 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001256/0.1835, allocations: 0.9193 MB / 0.4903 GB, free: 9.297 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002694/0.1838, allocations: 184.2 kB / 0.4904 GB, free: 9.098 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.904e-05/0.1839, allocations: 20 kB / 0.4904 GB, free: 9.078 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003283/0.1842, allocations: 23.92 kB / 0.4905 GB, free: 9.055 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.19e-05/0.1843, allocations: 36.33 kB / 0.4905 GB, free: 9.02 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.348e-05/0.1844, allocations: 19.94 kB / 0.4905 GB, free: 9 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005192/0.1849, allocations: 419 kB / 0.4909 GB, free: 8.594 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1849, allocations: 4 kB / 0.4909 GB, free: 8.59 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008739/0.1858, allocations: 236 kB / 0.4912 GB, free: 8.359 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 8 (turboGrp.phi,turboGrp.w,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 (54): * Single equations (assignments): 53 * 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.0003178/0.1861, allocations: 141 kB / 0.4913 GB, free: 8.219 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001736/0.1878, allocations: 1.038 MB / 0.4923 GB, free: 7.141 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.64e-06/0.1879, allocations: 4.438 kB / 0.4923 GB, free: 7.137 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003616/0.1882, allocations: 262.3 kB / 0.4926 GB, free: 6.883 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007978/0.189, allocations: 142 kB / 0.4927 GB, free: 6.746 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003414/0.1925, allocations: 2.403 MB / 0.495 GB, free: 4.297 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000786/0.1933, allocations: 1.075 MB / 0.4961 GB, free: 3.195 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006255/0.1939, allocations: 189.9 kB / 0.4963 GB, free: 3.008 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001744/0.1941, allocations: 63.42 kB / 0.4963 GB, free: 2.945 MB / 382.1 MB Notification: Performance of SimCode: time 1.403e-06/0.1941, allocations: 3.938 kB / 0.4963 GB, free: 2.941 MB / 382.1 MB Notification: Performance of Templates: time 0.01674/0.2108, allocations: 8.828 MB / 0.505 GB, free: 10.18 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches