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.001319/0.001319, allocations: 107.4 kB / 17.68 MB, free: 5.492 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.001288/0.001288, allocations: 192 kB / 18.62 MB, free: 4.562 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.348/1.348, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1775/0.1775, allocations: 38.03 MB / 330.5 MB, free: 8.793 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001241, allocations: 63.66 kB / 400.2 MB, free: 33.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09892/0.1002, allocations: 58.07 MB / 458.3 MB, free: 7.352 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator): time 0.008824/0.109, allocations: 7.52 MB / 465.8 MB, free: 15.79 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004544/0.1136, allocations: 2.968 MB / 468.8 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003614/0.114, allocations: 23.88 kB / 468.8 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00189/0.116, allocations: 0.7466 MB / 469.6 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001546/0.1175, allocations: 0.692 MB / 470.3 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009132/0.1185, allocations: 372.7 kB / 470.6 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001556/0.12, allocations: 1.348 MB / 472 MB, free: 9.629 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008403/0.1209, allocations: 0.7091 MB / 472.7 MB, free: 8.91 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006245/0.1215, allocations: 0.5604 MB / 473.2 MB, free: 8.348 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008029/0.1223, allocations: 0.6267 MB / 473.9 MB, free: 7.719 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001065/0.1224, allocations: 72 kB / 473.9 MB, free: 7.648 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007531/0.1232, allocations: 483.1 kB / 474.4 MB, free: 7.176 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000385/0.1236, allocations: 450.9 kB / 474.9 MB, free: 6.734 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004779/0.1241, allocations: 0.5092 MB / 475.4 MB, free: 6.223 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001371/0.1255, allocations: 1.417 MB / 476.8 MB, free: 4.801 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.582e-06/0.1255, allocations: 8 kB / 476.8 MB, free: 4.793 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1255, allocations: 0 / 476.8 MB, free: 4.793 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.304e-05/0.1255, allocations: 0 / 476.8 MB, free: 4.793 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.00213/0.1277, allocations: 1.277 MB / 478.1 MB, free: 3.465 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.661e-05/0.1277, allocations: 15.89 kB / 478.1 MB, free: 3.449 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001159/0.1289, allocations: 207.5 kB / 478.3 MB, free: 3.246 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001506/0.1304, allocations: 0.7371 MB / 479 MB, free: 2.469 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.166e-05/0.1304, allocations: 62.36 kB / 479.1 MB, free: 2.41 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002177/0.1307, allocations: 103.9 kB / 479.2 MB, free: 2.309 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001467/0.1322, allocations: 1.096 MB / 480.3 MB, free: 1.164 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.788e-05/0.1322, allocations: 0 / 480.3 MB, free: 1.164 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.265e-05/0.1323, allocations: 32 kB / 480.3 MB, free: 1.133 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001541/0.1324, allocations: 73.95 kB / 480.4 MB, free: 1.062 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00129/0.1337, allocations: 0.8782 MB / 481.3 MB, free: 188 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004951/0.1387, allocations: 3.973 MB / 485.2 MB, free: 12.01 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006146/0.1393, allocations: 443.8 kB / 485.7 MB, free: 11.54 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000371/0.1397, allocations: 278.9 kB / 485.9 MB, free: 11.26 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.146e-05/0.1398, allocations: 8.438 kB / 485.9 MB, free: 11.25 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.684e-05/0.1398, allocations: 46.92 kB / 486 MB, free: 11.2 MB / 366.1 MB Notification: Performance of pre-optimization done (n=48): time 1.893e-06/0.1398, allocations: 0 / 486 MB, free: 11.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=51): time 0.002836/0.1427, allocations: 1.713 MB / 487.7 MB, free: 9.43 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.394e-05/0.1427, allocations: 85.55 kB / 487.8 MB, free: 9.328 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006269/0.1434, allocations: 0.5939 MB / 488.4 MB, free: 8.723 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.756e-05/0.1434, allocations: 37.7 kB / 488.4 MB, free: 8.68 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002988/0.1437, allocations: 462.5 kB / 488.9 MB, free: 8.219 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001403/0.1438, allocations: 189.3 kB / 489.1 MB, free: 8.031 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002006/0.1441, allocations: 134.6 kB / 489.2 MB, free: 7.891 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001843/0.1442, allocations: 386.8 kB / 489.6 MB, free: 7.504 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003855/0.1446, allocations: 245.8 kB / 489.8 MB, free: 7.266 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005272/0.1452, allocations: 484.9 kB / 490.3 MB, free: 6.695 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009859/0.1462, allocations: 0.7703 MB / 491.1 MB, free: 5.828 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.105e-06/0.1462, allocations: 3.938 kB / 491.1 MB, free: 5.824 MB / 366.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001984/0.1482, allocations: 1.114 MB / 492.2 MB, free: 4.676 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.074e-05/0.1482, allocations: 8 kB / 492.2 MB, free: 4.668 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001374/0.1496, allocations: 0.7911 MB / 493 MB, free: 3.848 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007316/0.1503, allocations: 226.6 kB / 493.2 MB, free: 3.617 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005209/0.1509, allocations: 151.8 kB / 493.3 MB, free: 3.469 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005304/0.1562, allocations: 5.671 MB / 499 MB, free: 13.37 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004873/0.1567, allocations: 35.97 kB / 499 MB, free: 13.33 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.818e-05/0.1567, allocations: 32 kB / 499.1 MB, free: 13.3 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.0003926/0.1571, allocations: 310.4 kB / 499.4 MB, free: 12.99 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001144/0.1573, allocations: 67.16 kB / 499.4 MB, free: 12.92 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009134/0.1582, allocations: 0.6085 MB / 0.4883 GB, free: 12.3 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-06/0.1582, allocations: 4 kB / 0.4883 GB, free: 12.3 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.814e-06/0.1582, allocations: 0 / 0.4883 GB, free: 12.3 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.1582, allocations: 7.984 kB / 0.4883 GB, free: 12.29 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002331/0.1606, allocations: 1.49 MB / 0.4898 GB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/0.1606, allocations: 0 / 0.4898 GB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006372/0.1612, allocations: 132 kB / 0.4899 GB, free: 10.6 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.1612, allocations: 0 / 0.4899 GB, free: 10.6 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.995e-05/0.1613, allocations: 19.94 kB / 0.4899 GB, free: 10.58 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.282e-06/0.1613, allocations: 4 kB / 0.4899 GB, free: 10.57 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.1613, allocations: 3.938 kB / 0.49 GB, free: 10.57 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001158/0.1625, allocations: 0.9244 MB / 0.4909 GB, free: 9.613 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002773/0.1628, allocations: 184.2 kB / 0.491 GB, free: 9.414 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.828e-05/0.1628, allocations: 19.98 kB / 0.491 GB, free: 9.395 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003288/0.1632, allocations: 23.98 kB / 0.4911 GB, free: 9.371 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.216e-05/0.1633, allocations: 40.33 kB / 0.4911 GB, free: 9.332 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.967e-05/0.1633, allocations: 12 kB / 0.4911 GB, free: 9.32 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004419/0.1637, allocations: 423 kB / 0.4915 GB, free: 8.91 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1637, allocations: 0 / 0.4915 GB, free: 8.91 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007238/0.1645, allocations: 232.2 kB / 0.4917 GB, free: 8.684 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.0002639/0.1647, allocations: 145.6 kB / 0.4919 GB, free: 8.539 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001546/0.1663, allocations: 1.045 MB / 0.4929 GB, free: 7.461 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.669e-06/0.1663, allocations: 4 kB / 0.4929 GB, free: 7.457 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003515/0.1667, allocations: 263.9 kB / 0.4932 GB, free: 7.199 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007423/0.1674, allocations: 154.2 kB / 0.4933 GB, free: 7.055 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002759/0.1702, allocations: 2.043 MB / 0.4953 GB, free: 4.965 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006378/0.1709, allocations: 1.079 MB / 0.4964 GB, free: 3.859 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004407/0.1713, allocations: 185.9 kB / 0.4965 GB, free: 3.676 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001637/0.1715, allocations: 63.42 kB / 0.4966 GB, free: 3.613 MB / 382.1 MB Notification: Performance of SimCode: time 3.9e-07/0.1715, allocations: 0 / 0.4966 GB, free: 3.613 MB / 382.1 MB Notification: Performance of Templates: time 0.01626/0.1878, allocations: 9.226 MB / 0.5056 GB, free: 10.45 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches