Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.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.TurbineGeneratorLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|busbar.alpha_v|busbar1.alpha_v|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.TurbineGeneratorLine") translateModel(PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|busbar.alpha_v|busbar1.alpha_v|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.TurbineGeneratorLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001381/0.001381, allocations: 113.7 kB / 17.74 MB, free: 5.312 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.001559/0.001559, allocations: 185.6 kB / 18.66 MB, free: 4.398 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.349/1.349, allocations: 222.9 MB / 242.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1769/0.1769, allocations: 38.03 MB / 330.6 MB, free: 8.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001343/0.001343, allocations: 63.91 kB / 458.8 MB, free: 6.82 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3534/0.3547, allocations: 58.04 MB / 0.5048 GB, free: 7.785 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine): time 0.009543/0.3643, allocations: 9.565 MB / 0.5141 GB, free: 1.113 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006404/0.3708, allocations: 3.555 MB / 0.5176 GB, free: 14.61 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001057/0.3718, allocations: 30.44 kB / 0.5176 GB, free: 14.6 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00317/0.3751, allocations: 1.109 MB / 0.5187 GB, free: 13.93 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003102/0.3782, allocations: 0.8877 MB / 0.5196 GB, free: 13.45 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001712/0.3799, allocations: 480.4 kB / 0.52 GB, free: 13.22 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00355/0.3835, allocations: 1.808 MB / 0.5218 GB, free: 12.45 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00152/0.385, allocations: 0.9732 MB / 0.5227 GB, free: 12.01 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001776/0.3868, allocations: 0.7796 MB / 0.5235 GB, free: 11.65 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001698/0.3885, allocations: 0.8926 MB / 0.5244 GB, free: 11.31 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002119/0.3887, allocations: 109.7 kB / 0.5245 GB, free: 11.3 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001409/0.3902, allocations: 0.5344 MB / 0.525 GB, free: 11.16 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007697/0.3909, allocations: 0.6395 MB / 0.5256 GB, free: 10.94 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009072/0.3919, allocations: 0.7016 MB / 0.5263 GB, free: 10.53 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00331/0.3952, allocations: 1.901 MB / 0.5282 GB, free: 9.867 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.3952, allocations: 3.938 kB / 0.5282 GB, free: 9.863 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.765e-06/0.3952, allocations: 0 / 0.5282 GB, free: 9.863 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.706e-05/0.3953, allocations: 1.125 kB / 0.5282 GB, free: 9.863 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: 298 * Number of variables: 298 Notification: Performance of Generate backend data structure: time 0.003851/0.3991, allocations: 1.626 MB / 0.5298 GB, free: 8.836 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.277e-05/0.3992, allocations: 14.23 kB / 0.5298 GB, free: 8.832 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001841/0.401, allocations: 268.9 kB / 0.53 GB, free: 8.754 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001993/0.403, allocations: 0.9506 MB / 0.531 GB, free: 8.098 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7e-05/0.4031, allocations: 77.39 kB / 0.531 GB, free: 8.062 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003228/0.4034, allocations: 139.8 kB / 0.5312 GB, free: 8.008 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002621/0.4061, allocations: 1.492 MB / 0.5326 GB, free: 7.09 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.274e-05/0.4061, allocations: 7.469 kB / 0.5326 GB, free: 7.086 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001109/0.4062, allocations: 45.61 kB / 0.5327 GB, free: 7.051 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003234/0.4066, allocations: 99.12 kB / 0.5328 GB, free: 7.023 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002178/0.4088, allocations: 1.262 MB / 0.534 GB, free: 6.41 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008227/0.417, allocations: 5.621 MB / 0.5395 GB, free: 1.875 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009539/0.418, allocations: 0.5936 MB / 0.5401 GB, free: 1.551 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005518/0.4185, allocations: 400.7 kB / 0.5404 GB, free: 1.352 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.045e-05/0.4186, allocations: 15.86 kB / 0.5405 GB, free: 1.344 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.726e-05/0.4187, allocations: 45.64 kB / 0.5405 GB, free: 1.293 MB / 398.1 MB Notification: Performance of pre-optimization done (n=67): time 2.635e-06/0.4187, allocations: 0 / 0.5405 GB, free: 1.293 MB / 398.1 MB Notification: Performance of matching and sorting (n=74): time 0.007854/0.4265, allocations: 3.628 MB / 0.544 GB, free: 14.96 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.074e-05/0.4266, allocations: 93.95 kB / 0.5441 GB, free: 14.86 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001044/0.4277, allocations: 0.7356 MB / 0.5449 GB, free: 14.44 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.779e-05/0.4277, allocations: 36.33 kB / 0.5449 GB, free: 14.4 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004317/0.4282, allocations: 0.5888 MB / 0.5455 GB, free: 13.87 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002504/0.4284, allocations: 275 kB / 0.5457 GB, free: 13.63 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002883/0.4287, allocations: 182.6 kB / 0.5459 GB, free: 13.53 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001908/0.4289, allocations: 403 kB / 0.5463 GB, free: 13.15 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006101/0.4295, allocations: 392.9 kB / 0.5467 GB, free: 12.91 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007484/0.4303, allocations: 0.6651 MB / 0.5473 GB, free: 12.12 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001456/0.4318, allocations: 1.136 MB / 0.5484 GB, free: 10.87 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.4318, allocations: 4 kB / 0.5484 GB, free: 10.86 MB / 414.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003399/0.4352, allocations: 1.709 MB / 0.5501 GB, free: 9.133 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.982e-05/0.4352, allocations: 12.28 kB / 0.5501 GB, free: 9.121 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002532/0.4378, allocations: 1.305 MB / 0.5514 GB, free: 7.805 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001811/0.4396, allocations: 0.5752 MB / 0.5519 GB, free: 7.219 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006167/0.4402, allocations: 187.7 kB / 0.5521 GB, free: 7.035 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0119/0.4521, allocations: 10.35 MB / 0.5622 GB, free: 12.1 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001037/0.4532, allocations: 43.97 kB / 0.5623 GB, free: 12.06 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001703/0.4534, allocations: 40 kB / 0.5623 GB, free: 12.02 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * 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 (93): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (2,8,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,16)} Notification: Performance of prepare postOptimizeDAE: time 0.0009466/0.4544, allocations: 385.4 kB / 0.5627 GB, free: 11.63 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003084/0.4547, allocations: 94.88 kB / 0.5628 GB, free: 11.54 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002465/0.4571, allocations: 1.244 MB / 0.564 GB, free: 10.27 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.179e-05/0.4572, allocations: 11.98 kB / 0.564 GB, free: 10.25 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.605e-05/0.4572, allocations: 4 kB / 0.564 GB, free: 10.25 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.449e-05/0.4572, allocations: 7.969 kB / 0.564 GB, free: 10.24 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004765/0.462, allocations: 2.393 MB / 0.5663 GB, free: 7.746 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.937e-06/0.462, allocations: 4 kB / 0.5663 GB, free: 7.742 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004877/0.4625, allocations: 112.1 kB / 0.5665 GB, free: 7.633 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001115/0.4636, allocations: 375.7 kB / 0.5668 GB, free: 7.25 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.09e-05/0.4637, allocations: 27.98 kB / 0.5668 GB, free: 7.223 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008295/0.472, allocations: 9.287 MB / 0.5759 GB, free: 13.24 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.4721, allocations: 4.062 kB / 0.5759 GB, free: 13.23 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002877/0.475, allocations: 1.674 MB / 0.5775 GB, free: 11.51 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000636/0.4756, allocations: 227.8 kB / 0.5778 GB, free: 11.27 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000304/0.476, allocations: 31.92 kB / 0.5778 GB, free: 11.23 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006565/0.4766, allocations: 23.98 kB / 0.5778 GB, free: 11.21 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001589/0.4768, allocations: 64.5 kB / 0.5779 GB, free: 11.14 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.215e-05/0.4769, allocations: 28.06 kB / 0.5779 GB, free: 11.12 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0008248/0.4777, allocations: 0.5068 MB / 0.5784 GB, free: 10.61 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4777, allocations: 0 / 0.5784 GB, free: 10.61 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001947/0.4797, allocations: 364 kB / 0.5787 GB, free: 10.26 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (57): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(2,10,100.0%), (1,3,100.0%), (1,3,100.0%), (1,1,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004436/0.4801, allocations: 159.2 kB / 0.5789 GB, free: 10.09 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002705/0.4828, allocations: 1.579 MB / 0.5804 GB, free: 8.461 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.531e-06/0.4828, allocations: 0 / 0.5804 GB, free: 8.461 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001664/0.4845, allocations: 1.102 MB / 0.5815 GB, free: 7.297 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001425/0.486, allocations: 204.5 kB / 0.5817 GB, free: 7.109 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005143/0.4911, allocations: 2.805 MB / 0.5845 GB, free: 4.242 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001154/0.4923, allocations: 1.251 MB / 0.5857 GB, free: 2.961 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002352/0.4925, allocations: 83.41 kB / 0.5858 GB, free: 2.879 MB / 446.1 MB Notification: Performance of SimCode: time 8.22e-07/0.4925, allocations: 0 / 0.5858 GB, free: 2.879 MB / 446.1 MB Notification: Performance of Templates: time 0.04115/0.5337, allocations: 32.81 MB / 0.6178 GB, free: 2.074 MB / 478.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches