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.001507/0.001507, allocations: 109.6 kB / 16.92 MB, free: 6.332 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.001549/0.001549, allocations: 191.4 kB / 17.85 MB, free: 5.414 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 / 241.5 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.1751/0.1751, allocations: 38.04 MB / 329.7 MB, free: 8.859 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001332/0.001332, allocations: 68.25 kB / 398.8 MB, free: 34.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1098, allocations: 58.05 MB / 456.9 MB, free: 8.086 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine): time 0.01322/0.123, allocations: 9.548 MB / 466.4 MB, free: 14.49 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006776/0.1298, allocations: 3.568 MB / 470 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001011/0.1309, allocations: 35.81 kB / 470 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002961/0.1339, allocations: 1.096 MB / 471.1 MB, free: 9.781 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002215/0.1361, allocations: 0.8942 MB / 472 MB, free: 8.883 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001249/0.1374, allocations: 475 kB / 472.5 MB, free: 8.418 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00238/0.1398, allocations: 1.808 MB / 474.3 MB, free: 6.605 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001429/0.1412, allocations: 0.9739 MB / 475.3 MB, free: 5.609 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00131/0.1425, allocations: 0.7588 MB / 476 MB, free: 4.848 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001587/0.1441, allocations: 0.9072 MB / 476.9 MB, free: 3.938 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003539/0.1445, allocations: 104 kB / 477 MB, free: 3.836 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001185/0.1457, allocations: 0.5303 MB / 477.5 MB, free: 3.305 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009073/0.1466, allocations: 0.6391 MB / 478.2 MB, free: 2.664 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001332/0.1479, allocations: 0.7036 MB / 478.9 MB, free: 1.957 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00205/0.15, allocations: 1.881 MB / 480.8 MB, free: 72 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.15, allocations: 0 / 480.8 MB, free: 72 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.15, allocations: 0 / 480.8 MB, free: 72 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.644e-05/0.1501, allocations: 0 / 480.8 MB, free: 72 kB / 350.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.002751/0.1528, allocations: 1.621 MB / 482.4 MB, free: 14.39 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.038e-05/0.1529, allocations: 15.89 kB / 482.4 MB, free: 14.38 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001642/0.1545, allocations: 271 kB / 482.7 MB, free: 14.11 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001812/0.1563, allocations: 0.9022 MB / 483.6 MB, free: 13.17 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.71e-05/0.1564, allocations: 82.09 kB / 483.7 MB, free: 13.09 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000308/0.1567, allocations: 143.8 kB / 483.8 MB, free: 12.95 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002547/0.1593, allocations: 1.489 MB / 485.3 MB, free: 11.39 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.274e-05/0.1593, allocations: 0 / 485.3 MB, free: 11.39 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001009/0.1594, allocations: 48 kB / 485.3 MB, free: 11.34 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002945/0.1597, allocations: 98.16 kB / 485.4 MB, free: 11.24 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001837/0.1616, allocations: 1.254 MB / 486.7 MB, free: 9.98 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008147/0.1697, allocations: 5.676 MB / 492.4 MB, free: 3.957 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009206/0.1707, allocations: 0.5931 MB / 493 MB, free: 3.348 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005483/0.1713, allocations: 403.3 kB / 493.3 MB, free: 2.949 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.964e-05/0.1713, allocations: 8.562 kB / 493.4 MB, free: 2.941 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.157e-05/0.1714, allocations: 43.11 kB / 493.4 MB, free: 2.887 MB / 366.1 MB Notification: Performance of pre-optimization done (n=67): time 2.945e-06/0.1714, allocations: 0 / 493.4 MB, free: 2.887 MB / 366.1 MB Notification: Performance of matching and sorting (n=74): time 0.007993/0.1794, allocations: 3.634 MB / 497 MB, free: 15.09 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.21e-05/0.1795, allocations: 97.67 kB / 497.1 MB, free: 14.98 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001107/0.1806, allocations: 0.7313 MB / 497.9 MB, free: 14.23 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.775e-05/0.1807, allocations: 37.7 kB / 497.9 MB, free: 14.19 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004718/0.1811, allocations: 0.588 MB / 498.5 MB, free: 13.59 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002665/0.1814, allocations: 276.1 kB / 498.8 MB, free: 13.32 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002761/0.1817, allocations: 178.6 kB / 498.9 MB, free: 13.14 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001727/0.1819, allocations: 398.7 kB / 499.3 MB, free: 12.74 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006025/0.1825, allocations: 393.7 kB / 499.7 MB, free: 12.36 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000792/0.1833, allocations: 0.6652 MB / 0.4886 GB, free: 11.57 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001572/0.1849, allocations: 1.144 MB / 0.4898 GB, free: 10.32 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.796e-06/0.1849, allocations: 4 kB / 0.4898 GB, free: 10.31 MB / 382.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003495/0.1884, allocations: 1.713 MB / 0.4914 GB, free: 8.574 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.236e-05/0.1884, allocations: 8 kB / 0.4914 GB, free: 8.566 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002694/0.1912, allocations: 1.315 MB / 0.4927 GB, free: 7.242 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001929/0.1931, allocations: 0.572 MB / 0.4933 GB, free: 6.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006209/0.1937, allocations: 175.7 kB / 0.4934 GB, free: 6.488 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01217/0.2059, allocations: 10.37 MB / 0.5036 GB, free: 11.54 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008688/0.2068, allocations: 51.88 kB / 0.5036 GB, free: 11.49 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001169/0.2069, allocations: 40 kB / 0.5037 GB, free: 11.45 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.0006466/0.2076, allocations: 389.5 kB / 0.504 GB, free: 11.06 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002011/0.2078, allocations: 90.86 kB / 0.5041 GB, free: 10.97 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002334/0.2102, allocations: 1.248 MB / 0.5053 GB, free: 9.695 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.376e-06/0.2102, allocations: 8 kB / 0.5053 GB, free: 9.688 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.185e-05/0.2102, allocations: 7.984 kB / 0.5053 GB, free: 9.68 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.625e-06/0.2102, allocations: 0 / 0.5053 GB, free: 9.68 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004246/0.2145, allocations: 2.4 MB / 0.5077 GB, free: 7.184 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.403e-06/0.2145, allocations: 4 kB / 0.5077 GB, free: 7.18 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004911/0.215, allocations: 108.1 kB / 0.5078 GB, free: 7.074 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001082/0.2161, allocations: 371.8 kB / 0.5082 GB, free: 6.695 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.775e-05/0.2162, allocations: 23.98 kB / 0.5082 GB, free: 6.672 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2198/0.4359, allocations: 9.292 MB / 0.5173 GB, free: 66.31 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.25e-06/0.436, allocations: 5.625 kB / 0.5173 GB, free: 66.31 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003109/0.4391, allocations: 1.681 MB / 0.5189 GB, free: 66.06 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004622/0.4396, allocations: 227.6 kB / 0.5191 GB, free: 65.97 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000207/0.4398, allocations: 28.23 kB / 0.5191 GB, free: 65.97 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005265/0.4403, allocations: 33.95 kB / 0.5192 GB, free: 65.97 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001664/0.4405, allocations: 62.95 kB / 0.5192 GB, free: 65.97 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.146e-05/0.4406, allocations: 23.12 kB / 0.5193 GB, free: 65.97 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007555/0.4413, allocations: 0.5058 MB / 0.5198 GB, free: 65.88 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.4413, allocations: 1.625 kB / 0.5198 GB, free: 65.88 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001463/0.4428, allocations: 363.9 kB / 0.5201 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.0003132/0.4431, allocations: 144.9 kB / 0.5202 GB, free: 65.77 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00275/0.4459, allocations: 1.779 MB / 0.522 GB, free: 64.96 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.199e-06/0.4459, allocations: 0 / 0.522 GB, free: 64.96 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001531/0.4474, allocations: 1.09 MB / 0.523 GB, free: 64.22 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001172/0.4486, allocations: 211.4 kB / 0.5232 GB, free: 64.16 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005118/0.4538, allocations: 2.726 MB / 0.5259 GB, free: 62.86 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001322/0.4551, allocations: 1.252 MB / 0.5271 GB, free: 62.09 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008913/0.456, allocations: 224.8 kB / 0.5273 GB, free: 62.05 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001879/0.4562, allocations: 68.03 kB / 0.5274 GB, free: 62.04 MB / 398.1 MB Notification: Performance of SimCode: time 8.21e-07/0.4562, allocations: 1.75 kB / 0.5274 GB, free: 62.04 MB / 398.1 MB Notification: Performance of Templates: time 0.02567/0.4819, allocations: 15.32 MB / 0.5424 GB, free: 56.61 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches