Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Transformation.TapChanger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Transformation.TapChanger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|meter1.alpha_v|meter1.p.1.|meter1.p.2.|meter1.p.3.|meter1.v_norm|meter12.alpha_v|meter12.p.1.|meter12.p.2.|meter12.p.3.|meter12.v_norm|meter22.alpha_v|meter22.p.1.|meter22.p.2.|meter22.p.3.|meter22.v_norm",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Transformation.TapChanger") translateModel(PowerSystems.Examples.AC3ph.Transformation.TapChanger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|meter1.alpha_v|meter1.p.1.|meter1.p.2.|meter1.p.3.|meter1.v_norm|meter12.alpha_v|meter12.p.1.|meter12.p.2.|meter12.p.3.|meter12.v_norm|meter22.alpha_v|meter22.p.1.|meter22.p.2.|meter22.p.3.|meter22.v_norm",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Transformation.TapChanger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001507/0.001507, allocations: 176.9 kB / 17.4 MB, free: 4.297 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.553/1.553, allocations: 205.4 MB / 223.6 MB, free: 8.93 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007887/0.0007885, allocations: 83.88 kB / 271.9 MB, free: 8.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1772/0.1772, allocations: 38.08 MB / 358.3 MB, free: 1.719 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005351/0.0005351, allocations: 8 kB / 425.2 MB, free: 37.36 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3704/0.371, allocations: 56.32 MB / 481.6 MB, free: 9.586 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.158/0.529, allocations: 110 MB / 0.5777 GB, free: 8.207 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002568/0.5293, allocations: 95.81 kB / 0.5778 GB, free: 8.117 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1427/0.672, allocations: 48.88 MB / 0.6255 GB, free: 6.617 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.515e-06/0.6721, allocations: 0 / 0.6255 GB, free: 6.617 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001439/0.6722, allocations: 43.94 kB / 0.6256 GB, free: 6.574 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 423 * Number of variables: 423 Notification: Performance of Generate backend data structure: time 0.005118/0.6774, allocations: 1.732 MB / 0.6273 GB, free: 4.77 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.407e-05/0.6774, allocations: 8.031 kB / 0.6273 GB, free: 4.762 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002725/0.6802, allocations: 442.3 kB / 0.6277 GB, free: 4.328 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0037/0.6839, allocations: 1.621 MB / 0.6293 GB, free: 2.66 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.224e-05/0.684, allocations: 102.7 kB / 0.6294 GB, free: 2.559 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002558/0.6842, allocations: 147.9 kB / 0.6295 GB, free: 2.414 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003444/0.6877, allocations: 2.261 MB / 0.6317 GB, free: 15.99 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.821e-05/0.6878, allocations: 11.94 kB / 0.6317 GB, free: 15.98 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001456/0.6879, allocations: 59.97 kB / 0.6318 GB, free: 15.92 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003386/0.6883, allocations: 186.7 kB / 0.632 GB, free: 15.74 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002704/0.691, allocations: 1.744 MB / 0.6337 GB, free: 13.99 MB / 474.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01121/0.7022, allocations: 9.298 MB / 0.6428 GB, free: 4.227 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002291/0.7045, allocations: 1.464 MB / 0.6442 GB, free: 2.73 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009905/0.7055, allocations: 0.6807 MB / 0.6449 GB, free: 2.047 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.01e-05/0.7056, allocations: 13 kB / 0.6449 GB, free: 2.035 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001303/0.7069, allocations: 0.9425 MB / 0.6458 GB, free: 1.051 MB / 474.7 MB Notification: Performance of pre-optimization done (n=142): time 3.476e-06/0.7069, allocations: 0 / 0.6458 GB, free: 1.051 MB / 474.7 MB Notification: Performance of matching and sorting (n=143): time 0.2705/0.9775, allocations: 4.333 MB / 0.65 GB, free: 122.5 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001081/0.9776, allocations: 286.8 kB / 0.6503 GB, free: 122.2 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001236/0.9789, allocations: 0.8724 MB / 0.6511 GB, free: 122 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 7.401e-05/0.979, allocations: 50.83 kB / 0.6512 GB, free: 122 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00059/0.9796, allocations: 0.7338 MB / 0.6519 GB, free: 121.7 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003774/0.9799, allocations: 493 kB / 0.6524 GB, free: 121.4 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.338e-05/0.98, allocations: 36.22 kB / 0.6524 GB, free: 121.4 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002371/0.9803, allocations: 432.8 kB / 0.6528 GB, free: 121.1 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001012/0.9813, allocations: 0.6218 MB / 0.6534 GB, free: 121.1 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001323/0.9826, allocations: 1.166 MB / 0.6546 GB, free: 120.5 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002668/0.9853, allocations: 2.043 MB / 0.6566 GB, free: 119.7 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.36e-05/0.9853, allocations: 7.781 kB / 0.6566 GB, free: 119.7 MB / 474.7 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.004912/0.9902, allocations: 2.549 MB / 0.6591 GB, free: 119.5 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.698e-05/0.9903, allocations: 70.84 kB / 0.6591 GB, free: 119.4 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003135/0.9935, allocations: 1.696 MB / 0.6608 GB, free: 119.3 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001597/0.9951, allocations: 0.5387 MB / 0.6613 GB, free: 119.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001178/0.9963, allocations: 334.8 kB / 0.6616 GB, free: 119.3 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009082/1.005, allocations: 8.701 MB / 0.6701 GB, free: 114.2 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00143/1.007, allocations: 88.06 kB / 0.6702 GB, free: 114.2 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002009/1.007, allocations: 95.67 kB / 0.6703 GB, free: 114.2 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 77 * Number of states: 0 () * Number of discrete variables: 21 (system.initime,$whenCondition3,$whenCondition4,$PRE.tapRelay1.cnt_1,tapRelay1.cnt_1,$PRE.tapRelay1.cnt_2,tapRelay1.cnt_2,$whenCondition1,$whenCondition2,$PRE.tapRelay2.cnt_1,tapRelay2.cnt_1,$PRE.tapRelay2.cnt_2,tapRelay2.cnt_2,$PRE.tapRelay2.tap_1,tapRelay2.tap_1,$PRE.tapRelay2.tap_2,tapRelay2.tap_2,$PRE.tapRelay1.tap_1,tapRelay1.tap_1,$PRE.tapRelay1.tap_2,tapRelay1.tap_2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (169): * Single equations (assignments): 160 * Array equations: 3 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 12,(2,100.0%) 11,(2,100.0%) 12,(2,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001058/1.008, allocations: 0.5982 MB / 0.6709 GB, free: 114.1 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002256/1.008, allocations: 123.2 kB / 0.671 GB, free: 114 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002743/1.011, allocations: 1.696 MB / 0.6727 GB, free: 113.8 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.281e-05/1.011, allocations: 20.22 kB / 0.6727 GB, free: 113.8 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/1.011, allocations: 1.344 kB / 0.6727 GB, free: 113.8 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.68e-05/1.011, allocations: 9.312 kB / 0.6727 GB, free: 113.8 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005473/1.017, allocations: 3.226 MB / 0.6758 GB, free: 112.6 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.013e-06/1.017, allocations: 3.719 kB / 0.6759 GB, free: 112.6 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001283/1.018, allocations: 313.4 kB / 0.6761 GB, free: 112.6 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.447e-06/1.018, allocations: 3.656 kB / 0.6762 GB, free: 112.6 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.271e-05/1.018, allocations: 36.28 kB / 0.6762 GB, free: 112.6 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.576e-06/1.018, allocations: 11.19 kB / 0.6762 GB, free: 112.6 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/1.018, allocations: 8 kB / 0.6762 GB, free: 112.6 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003026/1.021, allocations: 2.555 MB / 0.6787 GB, free: 111.5 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005874/1.022, allocations: 307 kB / 0.679 GB, free: 111.3 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001406/1.022, allocations: 36.92 kB / 0.679 GB, free: 111.3 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000576/1.022, allocations: 61.88 kB / 0.6791 GB, free: 111.2 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001618/1.023, allocations: 87.39 kB / 0.6792 GB, free: 111.2 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001164/1.023, allocations: 80.55 kB / 0.6792 GB, free: 111.2 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0007065/1.024, allocations: 0.5799 MB / 0.6798 GB, free: 111 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.4e-07/1.024, allocations: 0 / 0.6798 GB, free: 111 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001881/1.025, allocations: 470.4 kB / 0.6803 GB, free: 110.9 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (trafo1.i1[1],trafo1.i1[2],trafo1.i1[3],trafo2.i1[1],trafo2.i1[2],trafo2.i1[3]) * 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 (124): * Single equations (assignments): 118 * Array equations: 3 * Algorithm blocks: 2 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003702/1.026, allocations: 219.9 kB / 0.6805 GB, free: 110.8 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.003037/1.029, allocations: 2.433 MB / 0.6828 GB, free: 109.7 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/1.029, allocations: 0 / 0.6828 GB, free: 109.7 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009243/1.03, allocations: 0.9509 MB / 0.6838 GB, free: 109.3 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00118/1.031, allocations: 210.1 kB / 0.684 GB, free: 109.2 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004827/1.036, allocations: 4.144 MB / 0.688 GB, free: 107.1 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008478/1.037, allocations: 1.467 MB / 0.6895 GB, free: 106.3 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.001113/1.038, allocations: 467.4 kB / 0.6899 GB, free: 106.3 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000235/1.038, allocations: 92.2 kB / 0.69 GB, free: 106.3 MB / 474.7 MB Notification: Performance of SimCode: time 3.41e-07/1.038, allocations: 0 / 0.69 GB, free: 106.3 MB / 474.7 MB Notification: Performance of Templates: time 0.02205/1.06, allocations: 15.52 MB / 0.7051 GB, free: 105.4 MB / 474.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Transformation.TapChanger.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Transformation.TapChanger.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Transformation.TapChanger.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Transformation.TapChanger.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Transformation.TapChanger.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Transformation.TapChanger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Transformation.TapChanger.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Transformation.TapChanger_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Transformation.TapChanger.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Transformation.TapChanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches