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.0016/0.0016, allocations: 113.2 kB / 17.07 MB, free: 5.945 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.001788/0.001788, allocations: 194.8 kB / 18 MB, free: 5.035 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.572/1.572, 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.1772/0.1772, allocations: 38.05 MB / 329.9 MB, free: 8.723 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001359/0.001359, allocations: 59.91 kB / 458.1 MB, free: 6.84 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4213/0.4226, allocations: 58.05 MB / 0.5041 GB, free: 7.73 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger): time 0.007148/0.4298, allocations: 7.316 MB / 0.5112 GB, free: 2.625 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002622/0.4325, allocations: 1.714 MB / 0.5129 GB, free: 1.414 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003145/0.4328, allocations: 25.34 kB / 0.5129 GB, free: 1.406 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006089/0.4334, allocations: 237.1 kB / 0.5132 GB, free: 1.285 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001122/0.4346, allocations: 0.5834 MB / 0.5137 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004683/0.4351, allocations: 215.9 kB / 0.5139 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001134/0.4362, allocations: 1.267 MB / 0.5152 GB, free: 292 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004037/0.4366, allocations: 346.7 kB / 0.5155 GB, free: 164 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000696/0.4373, allocations: 0.5577 MB / 0.5161 GB, free: 15.9 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008983/0.4382, allocations: 0.6411 MB / 0.5167 GB, free: 15.66 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001288/0.4384, allocations: 62.12 kB / 0.5167 GB, free: 15.66 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001867/0.4386, allocations: 67.81 kB / 0.5168 GB, free: 15.65 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003613/0.4389, allocations: 337.2 kB / 0.5171 GB, free: 15.53 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005561/0.4395, allocations: 429.5 kB / 0.5175 GB, free: 15.28 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00111/0.4406, allocations: 0.9177 MB / 0.5184 GB, free: 14.91 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.4406, allocations: 0.75 kB / 0.5184 GB, free: 14.91 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.4406, allocations: 0 / 0.5184 GB, free: 14.91 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.353e-05/0.4407, allocations: 0 / 0.5184 GB, free: 14.91 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.002003/0.4427, allocations: 1.226 MB / 0.5196 GB, free: 14.06 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.74e-05/0.4427, allocations: 14.08 kB / 0.5196 GB, free: 14.06 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000151/0.4429, allocations: 92.62 kB / 0.5197 GB, free: 14.01 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001219/0.4441, allocations: 0.7112 MB / 0.5204 GB, free: 13.59 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.775e-05/0.4442, allocations: 51.88 kB / 0.5205 GB, free: 13.57 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001095/0.4443, allocations: 62.22 kB / 0.5205 GB, free: 13.55 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001269/0.4456, allocations: 0.8101 MB / 0.5213 GB, free: 13.18 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.877e-05/0.4456, allocations: 5.031 kB / 0.5213 GB, free: 13.18 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.987e-05/0.4456, allocations: 23.47 kB / 0.5214 GB, free: 13.16 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.263e-05/0.4457, allocations: 36.22 kB / 0.5214 GB, free: 13.16 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00102/0.4467, allocations: 0.6132 MB / 0.522 GB, free: 12.96 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003893/0.4506, allocations: 2.62 MB / 0.5245 GB, free: 11.23 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001031/0.4517, allocations: 0.616 MB / 0.5251 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006477/0.4523, allocations: 374.5 kB / 0.5255 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.62e-05/0.4524, allocations: 6.188 kB / 0.5255 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008546/0.4533, allocations: 491.4 kB / 0.526 GB, free: 10.52 MB / 398.1 MB Notification: Performance of pre-optimization done (n=63): time 2.945e-06/0.4533, allocations: 0 / 0.526 GB, free: 10.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=64): time 0.004274/0.4575, allocations: 1.972 MB / 0.5279 GB, free: 9.41 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000195/0.4578, allocations: 254.7 kB / 0.5281 GB, free: 9.121 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00101/0.4588, allocations: 0.5642 MB / 0.5287 GB, free: 8.871 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.185e-05/0.4589, allocations: 42.19 kB / 0.5287 GB, free: 8.828 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004188/0.4593, allocations: 397.6 kB / 0.5291 GB, free: 8.516 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002486/0.4595, allocations: 211.9 kB / 0.5293 GB, free: 8.352 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002844/0.4598, allocations: 146 kB / 0.5295 GB, free: 8.277 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002354/0.4601, allocations: 381.2 kB / 0.5298 GB, free: 7.938 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005402/0.4606, allocations: 223.1 kB / 0.53 GB, free: 7.871 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007733/0.4614, allocations: 461.5 kB / 0.5305 GB, free: 7.512 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001457/0.4629, allocations: 0.7925 MB / 0.5312 GB, free: 6.895 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.565e-06/0.4629, allocations: 6.219 kB / 0.5313 GB, free: 6.891 MB / 398.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.002557/0.4655, allocations: 0.9531 MB / 0.5322 GB, free: 6.453 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.899e-05/0.4656, allocations: 63.11 kB / 0.5322 GB, free: 6.391 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.24e-05/0.4656, allocations: 6.594 kB / 0.5323 GB, free: 6.391 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000579/0.4662, allocations: 113.9 kB / 0.5324 GB, free: 6.352 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008132/0.467, allocations: 144.5 kB / 0.5325 GB, free: 6.336 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004639/0.4717, allocations: 3.565 MB / 0.536 GB, free: 2.934 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009476/0.4727, allocations: 34.45 kB / 0.536 GB, free: 2.918 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001447/0.4728, allocations: 57.52 kB / 0.5361 GB, free: 2.898 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.0009189/0.4738, allocations: 351.3 kB / 0.5364 GB, free: 2.613 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000193/0.474, allocations: 71.16 kB / 0.5365 GB, free: 2.578 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001831/0.4758, allocations: 0.7853 MB / 0.5372 GB, free: 2.137 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.668e-06/0.4758, allocations: 5.656 kB / 0.5372 GB, free: 2.137 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.4758, allocations: 1.375 kB / 0.5372 GB, free: 2.137 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.578e-06/0.4759, allocations: 3.984 kB / 0.5372 GB, free: 2.133 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003787/0.4797, allocations: 1.573 MB / 0.5388 GB, free: 1.086 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.563e-06/0.4797, allocations: 1.312 kB / 0.5388 GB, free: 1.086 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006741/0.4804, allocations: 117.1 kB / 0.5389 GB, free: 1.051 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.386e-05/0.4804, allocations: 7.094 kB / 0.5389 GB, free: 1.047 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.42e-05/0.4805, allocations: 16.81 kB / 0.5389 GB, free: 1.039 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.675e-06/0.4805, allocations: 3.906 kB / 0.5389 GB, free: 1.039 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.46e-06/0.4805, allocations: 5.141 kB / 0.5389 GB, free: 1.035 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00237/0.4829, allocations: 1.192 MB / 0.5401 GB, free: 348 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004304/0.4833, allocations: 185.7 kB / 0.5403 GB, free: 180 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00018/0.4835, allocations: 20 kB / 0.5403 GB, free: 168 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004693/0.484, allocations: 35 kB / 0.5403 GB, free: 148 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001379/0.4841, allocations: 41.81 kB / 0.5404 GB, free: 120 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001295/0.4843, allocations: 62.61 kB / 0.5404 GB, free: 92 kB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007233/0.485, allocations: 390.5 kB / 0.5408 GB, free: 15.86 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.485, allocations: 0 / 0.5408 GB, free: 15.86 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001562/0.4866, allocations: 177.7 kB / 0.541 GB, free: 15.84 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.0002027/0.4868, allocations: 128.5 kB / 0.5411 GB, free: 15.73 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002538/0.4893, allocations: 1.01 MB / 0.5421 GB, free: 15.07 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.648e-06/0.4894, allocations: 0 / 0.5421 GB, free: 15.07 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009754/0.4904, allocations: 0.4957 MB / 0.5426 GB, free: 14.76 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001009/0.4914, allocations: 152.6 kB / 0.5427 GB, free: 14.68 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003912/0.4953, allocations: 1.539 MB / 0.5442 GB, free: 13.73 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001064/0.4964, allocations: 1.011 MB / 0.5452 GB, free: 12.89 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000686/0.4971, allocations: 157.5 kB / 0.5453 GB, free: 12.81 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001724/0.4973, allocations: 54.2 kB / 0.5454 GB, free: 12.8 MB / 414.1 MB Notification: Performance of SimCode: time 1.162e-06/0.4973, allocations: 0 / 0.5454 GB, free: 12.8 MB / 414.1 MB Notification: Performance of Templates: time 0.0197/0.517, allocations: 7.569 MB / 0.5528 GB, free: 5.465 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.mat","/var/lib/jenkins/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