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.001209/0.00121, allocations: 104.2 kB / 17.06 MB, free: 5.992 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.001206/0.001206, allocations: 191 kB / 18 MB, free: 5.078 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.344/1.344, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1721/0.1721, allocations: 38.05 MB / 329.9 MB, free: 8.781 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001222/0.001222, allocations: 59.91 kB / 458.1 MB, free: 6.902 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3661/0.3674, allocations: 58.06 MB / 0.5041 GB, free: 7.746 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceInertial): time 0.004804/0.3722, allocations: 4.428 MB / 0.5084 GB, free: 4.664 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002309/0.3746, allocations: 1.41 MB / 0.5098 GB, free: 3.688 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003074/0.3749, allocations: 17.41 kB / 0.5098 GB, free: 3.68 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001204/0.3761, allocations: 390.3 kB / 0.5102 GB, free: 3.445 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007329/0.3768, allocations: 217.7 kB / 0.5104 GB, free: 3.324 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000752/0.3776, allocations: 252.7 kB / 0.5106 GB, free: 3.211 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000537/0.3782, allocations: 0.5291 MB / 0.5111 GB, free: 2.988 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003933/0.3786, allocations: 283.4 kB / 0.5114 GB, free: 2.875 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003122/0.3789, allocations: 245.5 kB / 0.5116 GB, free: 2.77 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004596/0.3794, allocations: 291.8 kB / 0.5119 GB, free: 2.664 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.941e-05/0.3794, allocations: 32.31 kB / 0.512 GB, free: 2.664 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003346/0.3798, allocations: 143 kB / 0.5121 GB, free: 2.625 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002739/0.38, allocations: 223.6 kB / 0.5123 GB, free: 2.551 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002687/0.3803, allocations: 241.8 kB / 0.5125 GB, free: 2.41 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007388/0.3811, allocations: 0.5563 MB / 0.5131 GB, free: 2.207 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.3811, allocations: 1.375 kB / 0.5131 GB, free: 2.207 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.3811, allocations: 0 / 0.5131 GB, free: 2.207 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.907e-06/0.3811, allocations: 0 / 0.5131 GB, free: 2.207 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.001057/0.3822, allocations: 0.7373 MB / 0.5138 GB, free: 1.633 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.657e-05/0.3822, allocations: 17.48 kB / 0.5138 GB, free: 1.625 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005237/0.3827, allocations: 81.09 kB / 0.5139 GB, free: 1.602 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006364/0.3834, allocations: 407.8 kB / 0.5143 GB, free: 1.309 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.904e-05/0.3834, allocations: 42.27 kB / 0.5143 GB, free: 1.281 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001194/0.3836, allocations: 47.09 kB / 0.5144 GB, free: 1.266 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008228/0.3844, allocations: 0.6176 MB / 0.515 GB, free: 0.918 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.18e-05/0.3844, allocations: 2.219 kB / 0.515 GB, free: 0.918 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.632e-05/0.3845, allocations: 22.22 kB / 0.515 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001171/0.3846, allocations: 31.64 kB / 0.515 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007025/0.3853, allocations: 477.5 kB / 0.5155 GB, free: 0.75 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003287/0.3886, allocations: 2.899 MB / 0.5183 GB, free: 14.45 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003842/0.389, allocations: 223.9 kB / 0.5185 GB, free: 14.35 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002109/0.3892, allocations: 149 kB / 0.5187 GB, free: 14.29 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.093e-05/0.3893, allocations: 4.609 kB / 0.5187 GB, free: 14.29 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.586e-05/0.3893, allocations: 37.7 kB / 0.5187 GB, free: 14.25 MB / 398.1 MB Notification: Performance of pre-optimization done (n=27): time 2.194e-06/0.3893, allocations: 0 / 0.5187 GB, free: 14.25 MB / 398.1 MB Notification: Performance of matching and sorting (n=28): time 0.001557/0.3909, allocations: 0.9619 MB / 0.5196 GB, free: 13.67 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.134e-05/0.3909, allocations: 81.66 kB / 0.5197 GB, free: 13.58 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003493/0.3913, allocations: 326.4 kB / 0.52 GB, free: 13.41 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.728e-05/0.3913, allocations: 34.92 kB / 0.5201 GB, free: 13.37 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001973/0.3915, allocations: 277.3 kB / 0.5203 GB, free: 13.14 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.891e-05/0.3916, allocations: 101.5 kB / 0.5204 GB, free: 13.06 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001395/0.3918, allocations: 92.8 kB / 0.5205 GB, free: 13.01 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001639/0.3919, allocations: 348.2 kB / 0.5208 GB, free: 12.68 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002257/0.3922, allocations: 142.2 kB / 0.521 GB, free: 12.64 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003432/0.3925, allocations: 358.8 kB / 0.5213 GB, free: 12.32 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006448/0.3932, allocations: 0.5141 MB / 0.5218 GB, free: 11.94 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.576e-06/0.3932, allocations: 5.438 kB / 0.5218 GB, free: 11.93 MB / 398.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0007936/0.394, allocations: 0.5224 MB / 0.5223 GB, free: 11.73 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.01e-05/0.394, allocations: 7.5 kB / 0.5224 GB, free: 11.73 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.122e-05/0.394, allocations: 6.531 kB / 0.5224 GB, free: 11.73 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.404e-05/0.3941, allocations: 9.531 kB / 0.5224 GB, free: 11.73 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004154/0.3945, allocations: 120.5 kB / 0.5225 GB, free: 11.71 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.862e-05/0.3945, allocations: 15.38 kB / 0.5225 GB, free: 11.71 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002386/0.3947, allocations: 30.05 kB / 0.5225 GB, free: 11.7 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.702e-05/0.3948, allocations: 28.36 kB / 0.5226 GB, free: 11.69 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.0002397/0.395, allocations: 216.7 kB / 0.5228 GB, free: 11.53 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.152e-05/0.3951, allocations: 30.75 kB / 0.5228 GB, free: 11.51 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005767/0.3957, allocations: 361.2 kB / 0.5231 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.3957, allocations: 3.453 kB / 0.5231 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.105e-06/0.3957, allocations: 1.375 kB / 0.5231 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/0.3957, allocations: 9.281 kB / 0.5231 GB, free: 11.35 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001434/0.3972, allocations: 0.8925 MB / 0.524 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.09e-06/0.3972, allocations: 1.5 kB / 0.524 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003283/0.3975, allocations: 60.7 kB / 0.5241 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.434e-06/0.3975, allocations: 2.562 kB / 0.5241 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.567e-05/0.3976, allocations: 9.109 kB / 0.5241 GB, free: 10.81 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.955e-06/0.3976, allocations: 11.16 kB / 0.5241 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.3976, allocations: 1.031 kB / 0.5241 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009691/0.3986, allocations: 0.5826 MB / 0.5247 GB, free: 10.48 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001362/0.3987, allocations: 103 kB / 0.5248 GB, free: 10.37 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.52e-05/0.3988, allocations: 9.594 kB / 0.5248 GB, free: 10.37 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001866/0.399, allocations: 19.89 kB / 0.5248 GB, free: 10.36 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.945e-05/0.3991, allocations: 23.31 kB / 0.5248 GB, free: 10.35 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.696e-05/0.3991, allocations: 8.188 kB / 0.5248 GB, free: 10.35 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003107/0.3994, allocations: 223.6 kB / 0.525 GB, free: 10.23 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3994, allocations: 1.375 kB / 0.525 GB, free: 10.23 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006387/0.4001, allocations: 89.06 kB / 0.5251 GB, free: 10.22 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.0001666/0.4002, allocations: 108.4 kB / 0.5252 GB, free: 10.12 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007718/0.401, allocations: 370.9 kB / 0.5256 GB, free: 10.01 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.401, allocations: 0 / 0.5256 GB, free: 10.01 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002372/0.4013, allocations: 144.3 kB / 0.5257 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.0005727/0.4018, allocations: 78.16 kB / 0.5258 GB, free: 9.934 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00171/0.4036, allocations: 0.9873 MB / 0.5268 GB, free: 9.355 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004977/0.4041, allocations: 0.8542 MB / 0.5276 GB, free: 8.641 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003159/0.4044, allocations: 131.9 kB / 0.5277 GB, free: 8.625 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001009/0.4045, allocations: 37.08 kB / 0.5278 GB, free: 8.613 MB / 398.1 MB Notification: Performance of SimCode: time 5.61e-07/0.4045, allocations: 0 / 0.5278 GB, free: 8.613 MB / 398.1 MB Notification: Performance of Templates: time 0.007629/0.4122, allocations: 3.422 MB / 0.5311 GB, free: 7.801 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