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.001332/0.001337, allocations: 114.9 kB / 17.74 MB, free: 5.336 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.001301/0.001301, allocations: 188.4 kB / 18.67 MB, free: 4.41 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.355/1.355, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1774/0.1774, allocations: 38.04 MB / 330.6 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001222/0.001222, allocations: 67.89 kB / 458.8 MB, free: 6.863 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.346/0.3472, allocations: 58.05 MB / 0.5047 GB, free: 7.727 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceSynchron): time 0.005461/0.3527, allocations: 4.418 MB / 0.5091 GB, free: 4.656 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002285/0.3551, allocations: 1.424 MB / 0.5104 GB, free: 3.668 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002829/0.3554, allocations: 16.62 kB / 0.5105 GB, free: 3.66 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001034/0.3564, allocations: 376.8 kB / 0.5108 GB, free: 3.434 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006383/0.3571, allocations: 244.2 kB / 0.5111 GB, free: 3.301 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007508/0.3578, allocations: 246.7 kB / 0.5113 GB, free: 3.191 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007098/0.3585, allocations: 0.5605 MB / 0.5118 GB, free: 2.957 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004782/0.359, allocations: 287.6 kB / 0.5121 GB, free: 2.844 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003954/0.3594, allocations: 266.7 kB / 0.5124 GB, free: 2.727 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005407/0.36, allocations: 350.6 kB / 0.5127 GB, free: 2.609 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.309e-05/0.3601, allocations: 38.97 kB / 0.5127 GB, free: 2.609 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005268/0.3606, allocations: 221.3 kB / 0.5129 GB, free: 2.555 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002904/0.3609, allocations: 240.2 kB / 0.5132 GB, free: 2.477 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002658/0.3612, allocations: 261.8 kB / 0.5134 GB, free: 2.324 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009225/0.3621, allocations: 0.6738 MB / 0.5141 GB, free: 2.078 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.3621, allocations: 3.938 kB / 0.5141 GB, free: 2.074 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.654e-06/0.3621, allocations: 1.031 kB / 0.5141 GB, free: 2.074 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.874e-05/0.3622, allocations: 0 / 0.5141 GB, free: 2.074 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.001417/0.3636, allocations: 0.7657 MB / 0.5148 GB, free: 1.5 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.901e-05/0.3636, allocations: 13.3 kB / 0.5149 GB, free: 1.496 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000594/0.3642, allocations: 90.36 kB / 0.5149 GB, free: 1.465 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000629/0.3649, allocations: 422.9 kB / 0.5153 GB, free: 1.168 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.274e-05/0.3649, allocations: 36.73 kB / 0.5154 GB, free: 1.145 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001342/0.365, allocations: 45.89 kB / 0.5154 GB, free: 1.129 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001031/0.3661, allocations: 0.683 MB / 0.5161 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.033e-05/0.3661, allocations: 1.688 kB / 0.5161 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.082e-05/0.3662, allocations: 15.73 kB / 0.5161 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001938/0.3664, allocations: 48.12 kB / 0.5161 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001205/0.3676, allocations: 0.6704 MB / 0.5168 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003718/0.3713, allocations: 2.523 MB / 0.5193 GB, free: 14.91 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005452/0.3719, allocations: 340.8 kB / 0.5196 GB, free: 14.76 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003/0.3722, allocations: 222.9 kB / 0.5198 GB, free: 14.67 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.06e-05/0.3722, allocations: 16.22 kB / 0.5198 GB, free: 14.66 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.924e-05/0.3723, allocations: 40.75 kB / 0.5199 GB, free: 14.62 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 2.675e-06/0.3723, allocations: 0 / 0.5199 GB, free: 14.62 MB / 398.1 MB Notification: Performance of matching and sorting (n=43): time 0.002242/0.3745, allocations: 1.348 MB / 0.5212 GB, free: 13.91 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.166e-05/0.3746, allocations: 79.95 kB / 0.5213 GB, free: 13.81 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003423/0.375, allocations: 304.9 kB / 0.5215 GB, free: 13.65 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.24e-05/0.375, allocations: 30.92 kB / 0.5216 GB, free: 13.62 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001699/0.3752, allocations: 260 kB / 0.5218 GB, free: 13.4 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001318/0.3753, allocations: 151.2 kB / 0.522 GB, free: 13.28 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001474/0.3755, allocations: 95.3 kB / 0.5221 GB, free: 13.23 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001362/0.3756, allocations: 352.6 kB / 0.5224 GB, free: 12.9 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003093/0.3759, allocations: 196.7 kB / 0.5226 GB, free: 12.84 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004067/0.3763, allocations: 365.9 kB / 0.5229 GB, free: 12.58 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007577/0.3771, allocations: 0.609 MB / 0.5235 GB, free: 12.2 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.3771, allocations: 6.109 kB / 0.5235 GB, free: 12.2 MB / 398.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001027/0.3782, allocations: 0.6271 MB / 0.5241 GB, free: 11.95 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.222e-05/0.3782, allocations: 7.766 kB / 0.5241 GB, free: 11.95 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.494e-05/0.3782, allocations: 6.531 kB / 0.5242 GB, free: 11.95 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.25e-05/0.3782, allocations: 6.906 kB / 0.5242 GB, free: 11.95 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004758/0.3787, allocations: 113.4 kB / 0.5243 GB, free: 11.94 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.802e-05/0.3787, allocations: 12.52 kB / 0.5243 GB, free: 11.93 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000282/0.379, allocations: 26.86 kB / 0.5243 GB, free: 11.93 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.989e-05/0.3791, allocations: 21.64 kB / 0.5243 GB, free: 11.92 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.0002797/0.3794, allocations: 210.9 kB / 0.5245 GB, free: 11.77 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.621e-05/0.3795, allocations: 36.75 kB / 0.5246 GB, free: 11.75 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008413/0.3803, allocations: 0.4964 MB / 0.525 GB, free: 11.54 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.6e-05/0.3804, allocations: 12.27 kB / 0.5251 GB, free: 11.54 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.3804, allocations: 0 / 0.5251 GB, free: 11.54 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.634e-06/0.3804, allocations: 6.922 kB / 0.5251 GB, free: 11.53 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001837/0.3822, allocations: 1.097 MB / 0.5261 GB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.407e-06/0.3823, allocations: 1.219 kB / 0.5261 GB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003776/0.3826, allocations: 74.3 kB / 0.5262 GB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.623e-06/0.3827, allocations: 2.438 kB / 0.5262 GB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.206e-05/0.3827, allocations: 14.22 kB / 0.5262 GB, free: 10.94 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.44e-06/0.3827, allocations: 6.75 kB / 0.5262 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.3827, allocations: 1.188 kB / 0.5262 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001149/0.3839, allocations: 0.827 MB / 0.527 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001059/0.384, allocations: 116.8 kB / 0.5272 GB, free: 10.4 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.297e-05/0.384, allocations: 13.58 kB / 0.5272 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002088/0.3843, allocations: 15.81 kB / 0.5272 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.077e-05/0.3843, allocations: 25.42 kB / 0.5272 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.161e-05/0.3844, allocations: 8.547 kB / 0.5272 GB, free: 10.38 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002586/0.3846, allocations: 213.4 kB / 0.5274 GB, free: 10.26 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3846, allocations: 5.094 kB / 0.5274 GB, free: 10.26 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006006/0.3852, allocations: 110.8 kB / 0.5275 GB, free: 10.24 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.0002536/0.3855, allocations: 141.3 kB / 0.5277 GB, free: 10.14 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00076/0.3863, allocations: 0.4893 MB / 0.5281 GB, free: 9.988 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.3863, allocations: 0 / 0.5281 GB, free: 9.988 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003244/0.3866, allocations: 230.2 kB / 0.5284 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.0005442/0.3872, allocations: 69.45 kB / 0.5284 GB, free: 9.887 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001865/0.3891, allocations: 1.157 MB / 0.5296 GB, free: 9.234 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004968/0.3896, allocations: 0.8758 MB / 0.5304 GB, free: 8.512 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000141/0.3897, allocations: 39.59 kB / 0.5304 GB, free: 8.5 MB / 398.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3897, allocations: 0 / 0.5304 GB, free: 8.5 MB / 398.1 MB Notification: Performance of Templates: time 0.01054/0.4003, allocations: 5.612 MB / 0.5359 GB, free: 6.062 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.ReferenceSynchron.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches