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.001593/0.001593, allocations: 114.2 kB / 17.07 MB, free: 5.973 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.001674/0.001674, allocations: 194.8 kB / 18 MB, free: 5.059 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.487/1.487, 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.1752/0.1752, allocations: 38.04 MB / 329.9 MB, free: 8.738 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001201/0.001201, allocations: 64.08 kB / 458.1 MB, free: 6.867 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3947/0.3959, allocations: 58.04 MB / 0.5041 GB, free: 7.781 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceSynchron): time 0.005845/0.4018, allocations: 4.433 MB / 0.5084 GB, free: 4.699 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002588/0.4044, allocations: 1.417 MB / 0.5098 GB, free: 3.715 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002302/0.4047, allocations: 12.81 kB / 0.5098 GB, free: 3.711 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001119/0.4058, allocations: 384.3 kB / 0.5102 GB, free: 3.48 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006161/0.4064, allocations: 248.8 kB / 0.5104 GB, free: 3.344 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007362/0.4072, allocations: 244.3 kB / 0.5106 GB, free: 3.238 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006794/0.4079, allocations: 0.5562 MB / 0.5112 GB, free: 3.004 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004814/0.4084, allocations: 295.3 kB / 0.5115 GB, free: 2.887 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003267/0.4087, allocations: 257.2 kB / 0.5117 GB, free: 2.777 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004683/0.4092, allocations: 355.5 kB / 0.512 GB, free: 2.656 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.652e-05/0.4093, allocations: 39.81 kB / 0.5121 GB, free: 2.656 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003971/0.4097, allocations: 225.5 kB / 0.5123 GB, free: 2.598 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002546/0.4099, allocations: 243 kB / 0.5125 GB, free: 2.516 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000255/0.4102, allocations: 258.8 kB / 0.5128 GB, free: 2.367 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009546/0.4111, allocations: 0.6654 MB / 0.5134 GB, free: 2.129 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.4112, allocations: 1.219 kB / 0.5134 GB, free: 2.129 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.4112, allocations: 0 / 0.5134 GB, free: 2.129 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.119e-05/0.4112, allocations: 0 / 0.5134 GB, free: 2.129 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.001405/0.4126, allocations: 0.7799 MB / 0.5142 GB, free: 1.543 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.4126, allocations: 13.89 kB / 0.5142 GB, free: 1.539 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005753/0.4132, allocations: 89.83 kB / 0.5143 GB, free: 1.508 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007223/0.414, allocations: 421.5 kB / 0.5147 GB, free: 1.211 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.707e-05/0.414, allocations: 30.53 kB / 0.5147 GB, free: 1.195 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001947/0.4142, allocations: 46.48 kB / 0.5148 GB, free: 1.18 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001605/0.4158, allocations: 0.6814 MB / 0.5154 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.37e-05/0.4159, allocations: 5.062 kB / 0.5154 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.825e-05/0.4159, allocations: 21.05 kB / 0.5155 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002356/0.4162, allocations: 47.19 kB / 0.5155 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001297/0.4175, allocations: 0.675 MB / 0.5162 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003857/0.4214, allocations: 2.516 MB / 0.5186 GB, free: 14.96 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006219/0.422, allocations: 338.7 kB / 0.5189 GB, free: 14.81 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003846/0.4224, allocations: 221.7 kB / 0.5192 GB, free: 14.72 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.795e-05/0.4225, allocations: 8.406 kB / 0.5192 GB, free: 14.72 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.106e-05/0.4225, allocations: 41.34 kB / 0.5192 GB, free: 14.67 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 1.914e-06/0.4225, allocations: 0.9688 kB / 0.5192 GB, free: 14.67 MB / 398.1 MB Notification: Performance of matching and sorting (n=43): time 0.002562/0.4251, allocations: 1.353 MB / 0.5205 GB, free: 13.96 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.35e-05/0.4252, allocations: 81.48 kB / 0.5206 GB, free: 13.86 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003882/0.4256, allocations: 299.2 kB / 0.5209 GB, free: 13.71 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.814e-05/0.4256, allocations: 32.05 kB / 0.5209 GB, free: 13.67 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002944/0.4259, allocations: 260.3 kB / 0.5212 GB, free: 13.45 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001447/0.4261, allocations: 150.6 kB / 0.5213 GB, free: 13.34 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001539/0.4262, allocations: 95.14 kB / 0.5214 GB, free: 13.29 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001666/0.4264, allocations: 349.9 kB / 0.5217 GB, free: 12.96 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003296/0.4267, allocations: 195.9 kB / 0.5219 GB, free: 12.9 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005036/0.4272, allocations: 368.7 kB / 0.5223 GB, free: 12.63 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009491/0.4282, allocations: 0.61 MB / 0.5229 GB, free: 12.25 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.4282, allocations: 2.594 kB / 0.5229 GB, free: 12.25 MB / 398.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001126/0.4293, allocations: 0.6305 MB / 0.5235 GB, free: 12 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.535e-05/0.4294, allocations: 8.641 kB / 0.5235 GB, free: 12 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.402e-05/0.4294, allocations: 9.562 kB / 0.5235 GB, free: 12 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.797e-05/0.4294, allocations: 11 kB / 0.5235 GB, free: 12 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004741/0.4299, allocations: 113.4 kB / 0.5236 GB, free: 11.98 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.929e-05/0.4299, allocations: 9.656 kB / 0.5236 GB, free: 11.98 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002531/0.4302, allocations: 20.42 kB / 0.5236 GB, free: 11.98 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.009e-05/0.4303, allocations: 26.31 kB / 0.5237 GB, free: 11.97 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.0003364/0.4306, allocations: 211.6 kB / 0.5239 GB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001648/0.4308, allocations: 36.73 kB / 0.5239 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009564/0.4318, allocations: 0.5002 MB / 0.5244 GB, free: 11.58 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.305e-05/0.4318, allocations: 11.27 kB / 0.5244 GB, free: 11.58 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/0.4318, allocations: 1.094 kB / 0.5244 GB, free: 11.58 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.477e-06/0.4318, allocations: 2.203 kB / 0.5244 GB, free: 11.58 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002493/0.4343, allocations: 1.094 MB / 0.5255 GB, free: 11.01 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.554e-06/0.4344, allocations: 5.219 kB / 0.5255 GB, free: 11 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003972/0.4348, allocations: 77.14 kB / 0.5256 GB, free: 10.99 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.364e-06/0.4348, allocations: 2.812 kB / 0.5256 GB, free: 10.99 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.955e-05/0.4348, allocations: 9.766 kB / 0.5256 GB, free: 10.99 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.055e-06/0.4348, allocations: 3.141 kB / 0.5256 GB, free: 10.99 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.923e-06/0.4348, allocations: 5.344 kB / 0.5256 GB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00166/0.4365, allocations: 0.8348 MB / 0.5264 GB, free: 10.56 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001185/0.4366, allocations: 108.1 kB / 0.5265 GB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.315e-05/0.4367, allocations: 9.969 kB / 0.5265 GB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002155/0.4369, allocations: 16.25 kB / 0.5265 GB, free: 10.44 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.34e-05/0.437, allocations: 28.58 kB / 0.5266 GB, free: 10.43 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.117e-05/0.4371, allocations: 10.03 kB / 0.5266 GB, free: 10.43 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003588/0.4375, allocations: 218.1 kB / 0.5268 GB, free: 10.31 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.4375, allocations: 0 / 0.5268 GB, free: 10.31 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007076/0.4382, allocations: 114.6 kB / 0.5269 GB, free: 10.29 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.0003875/0.4386, allocations: 132.8 kB / 0.527 GB, free: 10.19 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001041/0.4396, allocations: 0.4883 MB / 0.5275 GB, free: 10.04 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.4396, allocations: 0 / 0.5275 GB, free: 10.04 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003404/0.44, allocations: 227.2 kB / 0.5277 GB, free: 9.969 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005568/0.4405, allocations: 71.72 kB / 0.5278 GB, free: 9.941 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002126/0.4427, allocations: 1.112 MB / 0.5289 GB, free: 9.324 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008207/0.4435, allocations: 0.8797 MB / 0.5297 GB, free: 8.598 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004801/0.444, allocations: 122.8 kB / 0.5298 GB, free: 8.586 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001458/0.4442, allocations: 35.64 kB / 0.5299 GB, free: 8.574 MB / 398.1 MB Notification: Performance of SimCode: time 2.51e-07/0.4442, allocations: 4 kB / 0.5299 GB, free: 8.57 MB / 398.1 MB Notification: Performance of Templates: time 0.01108/0.4553, allocations: 3.963 MB / 0.5337 GB, free: 6.996 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