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.001039/0.001045, allocations: 88.22 kB / 16.65 MB, free: 6.535 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.001283/0.001283, allocations: 175.2 kB / 17.56 MB, free: 6.18 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.309/1.309, allocations: 223.3 MB / 241.6 MB, free: 196 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1728/0.1728, allocations: 38.09 MB / 330.8 MB, free: 8.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002993/0.0002993, allocations: 12 kB / 400.7 MB, free: 34.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1045, allocations: 59.17 MB / 459.9 MB, free: 7.098 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator): time 0.009123/0.1137, allocations: 8.287 MB / 468.2 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006014/0.1197, allocations: 3.327 MB / 471.5 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001001/0.1207, allocations: 47.69 kB / 471.5 MB, free: 11.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008374/0.1216, allocations: 182.8 kB / 471.7 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00184/0.1235, allocations: 0.6458 MB / 472.4 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009134/0.1244, allocations: 331.5 kB / 472.7 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002152/0.1266, allocations: 1.996 MB / 474.7 MB, free: 8.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00161/0.1282, allocations: 1.021 MB / 475.7 MB, free: 7.168 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000761/0.129, allocations: 446 kB / 476.1 MB, free: 6.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008612/0.1298, allocations: 0.615 MB / 476.8 MB, free: 6.113 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.171e-05/0.1299, allocations: 40 kB / 476.8 MB, free: 6.074 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008452/0.1308, allocations: 467.1 kB / 477.3 MB, free: 5.617 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003918/0.1312, allocations: 406.9 kB / 477.7 MB, free: 5.219 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004712/0.1317, allocations: 487.2 kB / 478.1 MB, free: 4.734 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00129/0.133, allocations: 1.355 MB / 479.5 MB, free: 3.375 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.133, allocations: 0 / 479.5 MB, free: 3.375 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.133, allocations: 0 / 479.5 MB, free: 3.375 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.231e-05/0.133, allocations: 0 / 479.5 MB, free: 3.375 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.001942/0.1349, allocations: 1.106 MB / 480.6 MB, free: 2.219 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.427e-05/0.135, allocations: 8.031 kB / 480.6 MB, free: 2.211 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001317/0.1363, allocations: 203.6 kB / 480.8 MB, free: 2.012 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001368/0.1377, allocations: 0.7175 MB / 481.5 MB, free: 1.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.194e-05/0.1378, allocations: 58.38 kB / 481.6 MB, free: 1.195 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002317/0.138, allocations: 99.81 kB / 481.7 MB, free: 1.098 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00157/0.1396, allocations: 1.107 MB / 482.8 MB, free: 15.94 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.89e-05/0.1396, allocations: 0 / 482.8 MB, free: 15.94 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.631e-05/0.1397, allocations: 32 kB / 482.8 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001622/0.1399, allocations: 69.97 kB / 482.9 MB, free: 15.84 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001341/0.1412, allocations: 0.8704 MB / 483.7 MB, free: 14.97 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004929/0.1462, allocations: 4.012 MB / 487.8 MB, free: 10.76 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006031/0.1468, allocations: 435.8 kB / 488.2 MB, free: 10.3 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003752/0.1472, allocations: 277.2 kB / 488.5 MB, free: 10.02 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.072e-05/0.1472, allocations: 12.42 kB / 488.5 MB, free: 10.01 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.355e-05/0.1473, allocations: 43 kB / 488.5 MB, free: 9.957 MB / 366.1 MB Notification: Performance of pre-optimization done (n=48): time 2.494e-06/0.1473, allocations: 0 / 488.5 MB, free: 9.957 MB / 366.1 MB Notification: Performance of matching and sorting (n=51): time 0.002897/0.1502, allocations: 1.721 MB / 490.2 MB, free: 8.18 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.984e-05/0.1503, allocations: 85.48 kB / 490.3 MB, free: 8.078 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006373/0.1509, allocations: 0.586 MB / 490.9 MB, free: 7.48 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.748e-05/0.1509, allocations: 37.64 kB / 490.9 MB, free: 7.438 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002851/0.1512, allocations: 466.5 kB / 491.4 MB, free: 6.973 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000142/0.1514, allocations: 185.5 kB / 491.6 MB, free: 6.789 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.001e-05/0.1515, allocations: 73.69 kB / 491.6 MB, free: 6.711 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001751/0.1517, allocations: 382.8 kB / 492 MB, free: 6.328 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003824/0.1521, allocations: 249.8 kB / 492.3 MB, free: 6.086 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005139/0.1526, allocations: 477 kB / 492.7 MB, free: 5.523 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001003/0.1536, allocations: 0.7702 MB / 493.5 MB, free: 4.656 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.1536, allocations: 0 / 493.5 MB, free: 4.656 MB / 366.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001942/0.1555, allocations: 1.118 MB / 494.6 MB, free: 3.504 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.143e-05/0.1556, allocations: 10.5 kB / 494.6 MB, free: 3.496 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001377/0.157, allocations: 0.7998 MB / 495.4 MB, free: 2.668 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007342/0.1577, allocations: 218.3 kB / 495.6 MB, free: 2.445 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005472/0.1583, allocations: 155.8 kB / 495.8 MB, free: 2.293 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00518/0.1635, allocations: 5.257 MB / 0.4893 GB, free: 12.62 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006282/0.1641, allocations: 31.98 kB / 0.4893 GB, free: 12.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.521e-05/0.1642, allocations: 35.98 kB / 0.4894 GB, free: 12.55 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.0004512/0.1646, allocations: 306.4 kB / 0.4897 GB, free: 12.25 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001037/0.1647, allocations: 67.16 kB / 0.4897 GB, free: 12.18 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00097/0.1657, allocations: 0.6085 MB / 0.4903 GB, free: 11.56 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/0.1657, allocations: 7.938 kB / 0.4903 GB, free: 11.55 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.004e-06/0.1657, allocations: 0 / 0.4903 GB, free: 11.55 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.085e-05/0.1658, allocations: 15.92 kB / 0.4903 GB, free: 11.54 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002282/0.168, allocations: 1.482 MB / 0.4918 GB, free: 9.988 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.788e-06/0.1681, allocations: 0 / 0.4918 GB, free: 9.988 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006275/0.1687, allocations: 127.8 kB / 0.4919 GB, free: 9.863 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.274e-06/0.1687, allocations: 4 kB / 0.4919 GB, free: 9.859 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.197e-05/0.1688, allocations: 19.98 kB / 0.4919 GB, free: 9.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.691e-06/0.1688, allocations: 4 kB / 0.4919 GB, free: 9.836 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.1688, allocations: 4 kB / 0.4919 GB, free: 9.832 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001188/0.17, allocations: 0.9272 MB / 0.4928 GB, free: 8.871 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002298/0.1702, allocations: 180.2 kB / 0.493 GB, free: 8.676 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.631e-05/0.1703, allocations: 19.98 kB / 0.493 GB, free: 8.656 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003328/0.1707, allocations: 23.98 kB / 0.4931 GB, free: 8.633 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.362e-05/0.1707, allocations: 32.39 kB / 0.4931 GB, free: 8.602 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.96e-05/0.1708, allocations: 19.94 kB / 0.4931 GB, free: 8.582 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000459/0.1712, allocations: 427 kB / 0.4935 GB, free: 8.168 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1712, allocations: 0 / 0.4935 GB, free: 8.168 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007922/0.172, allocations: 232 kB / 0.4937 GB, free: 7.941 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.00026/0.1723, allocations: 146.4 kB / 0.4939 GB, free: 7.793 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001545/0.1739, allocations: 1.033 MB / 0.4949 GB, free: 6.719 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.1739, allocations: 0 / 0.4949 GB, free: 6.719 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003482/0.1742, allocations: 263.6 kB / 0.4951 GB, free: 6.465 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009303/0.1752, allocations: 150.3 kB / 0.4953 GB, free: 6.324 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003348/0.1785, allocations: 2.549 MB / 0.4978 GB, free: 3.734 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006848/0.1792, allocations: 1.079 MB / 0.4988 GB, free: 2.625 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005833/0.1798, allocations: 193.9 kB / 0.499 GB, free: 2.434 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001625/0.18, allocations: 55.38 kB / 0.4991 GB, free: 2.379 MB / 382.1 MB Notification: Performance of SimCode: time 6.41e-07/0.18, allocations: 0 / 0.4991 GB, free: 2.379 MB / 382.1 MB Notification: Performance of Templates: time 0.2026/0.3826, allocations: 8.719 MB / 0.5076 GB, free: 53.41 MB / 382.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