Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest.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.Generic.Test.FixedLoadTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|line.i.1.|line.i.2.|line.p.1.|line.p.2.|line.v.1.|line.v.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest") translateModel(PowerSystems.Examples.Generic.Test.FixedLoadTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|line.i.1.|line.i.2.|line.p.1.|line.p.2.|line.v.1.|line.v.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001235/0.001235, allocations: 112.3 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.001403/0.001404, allocations: 198.8 kB / 18.01 MB, free: 5.066 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.507/1.507, allocations: 222.9 MB / 241.7 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.1851/0.1851, allocations: 38.05 MB / 329.9 MB, free: 8.719 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 63.89 kB / 458.2 MB, free: 6.809 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3822/0.3834, allocations: 58.06 MB / 0.5041 GB, free: 7.809 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.FixedLoadTest): time 0.004708/0.3882, allocations: 3.448 MB / 0.5075 GB, free: 5.41 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002137/0.3903, allocations: 1.53 MB / 0.509 GB, free: 4.336 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001549/0.3905, allocations: 9.375 kB / 0.509 GB, free: 4.332 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000904/0.3914, allocations: 258 kB / 0.5092 GB, free: 4.176 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006682/0.3921, allocations: 278.8 kB / 0.5095 GB, free: 4.031 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000355/0.3925, allocations: 134 kB / 0.5096 GB, free: 3.961 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005555/0.393, allocations: 349.9 kB / 0.51 GB, free: 3.812 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004049/0.3934, allocations: 130.2 kB / 0.5101 GB, free: 3.773 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002801/0.3937, allocations: 160 kB / 0.5102 GB, free: 3.695 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003309/0.3941, allocations: 149.6 kB / 0.5104 GB, free: 3.637 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.916e-05/0.3941, allocations: 18.53 kB / 0.5104 GB, free: 3.633 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000628/0.3947, allocations: 317.4 kB / 0.5107 GB, free: 3.512 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001556/0.3949, allocations: 103.2 kB / 0.5108 GB, free: 3.477 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001302/0.395, allocations: 103.5 kB / 0.5109 GB, free: 3.418 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006136/0.3957, allocations: 367.2 kB / 0.5112 GB, free: 3.285 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.612e-06/0.3957, allocations: 4.547 kB / 0.5113 GB, free: 3.281 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.815e-06/0.3957, allocations: 1.031 kB / 0.5113 GB, free: 3.281 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.128e-05/0.3957, allocations: 0 / 0.5113 GB, free: 3.281 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0006655/0.3964, allocations: 0.5169 MB / 0.5118 GB, free: 2.812 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.835e-05/0.3964, allocations: 8.938 kB / 0.5118 GB, free: 2.812 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009373/0.3974, allocations: 107.5 kB / 0.5119 GB, free: 2.793 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003008/0.3977, allocations: 271 kB / 0.5121 GB, free: 2.551 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.148e-05/0.3977, allocations: 20.02 kB / 0.5121 GB, free: 2.539 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.935e-05/0.3978, allocations: 19.27 kB / 0.5122 GB, free: 2.531 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000494/0.3983, allocations: 329.4 kB / 0.5125 GB, free: 2.355 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.685e-05/0.3983, allocations: 5.094 kB / 0.5125 GB, free: 2.352 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.51e-05/0.3983, allocations: 9.906 kB / 0.5125 GB, free: 2.344 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.575e-05/0.3984, allocations: 16.61 kB / 0.5125 GB, free: 2.344 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004831/0.3988, allocations: 316.5 kB / 0.5128 GB, free: 2.246 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00154/0.4004, allocations: 1.254 MB / 0.514 GB, free: 1.309 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002718/0.4007, allocations: 164.3 kB / 0.5142 GB, free: 1.215 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001553/0.4008, allocations: 103.5 kB / 0.5143 GB, free: 1.168 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.001e-05/0.4009, allocations: 2.984 kB / 0.5143 GB, free: 1.168 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.048e-05/0.4009, allocations: 36.7 kB / 0.5143 GB, free: 1.125 MB / 382.1 MB Notification: Performance of pre-optimization done (n=17): time 1.282e-06/0.4009, allocations: 0 / 0.5143 GB, free: 1.125 MB / 382.1 MB Notification: Performance of matching and sorting (n=18): time 0.001469/0.4024, allocations: 0.6769 MB / 0.515 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.475e-05/0.4024, allocations: 80.2 kB / 0.5151 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000166/0.4026, allocations: 190.8 kB / 0.5152 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.567e-05/0.4026, allocations: 30.83 kB / 0.5153 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.624e-05/0.4027, allocations: 156.5 kB / 0.5154 GB, free: 388 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.78e-05/0.4028, allocations: 64.95 kB / 0.5155 GB, free: 336 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.922e-05/0.4028, allocations: 48.05 kB / 0.5155 GB, free: 304 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.101e-05/0.4029, allocations: 327.9 kB / 0.5158 GB, free: 15.98 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001271/0.4031, allocations: 78.2 kB / 0.5159 GB, free: 15.95 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00018/0.4032, allocations: 147.2 kB / 0.5161 GB, free: 15.84 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003459/0.4036, allocations: 263.5 kB / 0.5163 GB, free: 15.67 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.4036, allocations: 5.281 kB / 0.5163 GB, free: 15.67 MB / 398.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0007681/0.4044, allocations: 353.4 kB / 0.5167 GB, free: 15.52 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.301e-05/0.4044, allocations: 10.66 kB / 0.5167 GB, free: 15.51 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.248e-06/0.4044, allocations: 2.281 kB / 0.5167 GB, free: 15.51 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004455/0.4049, allocations: 91.39 kB / 0.5168 GB, free: 15.49 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001673/0.4051, allocations: 38.12 kB / 0.5168 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003156/0.4082, allocations: 2.174 MB / 0.5189 GB, free: 13.7 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001621/0.4084, allocations: 13.16 kB / 0.5189 GB, free: 13.69 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.799e-05/0.4084, allocations: 8.719 kB / 0.5189 GB, free: 13.69 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (21): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0002227/0.4087, allocations: 155.5 kB / 0.5191 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.401e-05/0.4087, allocations: 16.89 kB / 0.5191 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007138/0.4095, allocations: 322.9 kB / 0.5194 GB, free: 13.4 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.169e-06/0.4095, allocations: 2.781 kB / 0.5194 GB, free: 13.4 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.455e-06/0.4095, allocations: 0.9062 kB / 0.5194 GB, free: 13.4 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.762e-06/0.4095, allocations: 1.406 kB / 0.5194 GB, free: 13.4 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001257/0.4108, allocations: 0.7566 MB / 0.5201 GB, free: 12.91 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.4108, allocations: 3.938 kB / 0.5202 GB, free: 12.9 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001047/0.4109, allocations: 25.48 kB / 0.5202 GB, free: 12.9 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002786/0.4112, allocations: 76.59 kB / 0.5203 GB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.02e-05/0.4112, allocations: 7.156 kB / 0.5203 GB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002231/0.4134, allocations: 2.046 MB / 0.5223 GB, free: 11.14 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/0.4135, allocations: 5.078 kB / 0.5223 GB, free: 11.14 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006717/0.4141, allocations: 416.5 kB / 0.5227 GB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.572e-05/0.4142, allocations: 94.73 kB / 0.5227 GB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.693e-05/0.4142, allocations: 9.438 kB / 0.5228 GB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001169/0.4144, allocations: 4 kB / 0.5228 GB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.957e-05/0.4144, allocations: 16.53 kB / 0.5228 GB, free: 10.76 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.641e-05/0.4144, allocations: 5.25 kB / 0.5228 GB, free: 10.76 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001188/0.4146, allocations: 141 kB / 0.5229 GB, free: 10.67 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4146, allocations: 5.094 kB / 0.5229 GB, free: 10.66 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004646/0.415, allocations: 67.22 kB / 0.523 GB, free: 10.66 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 simulation (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001306/0.4152, allocations: 101.2 kB / 0.5231 GB, free: 10.56 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008535/0.416, allocations: 392.3 kB / 0.5235 GB, free: 10.36 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.416, allocations: 0 / 0.5235 GB, free: 10.36 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005278/0.4166, allocations: 258.5 kB / 0.5237 GB, free: 10.2 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004256/0.417, allocations: 42.02 kB / 0.5237 GB, free: 10.18 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001074/0.4181, allocations: 0.4935 MB / 0.5242 GB, free: 9.883 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004375/0.4186, allocations: 0.7709 MB / 0.525 GB, free: 9.172 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001261/0.4187, allocations: 39.22 kB / 0.525 GB, free: 9.164 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.188e-05/0.4188, allocations: 19.14 kB / 0.525 GB, free: 9.156 MB / 398.1 MB Notification: Performance of SimCode: time 3.7e-07/0.4188, allocations: 0 / 0.525 GB, free: 9.156 MB / 398.1 MB Notification: Performance of Templates: time 0.007075/0.4259, allocations: 3.002 MB / 0.528 GB, free: 8.891 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest.sim & ./PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.FixedLoadTest.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,line.i[1],line.i[2],line.p[1],line.p[2],line.v[1],line.v[2] Variables in the result:line.L,line.R,line.i[1],line.i[2],line.i_start[1],line.i_start[2],line.p[1],line.p[2],line.terminal_p.v[1],line.v[1],line.v[2],line.v_start[1],line.v_start[2],load.P,load.p[1],load.phi,load.v_start[1],load.v_start[2],source.V,source.definiteReference,source.potentialReference,source.terminal.v[1],system.alpha0,system.dynType,system.f,system.fType,system.f_lim[1],system.f_lim[2],system.f_nom,system.omega_nom,system.refType,system.synRef,system.w_nom,time