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.001586/0.001586, allocations: 109.4 kB / 16.62 MB, free: 6.812 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.001874/0.001874, allocations: 189.8 kB / 17.55 MB, free: 5.949 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.34/1.34, allocations: 222.9 MB / 241.2 MB, free: 13.74 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1708/0.1708, allocations: 38.05 MB / 329.4 MB, free: 8.824 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001243, allocations: 65.61 kB / 398.3 MB, free: 34.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1036, allocations: 58.06 MB / 456.4 MB, free: 8.426 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator): time 0.0099/0.1135, allocations: 8.756 MB / 465.1 MB, free: 15.62 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005833/0.1194, allocations: 3.342 MB / 468.5 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004919/0.1199, allocations: 51.69 kB / 468.5 MB, free: 12.22 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001776/0.1217, allocations: 0.6916 MB / 469.2 MB, free: 11.53 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001425/0.1232, allocations: 0.6302 MB / 469.8 MB, free: 10.9 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007635/0.1239, allocations: 331.4 kB / 470.1 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001366/0.1253, allocations: 1.36 MB / 471.5 MB, free: 9.207 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009123/0.1262, allocations: 0.7599 MB / 472.3 MB, free: 8.434 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006041/0.1269, allocations: 0.5525 MB / 472.8 MB, free: 7.879 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007816/0.1276, allocations: 0.6658 MB / 473.5 MB, free: 7.211 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001142/0.1278, allocations: 76 kB / 473.6 MB, free: 7.137 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007123/0.1285, allocations: 483.1 kB / 474 MB, free: 6.664 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003914/0.1289, allocations: 446.9 kB / 474.5 MB, free: 6.227 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004775/0.1294, allocations: 0.5209 MB / 475 MB, free: 5.703 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001291/0.1307, allocations: 1.394 MB / 476.4 MB, free: 4.305 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.1307, allocations: 0 / 476.4 MB, free: 4.305 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1307, allocations: 0 / 476.4 MB, free: 4.305 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.251e-05/0.1307, allocations: 0 / 476.4 MB, free: 4.305 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.002142/0.1329, allocations: 1.273 MB / 477.7 MB, free: 2.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/0.1329, allocations: 15.89 kB / 477.7 MB, free: 2.965 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001231/0.1342, allocations: 207.5 kB / 477.9 MB, free: 2.762 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00129/0.1355, allocations: 0.7058 MB / 478.6 MB, free: 2.016 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.262e-05/0.1355, allocations: 58.38 kB / 478.6 MB, free: 1.961 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002314/0.1358, allocations: 107.8 kB / 478.7 MB, free: 1.855 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001645/0.1374, allocations: 1.1 MB / 479.8 MB, free: 0.707 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.733e-05/0.1374, allocations: 4 kB / 479.8 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.888e-05/0.1375, allocations: 35.98 kB / 479.9 MB, free: 0.668 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001608/0.1377, allocations: 65.97 kB / 479.9 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001359/0.1391, allocations: 0.8743 MB / 480.8 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005001/0.1441, allocations: 4.001 MB / 484.8 MB, free: 11.53 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006401/0.1447, allocations: 439.8 kB / 485.2 MB, free: 11.07 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003939/0.1451, allocations: 276.6 kB / 485.5 MB, free: 10.79 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.416e-05/0.1452, allocations: 8.438 kB / 485.5 MB, free: 10.78 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.325e-05/0.1452, allocations: 38.94 kB / 485.6 MB, free: 10.73 MB / 366.1 MB Notification: Performance of pre-optimization done (n=48): time 2.294e-06/0.1452, allocations: 0 / 485.6 MB, free: 10.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=51): time 0.003015/0.1483, allocations: 1.721 MB / 487.3 MB, free: 8.953 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.078e-05/0.1483, allocations: 81.55 kB / 487.4 MB, free: 8.855 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006435/0.149, allocations: 0.59 MB / 488 MB, free: 8.254 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.502e-05/0.149, allocations: 37.7 kB / 488 MB, free: 8.211 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002985/0.1493, allocations: 466.4 kB / 488.4 MB, free: 7.746 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001476/0.1495, allocations: 193.3 kB / 488.6 MB, free: 7.555 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001917/0.1497, allocations: 138.6 kB / 488.8 MB, free: 7.41 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001634/0.1499, allocations: 382.8 kB / 489.1 MB, free: 7.027 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003777/0.1502, allocations: 249.8 kB / 489.4 MB, free: 6.785 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005066/0.1508, allocations: 477 kB / 489.9 MB, free: 6.227 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00101/0.1518, allocations: 0.7781 MB / 490.6 MB, free: 5.352 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.568e-06/0.1518, allocations: 0 / 490.6 MB, free: 5.352 MB / 366.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.002064/0.1539, allocations: 1.118 MB / 491.8 MB, free: 4.199 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.912e-05/0.1539, allocations: 8 kB / 491.8 MB, free: 4.191 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001355/0.1553, allocations: 0.7917 MB / 492.6 MB, free: 3.371 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000739/0.156, allocations: 230.5 kB / 492.8 MB, free: 3.137 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005347/0.1566, allocations: 151.8 kB / 492.9 MB, free: 2.988 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005414/0.162, allocations: 5.661 MB / 498.6 MB, free: 12.89 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005298/0.1625, allocations: 40.03 kB / 498.6 MB, free: 12.86 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.99e-05/0.1626, allocations: 35.98 kB / 498.7 MB, free: 12.82 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.0005032/0.1631, allocations: 302.3 kB / 499 MB, free: 12.52 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000125/0.1632, allocations: 71.14 kB / 499 MB, free: 12.45 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009927/0.1642, allocations: 0.6124 MB / 499.6 MB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.1642, allocations: 4 kB / 499.6 MB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.1642, allocations: 4 kB / 499.6 MB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.666e-06/0.1643, allocations: 0 / 499.6 MB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002456/0.1667, allocations: 1.49 MB / 0.4894 GB, free: 10.26 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.1668, allocations: 0 / 0.4894 GB, free: 10.26 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006156/0.1674, allocations: 127.9 kB / 0.4895 GB, free: 10.13 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.233e-06/0.1674, allocations: 4 kB / 0.4895 GB, free: 10.13 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.365e-05/0.1674, allocations: 19.92 kB / 0.4895 GB, free: 10.11 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.091e-06/0.1675, allocations: 4 kB / 0.4895 GB, free: 10.11 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.523e-06/0.1675, allocations: 12.09 kB / 0.4896 GB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001231/0.1687, allocations: 0.9271 MB / 0.4905 GB, free: 9.133 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002299/0.1689, allocations: 184.2 kB / 0.4906 GB, free: 8.934 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.424e-05/0.169, allocations: 19.91 kB / 0.4907 GB, free: 8.914 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003141/0.1694, allocations: 23.97 kB / 0.4907 GB, free: 8.891 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.669e-05/0.1694, allocations: 32.34 kB / 0.4907 GB, free: 8.859 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.216e-05/0.1695, allocations: 19.98 kB / 0.4907 GB, free: 8.84 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004841/0.17, allocations: 415 kB / 0.4911 GB, free: 8.438 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.17, allocations: 192 / 0.4911 GB, free: 8.438 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008478/0.1708, allocations: 240 kB / 0.4913 GB, free: 8.203 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.0003453/0.1712, allocations: 147.1 kB / 0.4915 GB, free: 8.051 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00193/0.1731, allocations: 1.163 MB / 0.4926 GB, free: 6.848 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.1731, allocations: 0 / 0.4926 GB, free: 6.848 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003614/0.1735, allocations: 266.6 kB / 0.4929 GB, free: 6.59 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007861/0.1743, allocations: 159.6 kB / 0.493 GB, free: 6.445 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003256/0.1776, allocations: 2.411 MB / 0.4954 GB, free: 3.992 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000681/0.1783, allocations: 1.075 MB / 0.4964 GB, free: 2.891 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005299/0.1788, allocations: 201.8 kB / 0.4966 GB, free: 2.691 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001551/0.179, allocations: 55.44 kB / 0.4967 GB, free: 2.637 MB / 382.1 MB Notification: Performance of SimCode: time 7.92e-07/0.179, allocations: 4 kB / 0.4967 GB, free: 2.633 MB / 382.1 MB Notification: Performance of Templates: time 0.01691/0.1959, allocations: 9.213 MB / 0.5057 GB, free: 9.48 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