Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.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.ReferenceInertial,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.ReferenceInertial") translateModel(PowerSystems.Examples.Introductory.ReferenceInertial,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.ReferenceInertial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001317/0.001317, allocations: 108.4 kB / 17.06 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.001181/0.001181, allocations: 198.8 kB / 18.01 MB, free: 5.051 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.424/1.424, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1735/0.1735, allocations: 38.05 MB / 329.9 MB, free: 8.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001353/0.001353, allocations: 59.91 kB / 458.1 MB, free: 6.883 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4202/0.4216, allocations: 58.05 MB / 0.5041 GB, free: 7.734 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceInertial): time 0.005537/0.4272, allocations: 4.421 MB / 0.5084 GB, free: 4.652 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002156/0.4294, allocations: 1.421 MB / 0.5098 GB, free: 3.672 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002089/0.4296, allocations: 13.72 kB / 0.5098 GB, free: 3.668 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001018/0.4306, allocations: 383.3 kB / 0.5102 GB, free: 3.434 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005134/0.4312, allocations: 225.9 kB / 0.5104 GB, free: 3.305 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007532/0.4319, allocations: 240.8 kB / 0.5106 GB, free: 3.203 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006011/0.4325, allocations: 0.5361 MB / 0.5111 GB, free: 2.973 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004304/0.433, allocations: 275.1 kB / 0.5114 GB, free: 2.871 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003197/0.4333, allocations: 245.8 kB / 0.5116 GB, free: 2.762 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004563/0.4338, allocations: 295 kB / 0.5119 GB, free: 2.652 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.06e-05/0.4338, allocations: 32.28 kB / 0.512 GB, free: 2.652 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002995/0.4341, allocations: 139.5 kB / 0.5121 GB, free: 2.617 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000236/0.4344, allocations: 220.4 kB / 0.5123 GB, free: 2.547 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002236/0.4346, allocations: 240.3 kB / 0.5125 GB, free: 2.406 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007061/0.4353, allocations: 0.5683 MB / 0.5131 GB, free: 2.191 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.4354, allocations: 4.906 kB / 0.5131 GB, free: 2.188 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.4354, allocations: 0 / 0.5131 GB, free: 2.188 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.396e-05/0.4354, allocations: 0 / 0.5131 GB, free: 2.188 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: 109 * Number of variables: 109 Notification: Performance of Generate backend data structure: time 0.001172/0.4366, allocations: 0.7459 MB / 0.5138 GB, free: 1.605 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.82e-05/0.4366, allocations: 8.656 kB / 0.5138 GB, free: 1.605 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005484/0.4372, allocations: 89.42 kB / 0.5139 GB, free: 1.574 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006223/0.4378, allocations: 412.5 kB / 0.5143 GB, free: 1.277 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.805e-05/0.4378, allocations: 29.12 kB / 0.5143 GB, free: 1.262 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000125/0.438, allocations: 51.09 kB / 0.5144 GB, free: 1.242 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009105/0.4389, allocations: 0.6249 MB / 0.515 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.474e-05/0.4389, allocations: 2.703 kB / 0.515 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.589e-05/0.439, allocations: 24.84 kB / 0.515 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001139/0.4391, allocations: 27.86 kB / 0.515 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008075/0.4399, allocations: 481.8 kB / 0.5155 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003378/0.4433, allocations: 2.882 MB / 0.5183 GB, free: 14.44 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004122/0.4437, allocations: 233.6 kB / 0.5185 GB, free: 14.33 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002423/0.444, allocations: 148.9 kB / 0.5187 GB, free: 14.27 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.508e-05/0.444, allocations: 4.5 kB / 0.5187 GB, free: 14.27 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.261e-05/0.4441, allocations: 41.48 kB / 0.5187 GB, free: 14.22 MB / 398.1 MB Notification: Performance of pre-optimization done (n=27): time 2.585e-06/0.4441, allocations: 0 / 0.5187 GB, free: 14.22 MB / 398.1 MB Notification: Performance of matching and sorting (n=28): time 0.002147/0.4462, allocations: 0.9709 MB / 0.5197 GB, free: 13.64 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001496/0.4464, allocations: 80.94 kB / 0.5197 GB, free: 13.54 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004794/0.4469, allocations: 323 kB / 0.5201 GB, free: 13.38 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.291e-05/0.4469, allocations: 31.05 kB / 0.5201 GB, free: 13.34 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002015/0.4471, allocations: 293.7 kB / 0.5204 GB, free: 13.09 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.896e-05/0.4472, allocations: 106.1 kB / 0.5205 GB, free: 13.01 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001482/0.4474, allocations: 92.27 kB / 0.5206 GB, free: 12.96 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001646/0.4476, allocations: 350.9 kB / 0.5209 GB, free: 12.63 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002498/0.4478, allocations: 144.2 kB / 0.521 GB, free: 12.59 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003749/0.4482, allocations: 356.5 kB / 0.5214 GB, free: 12.28 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006472/0.4489, allocations: 0.517 MB / 0.5219 GB, free: 11.89 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.028e-06/0.4489, allocations: 2.188 kB / 0.5219 GB, free: 11.89 MB / 398.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.000916/0.4498, allocations: 0.528 MB / 0.5224 GB, free: 11.67 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.087e-05/0.4498, allocations: 8.953 kB / 0.5224 GB, free: 11.67 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.835e-05/0.4498, allocations: 6.844 kB / 0.5224 GB, free: 11.67 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.319e-05/0.4499, allocations: 9 kB / 0.5224 GB, free: 11.67 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004853/0.4504, allocations: 120.3 kB / 0.5225 GB, free: 11.66 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.793e-05/0.4504, allocations: 15.06 kB / 0.5225 GB, free: 11.66 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002611/0.4507, allocations: 37.67 kB / 0.5226 GB, free: 11.64 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.582e-05/0.4508, allocations: 24.84 kB / 0.5226 GB, free: 11.63 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (58): * Single equations (assignments): 58 * Array equations: 0 * 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.0003202/0.4511, allocations: 219.7 kB / 0.5228 GB, free: 11.46 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.218e-05/0.4512, allocations: 31.72 kB / 0.5228 GB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007413/0.4519, allocations: 361.4 kB / 0.5232 GB, free: 11.29 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/0.4519, allocations: 4.125 kB / 0.5232 GB, free: 11.29 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.4519, allocations: 0 / 0.5232 GB, free: 11.29 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.456e-06/0.452, allocations: 2.969 kB / 0.5232 GB, free: 11.29 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00179/0.4537, allocations: 0.8838 MB / 0.5241 GB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.068e-06/0.4538, allocations: 6.016 kB / 0.5241 GB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003391/0.4541, allocations: 68.89 kB / 0.5241 GB, free: 10.76 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.797e-06/0.4541, allocations: 1.641 kB / 0.5241 GB, free: 10.76 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.888e-05/0.4542, allocations: 9.328 kB / 0.5241 GB, free: 10.75 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.019e-05/0.4542, allocations: 7.484 kB / 0.5241 GB, free: 10.75 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.576e-06/0.4542, allocations: 1.812 kB / 0.5241 GB, free: 10.75 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001028/0.4552, allocations: 0.5862 MB / 0.5247 GB, free: 10.42 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.504e-05/0.4553, allocations: 108.6 kB / 0.5248 GB, free: 10.31 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.655e-05/0.4554, allocations: 8.641 kB / 0.5248 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001931/0.4556, allocations: 14.25 kB / 0.5248 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.755e-05/0.4557, allocations: 25.25 kB / 0.5249 GB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.38e-05/0.4557, allocations: 8.203 kB / 0.5249 GB, free: 10.29 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002523/0.456, allocations: 218.8 kB / 0.5251 GB, free: 10.18 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.456, allocations: 0 / 0.5251 GB, free: 10.18 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004957/0.4565, allocations: 93.84 kB / 0.5252 GB, free: 10.16 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 (31): * Single equations (assignments): 30 * 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.0001427/0.4566, allocations: 104.6 kB / 0.5253 GB, free: 10.07 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006769/0.4573, allocations: 373.9 kB / 0.5256 GB, free: 9.953 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.4573, allocations: 1.812 kB / 0.5256 GB, free: 9.953 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002418/0.4576, allocations: 144.4 kB / 0.5258 GB, free: 9.91 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000545/0.4581, allocations: 67.45 kB / 0.5258 GB, free: 9.883 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002266/0.4604, allocations: 1.003 MB / 0.5268 GB, free: 9.289 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008161/0.4612, allocations: 0.8614 MB / 0.5277 GB, free: 8.566 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004754/0.4617, allocations: 131.9 kB / 0.5278 GB, free: 8.551 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001351/0.4619, allocations: 31.95 kB / 0.5278 GB, free: 8.543 MB / 398.1 MB Notification: Performance of SimCode: time 2.5e-07/0.4619, allocations: 3.938 kB / 0.5278 GB, free: 8.539 MB / 398.1 MB Notification: Performance of Templates: time 0.01057/0.4724, allocations: 3.421 MB / 0.5312 GB, free: 7.73 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.sim & ./PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.ReferenceInertial.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches