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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001858/0.001858, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.498/1.498, allocations: 205.1 MB / 223.1 MB, free: 8.473 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001282/0.001282, allocations: 102 kB / 270.5 MB, free: 8.441 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1755/0.1755, allocations: 38.01 MB / 355.8 MB, free: 2.941 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001148/0.001148, allocations: 55.92 kB / 421.9 MB, free: 37.78 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3141/0.3153, allocations: 55.23 MB / 477.1 MB, free: 9.922 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator): time 0.01021/0.3255, allocations: 8.762 MB / 485.9 MB, free: 3.703 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.006507/0.3321, allocations: 3.417 MB / 489.3 MB, free: 1.289 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00154/0.3337, allocations: 51.31 kB / 489.3 MB, free: 1.27 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001865/0.3356, allocations: 0.6843 MB / 490 MB, free: 0.8633 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00219/0.3378, allocations: 0.6318 MB / 490.6 MB, free: 0.5352 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001159/0.3389, allocations: 339.9 kB / 491 MB, free: 372 kB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.003078/0.342, allocations: 2.001 MB / 493 MB, free: 15.72 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001233/0.3433, allocations: 0.6655 MB / 493.6 MB, free: 15.44 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001115/0.3444, allocations: 499.4 kB / 494.1 MB, free: 15.23 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001297/0.3457, allocations: 0.664 MB / 494.8 MB, free: 14.99 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001713/0.3459, allocations: 57.31 kB / 494.8 MB, free: 14.99 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001418/0.3473, allocations: 481.2 kB / 495.3 MB, free: 14.85 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007873/0.3481, allocations: 433.3 kB / 495.7 MB, free: 14.71 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008239/0.349, allocations: 493.3 kB / 496.2 MB, free: 14.44 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002104/0.3511, allocations: 1.382 MB / 497.6 MB, free: 13.83 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.3511, allocations: 5.125 kB / 497.6 MB, free: 13.82 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.3511, allocations: 0 / 497.6 MB, free: 13.82 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.597e-05/0.3511, allocations: 0 / 497.6 MB, free: 13.82 MB / 330.7 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.003096/0.3542, allocations: 1.28 MB / 498.9 MB, free: 12.85 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.281e-05/0.3543, allocations: 12.55 kB / 498.9 MB, free: 12.84 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001303/0.3556, allocations: 204.5 kB / 499.1 MB, free: 12.75 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001676/0.3573, allocations: 0.707 MB / 499.8 MB, free: 12.21 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.37e-05/0.3574, allocations: 58.88 kB / 499.9 MB, free: 12.18 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002326/0.3576, allocations: 100.8 kB / 500 MB, free: 12.14 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001828/0.3595, allocations: 1.106 MB / 0.4893 GB, free: 11.45 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.213e-05/0.3595, allocations: 6.438 kB / 0.4893 GB, free: 11.45 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.932e-05/0.3596, allocations: 35.23 kB / 0.4894 GB, free: 11.42 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000192/0.3598, allocations: 66.12 kB / 0.4894 GB, free: 11.41 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001495/0.3613, allocations: 0.8733 MB / 0.4903 GB, free: 10.99 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005794/0.3671, allocations: 4.003 MB / 0.4942 GB, free: 7.77 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006694/0.3678, allocations: 440.7 kB / 0.4946 GB, free: 7.477 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004055/0.3682, allocations: 281.9 kB / 0.4949 GB, free: 7.332 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.197e-05/0.3683, allocations: 13.58 kB / 0.4949 GB, free: 7.324 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.35e-05/0.3683, allocations: 38.06 kB / 0.4949 GB, free: 7.281 MB / 330.7 MB Notification: Performance of pre-optimization done (n=48): time 2.615e-06/0.3683, allocations: 0 / 0.4949 GB, free: 7.281 MB / 330.7 MB Notification: Performance of matching and sorting (n=51): time 0.003078/0.3714, allocations: 1.719 MB / 0.4966 GB, free: 6.219 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.355e-05/0.3715, allocations: 82.61 kB / 0.4967 GB, free: 6.125 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006485/0.3721, allocations: 0.5832 MB / 0.4973 GB, free: 5.777 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.906e-05/0.3722, allocations: 35.08 kB / 0.4973 GB, free: 5.738 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000349/0.3725, allocations: 465.8 kB / 0.4977 GB, free: 5.328 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001757/0.3727, allocations: 193.3 kB / 0.4979 GB, free: 5.16 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002468/0.373, allocations: 142.8 kB / 0.4981 GB, free: 5.074 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001666/0.3731, allocations: 375.9 kB / 0.4984 GB, free: 4.715 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003641/0.3735, allocations: 252.4 kB / 0.4986 GB, free: 4.598 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00049/0.374, allocations: 477.4 kB / 0.4991 GB, free: 4.191 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009275/0.3749, allocations: 0.7782 MB / 0.4999 GB, free: 3.5 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.375, allocations: 7.938 kB / 0.4999 GB, free: 3.492 MB / 330.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001839/0.3768, allocations: 1.111 MB / 0.501 GB, free: 2.344 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.882e-05/0.3768, allocations: 8 kB / 0.501 GB, free: 2.336 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001236/0.3781, allocations: 0.7998 MB / 0.5017 GB, free: 1.508 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006946/0.3788, allocations: 214.4 kB / 0.502 GB, free: 1.289 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005007/0.3793, allocations: 167.7 kB / 0.5021 GB, free: 1.125 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004822/0.3841, allocations: 5.236 MB / 0.5072 GB, free: 11.48 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005781/0.3847, allocations: 39.88 kB / 0.5073 GB, free: 11.44 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.612e-05/0.3848, allocations: 28 kB / 0.5073 GB, free: 11.41 MB / 346.7 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.0004711/0.3853, allocations: 313.8 kB / 0.5076 GB, free: 11.1 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001054/0.3854, allocations: 67.23 kB / 0.5077 GB, free: 11.03 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009165/0.3863, allocations: 0.6008 MB / 0.5082 GB, free: 10.42 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.588e-06/0.3863, allocations: 7.938 kB / 0.5082 GB, free: 10.41 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.377e-06/0.3863, allocations: 4 kB / 0.5082 GB, free: 10.41 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.114e-06/0.3863, allocations: 7.938 kB / 0.5083 GB, free: 10.4 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002348/0.3887, allocations: 1.497 MB / 0.5097 GB, free: 8.832 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.516e-06/0.3887, allocations: 0 / 0.5097 GB, free: 8.832 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005922/0.3893, allocations: 123.9 kB / 0.5098 GB, free: 8.711 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.71e-06/0.3893, allocations: 4 kB / 0.5098 GB, free: 8.707 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.154e-05/0.3894, allocations: 15.98 kB / 0.5099 GB, free: 8.691 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.571e-06/0.3894, allocations: 7.938 kB / 0.5099 GB, free: 8.684 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.3894, allocations: 4 kB / 0.5099 GB, free: 8.68 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006724/0.3961, allocations: 4.549 MB / 0.5143 GB, free: 3.945 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003402/0.3965, allocations: 196.1 kB / 0.5145 GB, free: 3.734 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001029/0.3966, allocations: 19.91 kB / 0.5145 GB, free: 3.715 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003433/0.397, allocations: 19.98 kB / 0.5145 GB, free: 3.695 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.963e-05/0.397, allocations: 40.31 kB / 0.5146 GB, free: 3.656 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.221e-05/0.3971, allocations: 16 kB / 0.5146 GB, free: 3.641 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004688/0.3975, allocations: 419 kB / 0.515 GB, free: 3.234 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.3976, allocations: 0 / 0.515 GB, free: 3.234 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001202/0.3988, allocations: 304 kB / 0.5153 GB, free: 2.938 MB / 346.7 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.0002943/0.3991, allocations: 141.8 kB / 0.5154 GB, free: 2.797 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001661/0.4007, allocations: 1.046 MB / 0.5164 GB, free: 1.711 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.4008, allocations: 0 / 0.5164 GB, free: 1.711 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003602/0.4011, allocations: 266.7 kB / 0.5167 GB, free: 1.453 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008266/0.402, allocations: 143.4 kB / 0.5168 GB, free: 1.316 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004083/0.4061, allocations: 2.755 MB / 0.5195 GB, free: 14.5 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009064/0.407, allocations: 1.102 MB / 0.5206 GB, free: 13.37 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0008681/0.4079, allocations: 205.8 kB / 0.5208 GB, free: 13.17 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002714/0.4082, allocations: 59.42 kB / 0.5208 GB, free: 13.11 MB / 362.7 MB Notification: Performance of SimCode: time 1.212e-06/0.4082, allocations: 0 / 0.5208 GB, free: 13.11 MB / 362.7 MB Notification: Performance of Templates: time 0.01861/0.4268, allocations: 10.11 MB / 0.5307 GB, free: 3.016 MB / 362.7 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@2/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches