Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.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.AC1ph_DC.Transformation.TapChanger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8000,variableFilter="Time|meter1.i|meter1.p|meter1.v|meter12.i|meter12.p|meter12.v|meter22.i|meter22.p|meter22.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger") translateModel(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8000,variableFilter="Time|meter1.i|meter1.p|meter1.v|meter12.i|meter12.p|meter12.v|meter22.i|meter22.p|meter22.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001398/0.001398, allocations: 99.22 kB / 17.73 MB, free: 5.324 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.00141/0.00141, allocations: 192.2 kB / 18.67 MB, free: 4.395 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.352/1.352, allocations: 222.9 MB / 242.4 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.174/0.174, allocations: 38.04 MB / 330.6 MB, free: 8.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001278, allocations: 59.91 kB / 458.8 MB, free: 6.848 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3453/0.3466, allocations: 58.06 MB / 0.5048 GB, free: 7.766 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger): time 0.007591/0.3543, allocations: 7.303 MB / 0.5119 GB, free: 2.664 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003235/0.3575, allocations: 1.72 MB / 0.5136 GB, free: 1.449 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005551/0.3581, allocations: 24.09 kB / 0.5136 GB, free: 1.441 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007027/0.3588, allocations: 234.2 kB / 0.5138 GB, free: 1.324 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001309/0.3602, allocations: 0.5709 MB / 0.5144 GB, free: 1 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000509/0.3607, allocations: 216.1 kB / 0.5146 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00151/0.3622, allocations: 1.265 MB / 0.5158 GB, free: 340 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004791/0.3627, allocations: 355.6 kB / 0.5162 GB, free: 204 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009983/0.3637, allocations: 0.5537 MB / 0.5167 GB, free: 15.94 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001128/0.3649, allocations: 0.6408 MB / 0.5173 GB, free: 15.7 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001545/0.365, allocations: 62.62 kB / 0.5174 GB, free: 15.7 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002423/0.3653, allocations: 63.81 kB / 0.5174 GB, free: 15.7 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004076/0.3657, allocations: 335.8 kB / 0.5178 GB, free: 15.58 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005682/0.3663, allocations: 430.6 kB / 0.5182 GB, free: 15.33 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001285/0.3676, allocations: 0.9213 MB / 0.5191 GB, free: 14.96 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.3676, allocations: 1.125 kB / 0.5191 GB, free: 14.96 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.3676, allocations: 0 / 0.5191 GB, free: 14.96 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.679e-05/0.3676, allocations: 0 / 0.5191 GB, free: 14.96 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 166 * Number of variables: 166 Notification: Performance of Generate backend data structure: time 0.002152/0.3698, allocations: 1.229 MB / 0.5203 GB, free: 14.1 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.601e-05/0.3698, allocations: 13.77 kB / 0.5203 GB, free: 14.1 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001955/0.37, allocations: 92.91 kB / 0.5204 GB, free: 14.05 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001227/0.3713, allocations: 0.7092 MB / 0.5211 GB, free: 13.63 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.502e-05/0.3713, allocations: 51.31 kB / 0.5211 GB, free: 13.61 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001069/0.3714, allocations: 65.92 kB / 0.5212 GB, free: 13.59 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001283/0.3727, allocations: 0.8054 MB / 0.522 GB, free: 13.23 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.821e-05/0.3728, allocations: 4.969 kB / 0.522 GB, free: 13.22 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.589e-05/0.3728, allocations: 27.36 kB / 0.522 GB, free: 13.2 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.837e-05/0.3729, allocations: 36.62 kB / 0.522 GB, free: 13.2 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001006/0.3739, allocations: 0.6157 MB / 0.5226 GB, free: 13 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003605/0.3775, allocations: 2.617 MB / 0.5252 GB, free: 11.27 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000957/0.3785, allocations: 0.6178 MB / 0.5258 GB, free: 10.99 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006209/0.3791, allocations: 379.6 kB / 0.5262 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.993e-05/0.3792, allocations: 5.312 kB / 0.5262 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006366/0.3798, allocations: 483.3 kB / 0.5266 GB, free: 10.57 MB / 398.1 MB Notification: Performance of pre-optimization done (n=63): time 2.264e-06/0.3798, allocations: 3.938 kB / 0.5266 GB, free: 10.56 MB / 398.1 MB Notification: Performance of matching and sorting (n=64): time 0.003116/0.383, allocations: 1.98 MB / 0.5286 GB, free: 9.441 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001487/0.3831, allocations: 255.2 kB / 0.5288 GB, free: 9.152 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007415/0.3839, allocations: 0.5589 MB / 0.5294 GB, free: 8.906 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.495e-05/0.3839, allocations: 38.14 kB / 0.5294 GB, free: 8.867 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003333/0.3843, allocations: 398.2 kB / 0.5298 GB, free: 8.555 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001882/0.3845, allocations: 211.8 kB / 0.53 GB, free: 8.391 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002006/0.3847, allocations: 141.8 kB / 0.5301 GB, free: 8.32 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001944/0.3849, allocations: 389 kB / 0.5305 GB, free: 7.973 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003466/0.3852, allocations: 224.5 kB / 0.5307 GB, free: 7.906 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005034/0.3857, allocations: 457.7 kB / 0.5311 GB, free: 7.551 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009471/0.3867, allocations: 0.7917 MB / 0.5319 GB, free: 6.934 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.3867, allocations: 1.156 kB / 0.5319 GB, free: 6.934 MB / 398.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.001582/0.3883, allocations: 0.9488 MB / 0.5328 GB, free: 6.5 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.606e-05/0.3884, allocations: 68.48 kB / 0.5329 GB, free: 6.434 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.436e-05/0.3884, allocations: 6.406 kB / 0.5329 GB, free: 6.434 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003947/0.3888, allocations: 113.6 kB / 0.533 GB, free: 6.395 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004939/0.3893, allocations: 151.7 kB / 0.5332 GB, free: 6.371 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003262/0.3926, allocations: 3.556 MB / 0.5366 GB, free: 2.969 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005397/0.3931, allocations: 39.41 kB / 0.5367 GB, free: 2.949 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.638e-05/0.3932, allocations: 52.56 kB / 0.5367 GB, free: 2.934 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 21 (system.initime,tapRelay1.cnt_2,$PRE.tapRelay1.cnt_2,tapRelay1.cnt_1,$PRE.tapRelay1.cnt_1,$whenCondition4,$whenCondition3,tapRelay2.cnt_2,$PRE.tapRelay2.cnt_2,tapRelay2.cnt_1,$PRE.tapRelay2.cnt_1,$whenCondition2,$whenCondition1,tapRelay1.tap_2,$PRE.tapRelay1.tap_2,tapRelay1.tap_1,$PRE.tapRelay1.tap_1,tapRelay2.tap_2,$PRE.tapRelay2.tap_2,tapRelay2.tap_1,$PRE.tapRelay2.tap_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005004/0.3937, allocations: 355.1 kB / 0.537 GB, free: 2.645 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001149/0.3939, allocations: 71.41 kB / 0.5371 GB, free: 2.609 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001138/0.395, allocations: 0.7857 MB / 0.5379 GB, free: 2.168 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.853e-06/0.395, allocations: 5.156 kB / 0.5379 GB, free: 2.168 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.154e-06/0.395, allocations: 1.281 kB / 0.5379 GB, free: 2.168 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.876e-06/0.395, allocations: 5.516 kB / 0.5379 GB, free: 2.164 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002212/0.3973, allocations: 1.572 MB / 0.5394 GB, free: 1.117 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/0.3973, allocations: 1.062 kB / 0.5394 GB, free: 1.117 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004776/0.3978, allocations: 105 kB / 0.5395 GB, free: 1.094 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.748e-06/0.3978, allocations: 8.031 kB / 0.5395 GB, free: 1.09 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.349e-05/0.3978, allocations: 24.36 kB / 0.5396 GB, free: 1.074 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.57e-06/0.3978, allocations: 4.156 kB / 0.5396 GB, free: 1.074 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.3978, allocations: 1.375 kB / 0.5396 GB, free: 1.074 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001558/0.3994, allocations: 1.196 MB / 0.5407 GB, free: 384 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002715/0.3997, allocations: 184.1 kB / 0.5409 GB, free: 216 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.399e-05/0.3998, allocations: 20.88 kB / 0.5409 GB, free: 204 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003278/0.4001, allocations: 35.16 kB / 0.541 GB, free: 184 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.825e-05/0.4002, allocations: 36.86 kB / 0.541 GB, free: 160 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.823e-05/0.4003, allocations: 62.27 kB / 0.5411 GB, free: 132 kB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004869/0.4008, allocations: 391.2 kB / 0.5414 GB, free: 15.9 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4008, allocations: 4.062 kB / 0.5414 GB, free: 15.9 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007953/0.4016, allocations: 181.6 kB / 0.5416 GB, free: 15.88 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (trafo1.i1,trafo2.i1) * Number of discrete variables: 13 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,tapRelay2.tap_1,tapRelay2.tap_2,tapRelay2.cnt_1,tapRelay2.cnt_2,tapRelay1.tap_1,tapRelay1.tap_2,tapRelay1.cnt_1,tapRelay1.cnt_2,system.initime) * Number of discrete states: 12 (tapRelay1.tap_2,tapRelay1.cnt_2,$whenCondition4,tapRelay1.tap_1,tapRelay1.cnt_1,$whenCondition3,tapRelay2.tap_2,tapRelay2.cnt_2,$whenCondition2,tapRelay2.tap_1,tapRelay2.cnt_1,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 2 * 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.0001604/0.4018, allocations: 125.7 kB / 0.5417 GB, free: 15.77 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001464/0.4033, allocations: 1.008 MB / 0.5427 GB, free: 15.11 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.4033, allocations: 0 / 0.5427 GB, free: 15.11 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005509/0.4038, allocations: 0.4926 MB / 0.5432 GB, free: 14.8 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008495/0.4047, allocations: 167.5 kB / 0.5434 GB, free: 14.71 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002558/0.4073, allocations: 1.614 MB / 0.5449 GB, free: 13.7 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000629/0.4079, allocations: 1.003 MB / 0.5459 GB, free: 12.86 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001507/0.4081, allocations: 65.36 kB / 0.546 GB, free: 12.84 MB / 414.1 MB Notification: Performance of SimCode: time 4.11e-07/0.4081, allocations: 1.5 kB / 0.546 GB, free: 12.84 MB / 414.1 MB Notification: Performance of Templates: time 0.01756/0.4256, allocations: 12.06 MB / 0.5577 GB, free: 1.02 MB / 414.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches