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.001215/0.001215, allocations: 110.2 kB / 17.06 MB, free: 5.969 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.001228/0.001228, allocations: 194.8 kB / 18.01 MB, free: 5.055 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.414/1.414, allocations: 222.9 MB / 241.7 MB, free: 15.12 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1771/0.1771, allocations: 38.04 MB / 329.9 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001284/0.001284, allocations: 67.89 kB / 458.2 MB, free: 6.863 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3965/0.3978, allocations: 58.05 MB / 0.5041 GB, free: 7.766 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator): time 0.00808/0.4059, allocations: 7.517 MB / 0.5115 GB, free: 2.523 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004666/0.4106, allocations: 2.974 MB / 0.5144 GB, free: 440 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005469/0.4112, allocations: 24.56 kB / 0.5144 GB, free: 432 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001964/0.4131, allocations: 0.7405 MB / 0.5151 GB, free: 15.98 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002304/0.4154, allocations: 0.6888 MB / 0.5158 GB, free: 15.61 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001242/0.4167, allocations: 380.8 kB / 0.5161 GB, free: 15.42 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002262/0.419, allocations: 1.343 MB / 0.5175 GB, free: 14.84 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001196/0.4202, allocations: 0.7197 MB / 0.5182 GB, free: 14.53 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001172/0.4214, allocations: 0.5515 MB / 0.5187 GB, free: 14.28 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001138/0.4225, allocations: 0.6269 MB / 0.5193 GB, free: 14.03 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001556/0.4227, allocations: 73.75 kB / 0.5194 GB, free: 14.03 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001151/0.4238, allocations: 483.5 kB / 0.5198 GB, free: 13.89 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005196/0.4244, allocations: 451.5 kB / 0.5203 GB, free: 13.74 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006272/0.425, allocations: 0.5094 MB / 0.5208 GB, free: 13.44 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002148/0.4272, allocations: 1.423 MB / 0.5222 GB, free: 12.95 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.4272, allocations: 5.062 kB / 0.5222 GB, free: 12.94 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.4272, allocations: 0.6094 kB / 0.5222 GB, free: 12.94 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.719e-05/0.4272, allocations: 0 / 0.5222 GB, free: 12.94 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.002498/0.4297, allocations: 1.305 MB / 0.5234 GB, free: 12.06 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.128e-05/0.4298, allocations: 12.11 kB / 0.5235 GB, free: 12.05 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001201/0.431, allocations: 212.5 kB / 0.5237 GB, free: 11.99 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001412/0.4324, allocations: 0.7527 MB / 0.5244 GB, free: 11.55 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.495e-05/0.4325, allocations: 66.39 kB / 0.5245 GB, free: 11.52 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002322/0.4327, allocations: 92.69 kB / 0.5245 GB, free: 11.49 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001817/0.4345, allocations: 1.102 MB / 0.5256 GB, free: 11 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.272e-05/0.4346, allocations: 5.328 kB / 0.5256 GB, free: 11 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.814e-05/0.4347, allocations: 31.09 kB / 0.5257 GB, free: 10.98 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001803/0.4349, allocations: 74.22 kB / 0.5257 GB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001513/0.4364, allocations: 0.8679 MB / 0.5266 GB, free: 10.7 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005527/0.4419, allocations: 3.99 MB / 0.5305 GB, free: 7.887 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006946/0.4426, allocations: 436 kB / 0.5309 GB, free: 7.598 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004005/0.443, allocations: 274.3 kB / 0.5311 GB, free: 7.461 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.982e-05/0.4431, allocations: 9.781 kB / 0.5312 GB, free: 7.457 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.207e-05/0.4431, allocations: 41.03 kB / 0.5312 GB, free: 7.41 MB / 398.1 MB Notification: Performance of pre-optimization done (n=48): time 2.014e-06/0.4431, allocations: 6.812 kB / 0.5312 GB, free: 7.406 MB / 398.1 MB Notification: Performance of matching and sorting (n=51): time 0.003096/0.4462, allocations: 1.735 MB / 0.5329 GB, free: 6.328 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.946e-05/0.4463, allocations: 83.08 kB / 0.533 GB, free: 6.234 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007079/0.447, allocations: 0.5899 MB / 0.5335 GB, free: 5.883 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.747e-05/0.4471, allocations: 36.11 kB / 0.5336 GB, free: 5.844 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003182/0.4474, allocations: 483.2 kB / 0.534 GB, free: 5.418 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001613/0.4476, allocations: 198.7 kB / 0.5342 GB, free: 5.246 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001969/0.4478, allocations: 137.1 kB / 0.5344 GB, free: 5.164 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001859/0.448, allocations: 382.4 kB / 0.5347 GB, free: 4.801 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003776/0.4483, allocations: 251.5 kB / 0.535 GB, free: 4.68 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005513/0.4489, allocations: 476.3 kB / 0.5354 GB, free: 4.273 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001048/0.45, allocations: 0.7753 MB / 0.5362 GB, free: 3.707 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.498e-06/0.45, allocations: 1.875 kB / 0.5362 GB, free: 3.707 MB / 398.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001998/0.452, allocations: 1.116 MB / 0.5373 GB, free: 3.055 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.486e-05/0.452, allocations: 12.12 kB / 0.5373 GB, free: 3.051 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001474/0.4535, allocations: 0.7945 MB / 0.5381 GB, free: 2.59 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007421/0.4542, allocations: 224 kB / 0.5383 GB, free: 2.473 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005316/0.4548, allocations: 153 kB / 0.5384 GB, free: 2.438 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005815/0.4606, allocations: 5.675 MB / 0.544 GB, free: 13.29 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007105/0.4614, allocations: 42.44 kB / 0.544 GB, free: 13.26 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.759e-05/0.4614, allocations: 29.22 kB / 0.544 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.0008204/0.4623, allocations: 301.2 kB / 0.5443 GB, free: 13.03 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000172/0.4624, allocations: 75.09 kB / 0.5444 GB, free: 12.99 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001174/0.4636, allocations: 0.6068 MB / 0.545 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.492e-05/0.4636, allocations: 14.3 kB / 0.545 GB, free: 12.63 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.475e-06/0.4636, allocations: 0 / 0.545 GB, free: 12.63 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.805e-06/0.4637, allocations: 1.156 kB / 0.545 GB, free: 12.63 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003039/0.4667, allocations: 1.494 MB / 0.5465 GB, free: 11.64 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.06e-06/0.4667, allocations: 1 kB / 0.5465 GB, free: 11.64 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006175/0.4673, allocations: 126.5 kB / 0.5466 GB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.357e-06/0.4674, allocations: 2.844 kB / 0.5466 GB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.698e-05/0.4674, allocations: 18.19 kB / 0.5466 GB, free: 11.6 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.524e-06/0.4674, allocations: 8.734 kB / 0.5466 GB, free: 11.6 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.4674, allocations: 1.469 kB / 0.5466 GB, free: 11.6 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001283/0.4687, allocations: 0.9375 MB / 0.5475 GB, free: 10.88 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003106/0.4691, allocations: 196.5 kB / 0.5477 GB, free: 10.67 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.478e-05/0.4691, allocations: 8 kB / 0.5477 GB, free: 10.66 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003068/0.4695, allocations: 19.98 kB / 0.5477 GB, free: 10.64 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.252e-05/0.4695, allocations: 36.33 kB / 0.5478 GB, free: 10.61 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.977e-05/0.4696, allocations: 16 kB / 0.5478 GB, free: 10.59 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004955/0.4701, allocations: 423 kB / 0.5482 GB, free: 10.18 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4701, allocations: 0 / 0.5482 GB, free: 10.18 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009659/0.471, allocations: 231.9 kB / 0.5484 GB, free: 9.957 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.000313/0.4714, allocations: 145.2 kB / 0.5485 GB, free: 9.812 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001667/0.473, allocations: 1.05 MB / 0.5496 GB, free: 8.727 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.4731, allocations: 0 / 0.5496 GB, free: 8.727 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003394/0.4734, allocations: 266.7 kB / 0.5498 GB, free: 8.469 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007732/0.4742, allocations: 155.8 kB / 0.55 GB, free: 8.32 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002911/0.4771, allocations: 2.068 MB / 0.552 GB, free: 6.203 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006244/0.4777, allocations: 1.086 MB / 0.5531 GB, free: 5.086 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004699/0.4782, allocations: 189.9 kB / 0.5532 GB, free: 4.898 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001576/0.4784, allocations: 51.44 kB / 0.5533 GB, free: 4.848 MB / 414.1 MB Notification: Performance of SimCode: time 4.91e-07/0.4784, allocations: 0 / 0.5533 GB, free: 4.848 MB / 414.1 MB Notification: Performance of Templates: time 0.0162/0.4946, allocations: 9.426 MB / 0.5625 GB, free: 11.49 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