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.001106/0.001106, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001141/0.001141, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.323/1.323, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1831/0.1831, allocations: 38.04 MB / 330.4 MB, free: 8.852 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001404/0.001404, allocations: 64.52 kB / 399.5 MB, free: 34.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09169/0.09312, allocations: 58.06 MB / 457.5 MB, free: 8.066 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger): time 0.009042/0.1022, allocations: 7.294 MB / 464.8 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002988/0.1052, allocations: 1.714 MB / 466.5 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005351/0.1058, allocations: 27.81 kB / 466.6 MB, free: 14.99 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007647/0.1066, allocations: 234.4 kB / 466.8 MB, free: 14.76 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001378/0.108, allocations: 0.5715 MB / 467.4 MB, free: 14.19 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004985/0.1085, allocations: 219.6 kB / 467.6 MB, free: 13.97 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001434/0.11, allocations: 1.254 MB / 468.8 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004567/0.1104, allocations: 366.4 kB / 469.2 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008369/0.1113, allocations: 0.5368 MB / 469.7 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001009/0.1123, allocations: 0.6463 MB / 470.4 MB, free: 11.17 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000159/0.1125, allocations: 60 kB / 470.4 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002156/0.1127, allocations: 67.94 kB / 470.5 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003484/0.1131, allocations: 339 kB / 470.8 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005286/0.1136, allocations: 433.8 kB / 471.3 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008363/0.1144, allocations: 0.8992 MB / 472.2 MB, free: 9.387 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.1145, allocations: 0 / 472.2 MB, free: 9.387 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1145, allocations: 0 / 472.2 MB, free: 9.387 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.434e-05/0.1145, allocations: 0 / 472.2 MB, free: 9.387 MB / 350.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.00203/0.1165, allocations: 1.221 MB / 473.4 MB, free: 8.098 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.748e-05/0.1166, allocations: 19.89 kB / 473.4 MB, free: 8.078 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001737/0.1168, allocations: 103.8 kB / 473.5 MB, free: 7.977 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001048/0.1178, allocations: 0.6564 MB / 474.2 MB, free: 7.281 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.793e-05/0.1179, allocations: 53.25 kB / 474.2 MB, free: 7.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.229e-05/0.118, allocations: 64 kB / 474.3 MB, free: 7.168 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001136/0.1191, allocations: 0.8021 MB / 475.1 MB, free: 6.328 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.587e-05/0.1191, allocations: 0 / 475.1 MB, free: 6.328 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.79e-05/0.1192, allocations: 28 kB / 475.1 MB, free: 6.301 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.408e-05/0.1192, allocations: 33.3 kB / 475.1 MB, free: 6.266 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009401/0.1202, allocations: 0.6256 MB / 475.8 MB, free: 5.637 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003349/0.1236, allocations: 2.63 MB / 478.4 MB, free: 2.891 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000898/0.1245, allocations: 0.605 MB / 479 MB, free: 2.27 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005936/0.1251, allocations: 384 kB / 479.4 MB, free: 1.887 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.008e-05/0.1251, allocations: 8.422 kB / 479.4 MB, free: 1.879 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000548/0.1257, allocations: 479.1 kB / 479.9 MB, free: 1.367 MB / 350.1 MB Notification: Performance of pre-optimization done (n=63): time 2.635e-06/0.1257, allocations: 4 kB / 479.9 MB, free: 1.363 MB / 350.1 MB Notification: Performance of matching and sorting (n=64): time 0.002782/0.1285, allocations: 1.985 MB / 481.8 MB, free: 15.29 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001225/0.1286, allocations: 259.8 kB / 482.1 MB, free: 14.98 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005944/0.1292, allocations: 0.5625 MB / 482.7 MB, free: 14.41 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.631e-05/0.1293, allocations: 37.7 kB / 482.7 MB, free: 14.36 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002644/0.1295, allocations: 403.4 kB / 483.1 MB, free: 13.96 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001577/0.1297, allocations: 209.3 kB / 483.3 MB, free: 13.75 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001865/0.1299, allocations: 146.5 kB / 483.4 MB, free: 13.61 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001647/0.1301, allocations: 386.8 kB / 483.8 MB, free: 13.22 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003506/0.1304, allocations: 225.8 kB / 484 MB, free: 13 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004738/0.1309, allocations: 461.8 kB / 484.5 MB, free: 12.45 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008631/0.1318, allocations: 0.7973 MB / 485.3 MB, free: 11.52 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.1318, allocations: 4 kB / 485.3 MB, free: 11.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.001448/0.1332, allocations: 0.9442 MB / 486.2 MB, free: 10.55 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.71e-05/0.1333, allocations: 63.39 kB / 486.3 MB, free: 10.47 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.314e-05/0.1333, allocations: 8 kB / 486.3 MB, free: 10.46 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003751/0.1337, allocations: 118 kB / 486.4 MB, free: 10.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004882/0.1342, allocations: 147.7 kB / 486.6 MB, free: 10.2 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002749/0.137, allocations: 3.236 MB / 489.8 MB, free: 6.684 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003934/0.1374, allocations: 35.98 kB / 489.8 MB, free: 6.648 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.699e-05/0.1375, allocations: 55.95 kB / 489.9 MB, free: 6.594 MB / 366.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.0003686/0.1378, allocations: 352.2 kB / 490.2 MB, free: 6.23 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.711e-05/0.1379, allocations: 71.16 kB / 490.3 MB, free: 6.16 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001054/0.139, allocations: 0.7935 MB / 491.1 MB, free: 5.348 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.411e-06/0.139, allocations: 4 kB / 491.1 MB, free: 5.344 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.694e-06/0.139, allocations: 0 / 491.1 MB, free: 5.344 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.398e-05/0.139, allocations: 3.984 kB / 491.1 MB, free: 5.34 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001971/0.141, allocations: 1.539 MB / 492.6 MB, free: 3.727 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.721e-06/0.141, allocations: 4 kB / 492.6 MB, free: 3.723 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005116/0.1416, allocations: 115.9 kB / 492.8 MB, free: 3.609 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.698e-06/0.1416, allocations: 0 / 492.8 MB, free: 3.609 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.669e-05/0.1416, allocations: 27.92 kB / 492.8 MB, free: 3.582 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.1416, allocations: 0 / 492.8 MB, free: 3.582 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.1416, allocations: 0 / 492.8 MB, free: 3.582 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001511/0.1432, allocations: 1.218 MB / 494 MB, free: 2.328 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002203/0.1434, allocations: 184.2 kB / 494.2 MB, free: 2.129 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.23e-05/0.1435, allocations: 12 kB / 494.2 MB, free: 2.117 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003134/0.1438, allocations: 31.97 kB / 494.2 MB, free: 2.086 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.656e-05/0.1439, allocations: 36.39 kB / 494.3 MB, free: 2.051 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.573e-05/0.144, allocations: 63.86 kB / 494.3 MB, free: 1.988 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004077/0.1444, allocations: 395.1 kB / 494.7 MB, free: 1.609 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1444, allocations: 0 / 494.7 MB, free: 1.609 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005847/0.145, allocations: 184 kB / 494.9 MB, free: 1.43 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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.000134/0.1451, allocations: 128.6 kB / 495 MB, free: 1.297 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001617/0.1468, allocations: 1.097 MB / 496.1 MB, free: 152 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.1468, allocations: 5.312 kB / 496.1 MB, free: 148 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005326/0.1473, allocations: 493.2 kB / 496.6 MB, free: 15.64 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007706/0.1481, allocations: 172.8 kB / 496.8 MB, free: 15.47 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002351/0.1505, allocations: 1.615 MB / 498.4 MB, free: 13.82 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006084/0.1511, allocations: 1.013 MB / 499.4 MB, free: 12.77 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000139/0.1512, allocations: 51.44 kB / 499.4 MB, free: 12.72 MB / 382.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1512, allocations: 0 / 499.4 MB, free: 12.72 MB / 382.1 MB Notification: Performance of Templates: time 0.01593/0.1672, allocations: 12.05 MB / 0.4995 GB, free: 0.6953 MB / 382.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