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.001731/0.001731, allocations: 107.6 kB / 17.06 MB, free: 5.949 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.002111/0.002111, allocations: 196 kB / 18 MB, free: 5.039 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.355/1.355, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.174/0.174, allocations: 38.04 MB / 329.9 MB, free: 8.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00118/0.00118, allocations: 63.91 kB / 458.2 MB, free: 6.855 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3701/0.3713, allocations: 58.05 MB / 0.5041 GB, free: 7.676 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator): time 0.008335/0.3797, allocations: 7.523 MB / 0.5115 GB, free: 2.434 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005567/0.3853, allocations: 2.97 MB / 0.5144 GB, free: 352 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007974/0.3861, allocations: 29.88 kB / 0.5144 GB, free: 340 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00203/0.3882, allocations: 0.7375 MB / 0.5151 GB, free: 15.88 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002233/0.3904, allocations: 0.689 MB / 0.5158 GB, free: 15.51 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001106/0.3915, allocations: 377 kB / 0.5161 GB, free: 15.33 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002045/0.3936, allocations: 1.352 MB / 0.5175 GB, free: 14.75 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001145/0.3947, allocations: 0.715 MB / 0.5182 GB, free: 14.44 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001185/0.3959, allocations: 0.5668 MB / 0.5187 GB, free: 14.19 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001068/0.397, allocations: 0.6238 MB / 0.5193 GB, free: 13.94 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000138/0.3972, allocations: 74.41 kB / 0.5194 GB, free: 13.94 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001139/0.3983, allocations: 486.7 kB / 0.5199 GB, free: 13.8 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005997/0.3989, allocations: 450.9 kB / 0.5203 GB, free: 13.64 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000586/0.3995, allocations: 0.5034 MB / 0.5208 GB, free: 13.35 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002134/0.4017, allocations: 1.427 MB / 0.5222 GB, free: 12.86 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.4017, allocations: 0 / 0.5222 GB, free: 12.86 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.246e-06/0.4017, allocations: 1.281 kB / 0.5222 GB, free: 12.86 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.617e-05/0.4017, allocations: 0 / 0.5222 GB, free: 12.86 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.00271/0.4044, allocations: 1.277 MB / 0.5234 GB, free: 12 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.494e-05/0.4045, allocations: 13.48 kB / 0.5234 GB, free: 12 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001306/0.4058, allocations: 217.9 kB / 0.5236 GB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001785/0.4076, allocations: 0.7333 MB / 0.5244 GB, free: 11.51 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.316e-05/0.4077, allocations: 62.91 kB / 0.5244 GB, free: 11.48 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002464/0.4079, allocations: 96.98 kB / 0.5245 GB, free: 11.45 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002103/0.4101, allocations: 1.096 MB / 0.5256 GB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.492e-05/0.4101, allocations: 10.69 kB / 0.5256 GB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.248e-05/0.4102, allocations: 27.81 kB / 0.5256 GB, free: 10.94 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001892/0.4104, allocations: 73.23 kB / 0.5257 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001538/0.4119, allocations: 0.8793 MB / 0.5265 GB, free: 10.64 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005924/0.4179, allocations: 3.971 MB / 0.5304 GB, free: 7.848 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006152/0.4185, allocations: 433.8 kB / 0.5308 GB, free: 7.562 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000388/0.4189, allocations: 277.4 kB / 0.5311 GB, free: 7.422 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.581e-05/0.419, allocations: 5.125 kB / 0.5311 GB, free: 7.422 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.092e-05/0.419, allocations: 45.34 kB / 0.5311 GB, free: 7.371 MB / 398.1 MB Notification: Performance of pre-optimization done (n=48): time 2.345e-06/0.419, allocations: 5.312 kB / 0.5312 GB, free: 7.367 MB / 398.1 MB Notification: Performance of matching and sorting (n=51): time 0.003274/0.4223, allocations: 1.714 MB / 0.5328 GB, free: 6.309 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.784e-05/0.4224, allocations: 87.55 kB / 0.5329 GB, free: 6.211 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007553/0.4231, allocations: 0.5865 MB / 0.5335 GB, free: 5.863 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.448e-05/0.4232, allocations: 35.14 kB / 0.5335 GB, free: 5.824 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000333/0.4235, allocations: 470.8 kB / 0.534 GB, free: 5.41 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001631/0.4237, allocations: 189 kB / 0.5341 GB, free: 5.246 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002211/0.4239, allocations: 133.8 kB / 0.5343 GB, free: 5.168 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001659/0.4241, allocations: 388.9 kB / 0.5346 GB, free: 4.797 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003898/0.4245, allocations: 247.8 kB / 0.5349 GB, free: 4.68 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000516/0.425, allocations: 473 kB / 0.5353 GB, free: 4.277 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001092/0.4261, allocations: 0.7797 MB / 0.5361 GB, free: 3.707 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.431e-06/0.4261, allocations: 1.344 kB / 0.5361 GB, free: 3.707 MB / 398.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.002524/0.4287, allocations: 1.117 MB / 0.5372 GB, free: 3.055 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.158e-05/0.4287, allocations: 8.094 kB / 0.5372 GB, free: 3.055 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001629/0.4304, allocations: 0.7999 MB / 0.538 GB, free: 2.59 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007963/0.4312, allocations: 219.3 kB / 0.5382 GB, free: 2.477 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005446/0.4317, allocations: 161.2 kB / 0.5383 GB, free: 2.434 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005804/0.4375, allocations: 5.663 MB / 0.5439 GB, free: 13.29 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008044/0.4384, allocations: 41.84 kB / 0.5439 GB, free: 13.27 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.632e-05/0.4384, allocations: 32.73 kB / 0.5439 GB, free: 13.26 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.0005372/0.439, allocations: 310.5 kB / 0.5442 GB, free: 13.03 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001207/0.4391, allocations: 66.78 kB / 0.5443 GB, free: 12.99 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009844/0.4401, allocations: 0.6057 MB / 0.5449 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.492e-06/0.4401, allocations: 6.188 kB / 0.5449 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.685e-06/0.4401, allocations: 0.9688 kB / 0.5449 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.969e-06/0.4401, allocations: 5.297 kB / 0.5449 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002531/0.4427, allocations: 1.493 MB / 0.5464 GB, free: 11.65 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.336e-06/0.4427, allocations: 1.188 kB / 0.5464 GB, free: 11.65 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006246/0.4433, allocations: 126.6 kB / 0.5465 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.981e-06/0.4434, allocations: 2.969 kB / 0.5465 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.065e-05/0.4434, allocations: 22.98 kB / 0.5465 GB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.24e-06/0.4434, allocations: 3.938 kB / 0.5465 GB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.989e-06/0.4434, allocations: 9 kB / 0.5465 GB, free: 11.6 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001195/0.4446, allocations: 0.9215 MB / 0.5474 GB, free: 10.98 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003101/0.4449, allocations: 188.2 kB / 0.5476 GB, free: 10.78 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.667e-05/0.445, allocations: 15.98 kB / 0.5476 GB, free: 10.76 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003231/0.4454, allocations: 15.98 kB / 0.5476 GB, free: 10.75 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.982e-05/0.4454, allocations: 40.33 kB / 0.5477 GB, free: 10.71 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.882e-05/0.4455, allocations: 12 kB / 0.5477 GB, free: 10.7 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004803/0.446, allocations: 419.2 kB / 0.5481 GB, free: 10.29 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.446, allocations: 0 / 0.5481 GB, free: 10.29 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009774/0.447, allocations: 239.9 kB / 0.5483 GB, free: 10.06 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.0002787/0.4472, allocations: 146.8 kB / 0.5484 GB, free: 9.91 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001624/0.4489, allocations: 1.042 MB / 0.5495 GB, free: 8.832 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.519e-06/0.4489, allocations: 0 / 0.5495 GB, free: 8.832 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000357/0.4493, allocations: 266.6 kB / 0.5497 GB, free: 8.574 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007948/0.4501, allocations: 147.7 kB / 0.5499 GB, free: 8.434 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003091/0.4532, allocations: 2.038 MB / 0.5518 GB, free: 6.348 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000712/0.4539, allocations: 1.082 MB / 0.5529 GB, free: 5.234 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005011/0.4544, allocations: 193.9 kB / 0.5531 GB, free: 5.043 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001634/0.4546, allocations: 59.42 kB / 0.5531 GB, free: 4.984 MB / 414.1 MB Notification: Performance of SimCode: time 2.21e-07/0.4546, allocations: 0 / 0.5531 GB, free: 4.984 MB / 414.1 MB Notification: Performance of Templates: time 0.01848/0.4731, allocations: 9.418 MB / 0.5623 GB, free: 11.63 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/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