Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.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.TurbineGeneratorLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|busbar.alpha_v|busbar1.alpha_v|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.TurbineGeneratorLine") translateModel(PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|busbar.alpha_v|busbar1.alpha_v|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.TurbineGeneratorLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001571/0.001571, allocations: 112.9 kB / 17.69 MB, free: 5.309 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.001877/0.001877, allocations: 192 kB / 18.63 MB, free: 4.375 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.367/1.367, allocations: 222.9 MB / 242.3 MB, free: 15.29 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1786/0.1786, allocations: 38.04 MB / 330.5 MB, free: 8.828 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001283/0.001283, allocations: 69.64 kB / 400.3 MB, free: 33.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1125, allocations: 58.06 MB / 458.3 MB, free: 7.383 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine): time 0.009806/0.1224, allocations: 9.548 MB / 467.9 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005294/0.1277, allocations: 3.564 MB / 471.4 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005813/0.1283, allocations: 35.81 kB / 471.5 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002593/0.131, allocations: 1.097 MB / 472.6 MB, free: 9.082 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002034/0.133, allocations: 0.8865 MB / 473.5 MB, free: 8.191 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00113/0.1341, allocations: 486.9 kB / 473.9 MB, free: 7.715 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002126/0.1363, allocations: 1.804 MB / 475.7 MB, free: 5.906 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001129/0.1374, allocations: 0.9661 MB / 476.7 MB, free: 4.918 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001048/0.1385, allocations: 0.7627 MB / 477.5 MB, free: 4.152 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001105/0.1396, allocations: 0.8994 MB / 478.4 MB, free: 3.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001419/0.1398, allocations: 108 kB / 478.5 MB, free: 3.145 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009808/0.1408, allocations: 0.5304 MB / 479 MB, free: 2.613 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005569/0.1413, allocations: 0.6391 MB / 479.6 MB, free: 1.973 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006872/0.142, allocations: 0.7037 MB / 480.3 MB, free: 1.266 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001754/0.1438, allocations: 1.904 MB / 482.2 MB, free: 15.36 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.1438, allocations: 4 kB / 482.2 MB, free: 15.35 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.1438, allocations: 3.938 kB / 482.2 MB, free: 15.35 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.664e-05/0.1438, allocations: 0 / 482.2 MB, free: 15.35 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 298 * Number of variables: 298 Notification: Performance of Generate backend data structure: time 0.002762/0.1466, allocations: 1.625 MB / 483.9 MB, free: 13.67 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.167e-05/0.1466, allocations: 11.89 kB / 483.9 MB, free: 13.66 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001559/0.1482, allocations: 275 kB / 484.2 MB, free: 13.39 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001904/0.1501, allocations: 0.9412 MB / 485.1 MB, free: 12.4 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.193e-05/0.1502, allocations: 82.09 kB / 485.2 MB, free: 12.32 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003092/0.1505, allocations: 143.8 kB / 485.3 MB, free: 12.18 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002021/0.1526, allocations: 1.493 MB / 486.8 MB, free: 10.62 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.425e-05/0.1526, allocations: 4 kB / 486.8 MB, free: 10.61 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.827e-05/0.1527, allocations: 47.94 kB / 486.9 MB, free: 10.57 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002856/0.153, allocations: 98.16 kB / 487 MB, free: 10.47 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001839/0.1548, allocations: 1.254 MB / 488.2 MB, free: 9.207 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007413/0.1623, allocations: 5.633 MB / 493.8 MB, free: 3.227 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001243/0.1636, allocations: 0.5904 MB / 494.4 MB, free: 2.617 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007872/0.1644, allocations: 407.2 kB / 494.8 MB, free: 2.215 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.448e-05/0.1644, allocations: 8.562 kB / 494.8 MB, free: 2.207 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.145e-05/0.1645, allocations: 39.12 kB / 494.9 MB, free: 2.156 MB / 366.1 MB Notification: Performance of pre-optimization done (n=67): time 5.53e-06/0.1645, allocations: 4 kB / 494.9 MB, free: 2.152 MB / 366.1 MB Notification: Performance of matching and sorting (n=74): time 0.01043/0.1749, allocations: 3.646 MB / 498.5 MB, free: 14.35 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.524e-05/0.175, allocations: 89.7 kB / 498.6 MB, free: 14.24 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001345/0.1764, allocations: 0.7313 MB / 499.3 MB, free: 13.5 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.471e-05/0.1765, allocations: 37.73 kB / 499.4 MB, free: 13.46 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005674/0.1771, allocations: 0.5919 MB / 500 MB, free: 12.86 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003285/0.1774, allocations: 268.1 kB / 0.4885 GB, free: 12.59 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004055/0.1778, allocations: 178.6 kB / 0.4887 GB, free: 12.41 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002393/0.1781, allocations: 402.7 kB / 0.4891 GB, free: 12.01 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008889/0.179, allocations: 393.8 kB / 0.4894 GB, free: 11.62 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001159/0.1802, allocations: 0.6613 MB / 0.4901 GB, free: 10.84 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002123/0.1823, allocations: 1.144 MB / 0.4912 GB, free: 9.586 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.013e-05/0.1824, allocations: 4 kB / 0.4912 GB, free: 9.582 MB / 382.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.004631/0.187, allocations: 1.713 MB / 0.4929 GB, free: 7.844 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.708e-05/0.187, allocations: 8 kB / 0.4929 GB, free: 7.836 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003702/0.1908, allocations: 1.306 MB / 0.4942 GB, free: 6.52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002658/0.1934, allocations: 0.5798 MB / 0.4947 GB, free: 5.93 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007881/0.1942, allocations: 171.7 kB / 0.4949 GB, free: 5.762 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01638/0.2106, allocations: 10.35 MB / 0.505 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00107/0.2117, allocations: 51.88 kB / 0.5051 GB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001075/0.2118, allocations: 44 kB / 0.5051 GB, free: 10.73 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * 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 (93): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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,4,100.0%), (2,8,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,16)} Notification: Performance of prepare postOptimizeDAE: time 0.0007575/0.2126, allocations: 381.4 kB / 0.5055 GB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002177/0.2128, allocations: 102.8 kB / 0.5056 GB, free: 10.24 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003361/0.2162, allocations: 1.244 MB / 0.5068 GB, free: 8.973 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.794e-05/0.2162, allocations: 12.08 kB / 0.5068 GB, free: 8.961 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.077e-06/0.2163, allocations: 4 kB / 0.5068 GB, free: 8.957 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.176e-05/0.2163, allocations: 3.984 kB / 0.5068 GB, free: 8.953 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006288/0.2226, allocations: 2.401 MB / 0.5091 GB, free: 6.453 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.968e-06/0.2226, allocations: 4 kB / 0.5091 GB, free: 6.449 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007286/0.2233, allocations: 99.88 kB / 0.5092 GB, free: 6.352 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001553/0.2249, allocations: 376 kB / 0.5096 GB, free: 5.969 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.966e-05/0.225, allocations: 27.97 kB / 0.5096 GB, free: 5.941 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2138/0.4388, allocations: 9.286 MB / 0.5187 GB, free: 66.7 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.284e-06/0.4389, allocations: 2.062 kB / 0.5187 GB, free: 66.7 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003408/0.4423, allocations: 1.68 MB / 0.5203 GB, free: 66.26 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006651/0.443, allocations: 227.4 kB / 0.5206 GB, free: 66.14 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002638/0.4433, allocations: 28.78 kB / 0.5206 GB, free: 66.13 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006546/0.4439, allocations: 29.38 kB / 0.5206 GB, free: 66.12 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000186/0.4441, allocations: 68.86 kB / 0.5207 GB, free: 66.11 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.16e-05/0.4442, allocations: 24.47 kB / 0.5207 GB, free: 66.11 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0009083/0.4451, allocations: 0.5044 MB / 0.5212 GB, free: 65.9 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.4451, allocations: 0.9062 kB / 0.5212 GB, free: 65.9 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001778/0.4469, allocations: 362.3 kB / 0.5215 GB, free: 65.87 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (57): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(2,10,100.0%), (1,3,100.0%), (1,3,100.0%), (1,1,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003469/0.4473, allocations: 151 kB / 0.5217 GB, free: 65.77 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002552/0.4498, allocations: 1.588 MB / 0.5232 GB, free: 64.97 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.4499, allocations: 3.031 kB / 0.5232 GB, free: 64.97 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001586/0.4514, allocations: 1.091 MB / 0.5243 GB, free: 64.23 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001084/0.4525, allocations: 203.1 kB / 0.5245 GB, free: 64.17 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004301/0.4569, allocations: 2.703 MB / 0.5271 GB, free: 62.94 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001065/0.4579, allocations: 1.257 MB / 0.5284 GB, free: 62.16 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006084/0.4586, allocations: 220.8 kB / 0.5286 GB, free: 62.13 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00017/0.4587, allocations: 69.17 kB / 0.5286 GB, free: 62.12 MB / 398.1 MB Notification: Performance of SimCode: time 7.91e-07/0.4587, allocations: 0 / 0.5286 GB, free: 62.12 MB / 398.1 MB Notification: Performance of Templates: time 0.02262/0.4814, allocations: 15.33 MB / 0.5436 GB, free: 56.36 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches