Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.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.Introductory.ReferenceSynchron,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter_dq0.i.1.|meter_dq0.i.2.|meter_dq0.i.3.|meter_dq0.p.1.|meter_dq0.p.2.|meter_dq0.p.3.|meter_dq0.v.1.|meter_dq0.v.2.|meter_dq0.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron") translateModel(PowerSystems.Examples.Introductory.ReferenceSynchron,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter_dq0.i.1.|meter_dq0.i.2.|meter_dq0.i.3.|meter_dq0.p.1.|meter_dq0.p.2.|meter_dq0.p.3.|meter_dq0.v.1.|meter_dq0.v.2.|meter_dq0.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001303/0.001303, allocations: 112 kB / 17.06 MB, free: 6 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.001528/0.001528, allocations: 192 kB / 18 MB, free: 5.082 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.405/1.405, allocations: 222.9 MB / 241.7 MB, free: 15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1713/0.1713, allocations: 38.04 MB / 329.9 MB, free: 8.738 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001162/0.001162, allocations: 55.91 kB / 458.1 MB, free: 6.891 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3276/0.3288, allocations: 58.06 MB / 0.5041 GB, free: 7.719 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceSynchron): time 0.005489/0.3343, allocations: 4.422 MB / 0.5084 GB, free: 4.645 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002423/0.3368, allocations: 1.42 MB / 0.5098 GB, free: 3.66 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002683/0.337, allocations: 17.06 kB / 0.5098 GB, free: 3.652 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001126/0.3382, allocations: 372.2 kB / 0.5102 GB, free: 3.43 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007565/0.3389, allocations: 248.8 kB / 0.5104 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000876/0.3398, allocations: 247.2 kB / 0.5106 GB, free: 3.184 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009062/0.3408, allocations: 0.5607 MB / 0.5112 GB, free: 2.945 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005446/0.3413, allocations: 282.8 kB / 0.5115 GB, free: 2.832 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005065/0.3418, allocations: 261.5 kB / 0.5117 GB, free: 2.719 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006777/0.3425, allocations: 351.8 kB / 0.512 GB, free: 2.602 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.57e-05/0.3426, allocations: 42.94 kB / 0.5121 GB, free: 2.598 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006138/0.3433, allocations: 225.3 kB / 0.5123 GB, free: 2.539 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003517/0.3436, allocations: 243.9 kB / 0.5125 GB, free: 2.457 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003088/0.3439, allocations: 258.2 kB / 0.5128 GB, free: 2.309 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009549/0.3449, allocations: 0.6696 MB / 0.5134 GB, free: 2.066 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.3449, allocations: 9.156 kB / 0.5134 GB, free: 2.059 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.3449, allocations: 0 / 0.5134 GB, free: 2.059 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.04e-05/0.3449, allocations: 0 / 0.5134 GB, free: 2.059 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.001473/0.3464, allocations: 0.7659 MB / 0.5142 GB, free: 1.484 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.445e-05/0.3465, allocations: 13.17 kB / 0.5142 GB, free: 1.48 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006145/0.3471, allocations: 89.88 kB / 0.5143 GB, free: 1.449 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008034/0.3479, allocations: 430.7 kB / 0.5147 GB, free: 1.145 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.719e-05/0.348, allocations: 29.69 kB / 0.5147 GB, free: 1.129 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000142/0.3481, allocations: 45.27 kB / 0.5148 GB, free: 1.113 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001141/0.3492, allocations: 0.679 MB / 0.5154 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.285e-05/0.3493, allocations: 2.047 kB / 0.5154 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.283e-05/0.3493, allocations: 19.67 kB / 0.5154 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001966/0.3495, allocations: 52.31 kB / 0.5155 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001357/0.3509, allocations: 0.671 MB / 0.5162 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004203/0.3551, allocations: 2.511 MB / 0.5186 GB, free: 14.9 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005992/0.3557, allocations: 338 kB / 0.5189 GB, free: 14.75 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003474/0.3561, allocations: 230.8 kB / 0.5191 GB, free: 14.66 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.44e-05/0.3562, allocations: 4.562 kB / 0.5192 GB, free: 14.66 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.711e-05/0.3562, allocations: 50.94 kB / 0.5192 GB, free: 14.61 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 4.308e-06/0.3562, allocations: 5.172 kB / 0.5192 GB, free: 14.6 MB / 398.1 MB Notification: Performance of matching and sorting (n=43): time 0.002445/0.3587, allocations: 1.342 MB / 0.5205 GB, free: 13.89 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.478e-05/0.3588, allocations: 82.27 kB / 0.5206 GB, free: 13.8 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004119/0.3592, allocations: 299.2 kB / 0.5209 GB, free: 13.64 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.259e-05/0.3592, allocations: 38.89 kB / 0.5209 GB, free: 13.6 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000206/0.3594, allocations: 256.1 kB / 0.5212 GB, free: 13.39 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001698/0.3596, allocations: 151.9 kB / 0.5213 GB, free: 13.27 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001683/0.3598, allocations: 93.3 kB / 0.5214 GB, free: 13.22 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001689/0.36, allocations: 349.5 kB / 0.5217 GB, free: 12.89 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003365/0.3603, allocations: 202 kB / 0.5219 GB, free: 12.83 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004917/0.3608, allocations: 364.8 kB / 0.5223 GB, free: 12.57 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000894/0.3617, allocations: 0.61 MB / 0.5229 GB, free: 12.19 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.3617, allocations: 6.016 kB / 0.5229 GB, free: 12.18 MB / 398.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001057/0.3628, allocations: 0.6272 MB / 0.5235 GB, free: 11.94 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.6e-05/0.3628, allocations: 6.375 kB / 0.5235 GB, free: 11.94 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.464e-05/0.3628, allocations: 11.09 kB / 0.5235 GB, free: 11.93 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.947e-05/0.3629, allocations: 11.5 kB / 0.5235 GB, free: 11.93 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004764/0.3634, allocations: 113.4 kB / 0.5236 GB, free: 11.92 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.941e-05/0.3634, allocations: 12.72 kB / 0.5236 GB, free: 11.91 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002676/0.3637, allocations: 24.94 kB / 0.5237 GB, free: 11.91 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.218e-05/0.3637, allocations: 22.42 kB / 0.5237 GB, free: 11.9 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (57): * Single equations (assignments): 55 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002891/0.364, allocations: 207.7 kB / 0.5239 GB, free: 11.75 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00012/0.3642, allocations: 39.67 kB / 0.5239 GB, free: 11.73 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008336/0.365, allocations: 0.4931 MB / 0.5244 GB, free: 11.52 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.753e-05/0.3651, allocations: 11.5 kB / 0.5244 GB, free: 11.52 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.3651, allocations: 0.9062 kB / 0.5244 GB, free: 11.52 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.203e-06/0.3651, allocations: 2.688 kB / 0.5244 GB, free: 11.52 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002049/0.3671, allocations: 1.105 MB / 0.5255 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.013e-06/0.3672, allocations: 1.891 kB / 0.5255 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000377/0.3675, allocations: 65.97 kB / 0.5256 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.061e-06/0.3676, allocations: 6.75 kB / 0.5256 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.313e-05/0.3676, allocations: 9.672 kB / 0.5256 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.959e-06/0.3676, allocations: 2.688 kB / 0.5256 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.3676, allocations: 1.469 kB / 0.5256 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001188/0.3688, allocations: 0.8304 MB / 0.5264 GB, free: 10.51 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001135/0.3689, allocations: 112.7 kB / 0.5265 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.655e-05/0.369, allocations: 14.17 kB / 0.5265 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000222/0.3692, allocations: 15.92 kB / 0.5265 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.907e-05/0.3693, allocations: 20.98 kB / 0.5265 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.359e-05/0.3693, allocations: 18.5 kB / 0.5266 GB, free: 10.37 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002639/0.3696, allocations: 212.6 kB / 0.5268 GB, free: 10.25 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3696, allocations: 3.938 kB / 0.5268 GB, free: 10.25 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006055/0.3702, allocations: 110.8 kB / 0.5269 GB, free: 10.23 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (load_dq0.i[1],load_dq0.i[2],load_dq0.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 (33): * Single equations (assignments): 30 * Array equations: 2 * 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.0002557/0.3705, allocations: 138.1 kB / 0.527 GB, free: 10.13 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008858/0.3714, allocations: 495.1 kB / 0.5275 GB, free: 9.984 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.3714, allocations: 7.312 kB / 0.5275 GB, free: 9.98 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003099/0.3717, allocations: 223.4 kB / 0.5277 GB, free: 9.906 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005694/0.3723, allocations: 71.58 kB / 0.5278 GB, free: 9.879 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001931/0.3742, allocations: 1.115 MB / 0.5288 GB, free: 9.258 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005553/0.3748, allocations: 0.877 MB / 0.5297 GB, free: 8.535 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003901/0.3752, allocations: 125.7 kB / 0.5298 GB, free: 8.52 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001054/0.3753, allocations: 36.34 kB / 0.5299 GB, free: 8.508 MB / 398.1 MB Notification: Performance of SimCode: time 9.62e-07/0.3753, allocations: 0 / 0.5299 GB, free: 8.508 MB / 398.1 MB Notification: Performance of Templates: time 0.009487/0.3848, allocations: 3.965 MB / 0.5337 GB, free: 6.98 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.sim & ./PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.ReferenceSynchron.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches