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.001145/0.001145, allocations: 114.4 kB / 17.74 MB, free: 5.359 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.001181/0.001181, allocations: 180.5 kB / 18.66 MB, free: 4.445 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.334/1.334, allocations: 222.9 MB / 242.4 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.1734/0.1734, allocations: 38.04 MB / 330.6 MB, free: 8.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001269/0.00127, allocations: 67.89 kB / 458.8 MB, free: 6.844 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3403/0.3416, allocations: 58.04 MB / 0.5048 GB, free: 8.012 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator): time 0.008406/0.35, allocations: 7.525 MB / 0.5121 GB, free: 2.758 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004854/0.3549, allocations: 2.973 MB / 0.515 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006635/0.3556, allocations: 25.03 kB / 0.515 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001946/0.3576, allocations: 0.7349 MB / 0.5158 GB, free: 220 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002087/0.3597, allocations: 0.6926 MB / 0.5164 GB, free: 15.84 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001165/0.3609, allocations: 378.1 kB / 0.5168 GB, free: 15.66 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002412/0.3633, allocations: 1.35 MB / 0.5181 GB, free: 15.07 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00125/0.3645, allocations: 0.7202 MB / 0.5188 GB, free: 14.75 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001279/0.3658, allocations: 0.5631 MB / 0.5194 GB, free: 14.5 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001115/0.367, allocations: 0.6222 MB / 0.52 GB, free: 14.26 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001444/0.3671, allocations: 75.34 kB / 0.52 GB, free: 14.26 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00113/0.3683, allocations: 487.5 kB / 0.5205 GB, free: 14.12 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005243/0.3688, allocations: 447.3 kB / 0.5209 GB, free: 13.96 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006336/0.3694, allocations: 0.5044 MB / 0.5214 GB, free: 13.67 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002112/0.3715, allocations: 1.429 MB / 0.5228 GB, free: 13.17 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.3716, allocations: 0 / 0.5228 GB, free: 13.17 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.726e-06/0.3716, allocations: 1.188 kB / 0.5228 GB, free: 13.17 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.289e-05/0.3716, allocations: 0 / 0.5228 GB, free: 13.17 MB / 398.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.002788/0.3744, allocations: 1.271 MB / 0.5241 GB, free: 12.32 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.399e-05/0.3745, allocations: 12.11 kB / 0.5241 GB, free: 12.32 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001308/0.3758, allocations: 204.5 kB / 0.5243 GB, free: 12.27 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001578/0.3774, allocations: 0.7517 MB / 0.525 GB, free: 11.83 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.526e-05/0.3774, allocations: 59.09 kB / 0.5251 GB, free: 11.8 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002516/0.3777, allocations: 99.41 kB / 0.5252 GB, free: 11.77 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001917/0.3796, allocations: 1.101 MB / 0.5262 GB, free: 11.28 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.208e-05/0.3797, allocations: 6.297 kB / 0.5262 GB, free: 11.27 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.601e-05/0.3798, allocations: 36.61 kB / 0.5263 GB, free: 11.25 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001829/0.38, allocations: 72.52 kB / 0.5263 GB, free: 11.23 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001507/0.3815, allocations: 0.8715 MB / 0.5272 GB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005743/0.3872, allocations: 3.969 MB / 0.5311 GB, free: 8.113 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006475/0.3879, allocations: 435.5 kB / 0.5315 GB, free: 7.824 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003845/0.3883, allocations: 278.7 kB / 0.5318 GB, free: 7.684 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.928e-05/0.3883, allocations: 8.766 kB / 0.5318 GB, free: 7.68 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.774e-05/0.3884, allocations: 46.22 kB / 0.5318 GB, free: 7.629 MB / 398.1 MB Notification: Performance of pre-optimization done (n=48): time 2.154e-06/0.3884, allocations: 0 / 0.5318 GB, free: 7.629 MB / 398.1 MB Notification: Performance of matching and sorting (n=51): time 0.003231/0.3916, allocations: 1.715 MB / 0.5335 GB, free: 6.57 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.412e-05/0.3917, allocations: 83.17 kB / 0.5336 GB, free: 6.477 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000741/0.3925, allocations: 0.5893 MB / 0.5341 GB, free: 6.125 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.354e-05/0.3925, allocations: 40.45 kB / 0.5342 GB, free: 6.082 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003389/0.3929, allocations: 469.5 kB / 0.5346 GB, free: 5.668 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001681/0.393, allocations: 185.3 kB / 0.5348 GB, free: 5.508 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002221/0.3933, allocations: 137.8 kB / 0.5349 GB, free: 5.426 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002079/0.3935, allocations: 389.4 kB / 0.5353 GB, free: 5.055 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003888/0.3939, allocations: 248.2 kB / 0.5355 GB, free: 4.938 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005761/0.3945, allocations: 471.9 kB / 0.536 GB, free: 4.535 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001039/0.3955, allocations: 0.7753 MB / 0.5367 GB, free: 3.969 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/0.3955, allocations: 6.094 kB / 0.5368 GB, free: 3.965 MB / 398.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.002125/0.3977, allocations: 1.117 MB / 0.5378 GB, free: 3.312 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.166e-05/0.3977, allocations: 7.562 kB / 0.5379 GB, free: 3.312 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001414/0.3991, allocations: 0.7941 MB / 0.5386 GB, free: 2.852 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007081/0.3998, allocations: 220.2 kB / 0.5388 GB, free: 2.738 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005265/0.4004, allocations: 155 kB / 0.539 GB, free: 2.703 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006176/0.4066, allocations: 5.667 MB / 0.5445 GB, free: 13.56 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008758/0.4075, allocations: 41.28 kB / 0.5446 GB, free: 13.54 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.448e-05/0.4076, allocations: 33.39 kB / 0.5446 GB, free: 13.53 MB / 414.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.0006997/0.4083, allocations: 305.2 kB / 0.5449 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001425/0.4084, allocations: 70.77 kB / 0.5449 GB, free: 13.26 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001081/0.4095, allocations: 0.6035 MB / 0.5455 GB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.4095, allocations: 9.188 kB / 0.5455 GB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.594e-06/0.4095, allocations: 1.656 kB / 0.5455 GB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.744e-06/0.4095, allocations: 3.984 kB / 0.5456 GB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002495/0.412, allocations: 1.486 MB / 0.547 GB, free: 11.92 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.949e-06/0.4121, allocations: 2.25 kB / 0.547 GB, free: 11.92 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006126/0.4127, allocations: 122 kB / 0.5471 GB, free: 11.9 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.153e-06/0.4127, allocations: 3.969 kB / 0.5471 GB, free: 11.9 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.613e-05/0.4127, allocations: 17.86 kB / 0.5471 GB, free: 11.89 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.416e-06/0.4128, allocations: 8.312 kB / 0.5472 GB, free: 11.88 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/0.4128, allocations: 5.656 kB / 0.5472 GB, free: 11.88 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001278/0.4141, allocations: 0.9309 MB / 0.5481 GB, free: 11.12 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002859/0.4143, allocations: 188.4 kB / 0.5482 GB, free: 10.92 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001114/0.4145, allocations: 19.98 kB / 0.5483 GB, free: 10.9 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003345/0.4148, allocations: 15.98 kB / 0.5483 GB, free: 10.88 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.673e-05/0.4149, allocations: 36.28 kB / 0.5483 GB, free: 10.85 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.408e-05/0.4149, allocations: 19.98 kB / 0.5483 GB, free: 10.83 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005084/0.4154, allocations: 419 kB / 0.5487 GB, free: 10.43 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4154, allocations: 0 / 0.5487 GB, free: 10.43 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009944/0.4164, allocations: 232 kB / 0.549 GB, free: 10.2 MB / 414.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.000299/0.4168, allocations: 145.6 kB / 0.5491 GB, free: 10.05 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001703/0.4185, allocations: 1.054 MB / 0.5501 GB, free: 8.961 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.4185, allocations: 0 / 0.5501 GB, free: 8.961 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003619/0.4189, allocations: 262.7 kB / 0.5504 GB, free: 8.707 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008489/0.4197, allocations: 163 kB / 0.5505 GB, free: 8.555 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003222/0.4229, allocations: 2.111 MB / 0.5526 GB, free: 6.391 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006604/0.4236, allocations: 1.082 MB / 0.5536 GB, free: 5.277 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002146/0.4238, allocations: 55.44 kB / 0.5537 GB, free: 5.223 MB / 414.1 MB Notification: Performance of SimCode: time 6.91e-07/0.4239, allocations: 0 / 0.5537 GB, free: 5.223 MB / 414.1 MB Notification: Performance of Templates: time 0.01943/0.4433, allocations: 15.32 MB / 0.5687 GB, free: 5.914 MB / 430.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/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