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.001628/0.001628, allocations: 109.5 kB / 17.68 MB, free: 5.332 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.001824/0.001824, allocations: 190.9 kB / 18.62 MB, free: 4.41 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.669/1.669, allocations: 222.9 MB / 242.3 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.2474/0.2474, allocations: 38.05 MB / 330.5 MB, free: 8.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001328/0.001328, allocations: 65.47 kB / 400.2 MB, free: 33.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1698/0.1712, allocations: 58.06 MB / 458.3 MB, free: 7.34 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger): time 0.01006/0.1813, allocations: 7.305 MB / 465.6 MB, free: 0 / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003173/0.1846, allocations: 1.714 MB / 467.3 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003472/0.185, allocations: 31.81 kB / 467.4 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006883/0.1857, allocations: 234.4 kB / 467.6 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001312/0.187, allocations: 0.5676 MB / 468.2 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004612/0.1875, allocations: 211.7 kB / 468.4 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001408/0.1889, allocations: 1.262 MB / 469.6 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000626/0.1896, allocations: 358.5 kB / 470 MB, free: 11.63 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007994/0.1904, allocations: 0.5484 MB / 470.5 MB, free: 11.08 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009192/0.1913, allocations: 0.6424 MB / 471.2 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001007/0.1914, allocations: 64 kB / 471.2 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001369/0.1916, allocations: 67.94 kB / 471.3 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003216/0.1919, allocations: 335.1 kB / 471.6 MB, free: 9.977 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004997/0.1924, allocations: 429.8 kB / 472 MB, free: 9.555 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009654/0.1934, allocations: 0.9186 MB / 473 MB, free: 8.633 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.788e-06/0.1934, allocations: 0 / 473 MB, free: 8.633 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.1934, allocations: 3.938 kB / 473 MB, free: 8.629 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.391e-05/0.1934, allocations: 0 / 473 MB, free: 8.629 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.002071/0.1955, allocations: 1.225 MB / 474.2 MB, free: 7.336 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.533e-05/0.1955, allocations: 15.89 kB / 474.2 MB, free: 7.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001508/0.1957, allocations: 91.81 kB / 474.3 MB, free: 7.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001254/0.197, allocations: 0.711 MB / 475 MB, free: 6.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.003e-05/0.197, allocations: 57.19 kB / 475.1 MB, free: 6.426 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001108/0.1972, allocations: 60 kB / 475.1 MB, free: 6.367 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001164/0.1983, allocations: 0.8099 MB / 475.9 MB, free: 5.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.785e-05/0.1984, allocations: 0 / 475.9 MB, free: 5.52 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.418e-05/0.1984, allocations: 24 kB / 476 MB, free: 5.496 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.952e-05/0.1985, allocations: 37.3 kB / 476 MB, free: 5.457 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009671/0.1995, allocations: 0.6101 MB / 476.6 MB, free: 4.844 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003685/0.2032, allocations: 2.626 MB / 479.2 MB, free: 2.102 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001038/0.2042, allocations: 0.6089 MB / 479.8 MB, free: 1.477 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006366/0.2049, allocations: 376 kB / 480.2 MB, free: 1.102 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.872e-05/0.2049, allocations: 8.438 kB / 480.2 MB, free: 1.094 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000606/0.2055, allocations: 483 kB / 480.7 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of pre-optimization done (n=63): time 1.964e-06/0.2055, allocations: 0 / 480.7 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of matching and sorting (n=64): time 0.002939/0.2085, allocations: 1.985 MB / 482.7 MB, free: 14.5 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001396/0.2086, allocations: 259.8 kB / 482.9 MB, free: 14.19 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006166/0.2093, allocations: 0.5586 MB / 483.5 MB, free: 13.62 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.216e-05/0.2093, allocations: 41.7 kB / 483.5 MB, free: 13.58 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003064/0.2096, allocations: 403.4 kB / 483.9 MB, free: 13.18 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001852/0.2098, allocations: 205.2 kB / 484.1 MB, free: 12.97 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001935/0.21, allocations: 150.5 kB / 484.3 MB, free: 12.82 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002107/0.2102, allocations: 378.8 kB / 484.6 MB, free: 12.44 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003634/0.2106, allocations: 229.9 kB / 484.9 MB, free: 12.21 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005803/0.2112, allocations: 457.8 kB / 485.3 MB, free: 11.67 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00105/0.2123, allocations: 0.8051 MB / 486.1 MB, free: 10.73 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.566e-06/0.2123, allocations: 3.938 kB / 486.1 MB, free: 10.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.001593/0.2139, allocations: 0.9443 MB / 487.1 MB, free: 9.762 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.012e-05/0.2139, allocations: 71.39 kB / 487.1 MB, free: 9.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.484e-05/0.214, allocations: 8 kB / 487.1 MB, free: 9.672 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003849/0.2143, allocations: 105.6 kB / 487.2 MB, free: 9.562 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004894/0.2148, allocations: 148 kB / 487.4 MB, free: 9.418 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003113/0.218, allocations: 3.232 MB / 490.6 MB, free: 5.906 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004524/0.2184, allocations: 39.97 kB / 490.7 MB, free: 5.867 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.243e-05/0.2185, allocations: 51.97 kB / 490.7 MB, free: 5.816 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.0004998/0.219, allocations: 358.6 kB / 491.1 MB, free: 5.445 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.829e-05/0.2191, allocations: 71.16 kB / 491.1 MB, free: 5.375 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001127/0.2203, allocations: 0.7896 MB / 491.9 MB, free: 4.566 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.55e-06/0.2203, allocations: 8 kB / 491.9 MB, free: 4.559 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.964e-06/0.2203, allocations: 0 / 491.9 MB, free: 4.559 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.684e-06/0.2203, allocations: 4.172 kB / 491.9 MB, free: 4.555 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002188/0.2225, allocations: 1.546 MB / 493.5 MB, free: 2.934 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.2225, allocations: 0 / 493.5 MB, free: 2.934 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005157/0.2231, allocations: 119.9 kB / 493.6 MB, free: 2.816 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.2231, allocations: 0 / 493.6 MB, free: 2.816 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.2e-05/0.2231, allocations: 16 kB / 493.6 MB, free: 2.801 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.911e-06/0.2231, allocations: 7.984 kB / 493.6 MB, free: 2.793 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2231, allocations: 0 / 493.6 MB, free: 2.793 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00164/0.2248, allocations: 1.218 MB / 494.8 MB, free: 1.539 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002891/0.2251, allocations: 184.2 kB / 495 MB, free: 1.34 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.612e-05/0.2252, allocations: 12 kB / 495 MB, free: 1.328 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003105/0.2255, allocations: 31.97 kB / 495.1 MB, free: 1.297 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001108/0.2256, allocations: 40.38 kB / 495.1 MB, free: 1.258 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.494e-05/0.2257, allocations: 67.84 kB / 495.2 MB, free: 1.191 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004736/0.2262, allocations: 391.1 kB / 495.5 MB, free: 0.8164 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.2262, allocations: 4 kB / 495.5 MB, free: 0.8125 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006818/0.2269, allocations: 180 kB / 495.7 MB, free: 0.6367 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.0001855/0.2271, allocations: 124.8 kB / 495.8 MB, free: 0.5078 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001539/0.2286, allocations: 1.015 MB / 496.9 MB, free: 15.44 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.45e-06/0.2286, allocations: 1.312 kB / 496.9 MB, free: 15.44 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005541/0.2292, allocations: 497.1 kB / 497.3 MB, free: 14.93 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007863/0.23, allocations: 160.4 kB / 497.5 MB, free: 14.78 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002392/0.2324, allocations: 1.539 MB / 499 MB, free: 13.2 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007963/0.2332, allocations: 1.009 MB / 0.4883 GB, free: 12.16 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004035/0.2336, allocations: 161.8 kB / 0.4885 GB, free: 12 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001219/0.2337, allocations: 51.44 kB / 0.4885 GB, free: 11.95 MB / 382.1 MB Notification: Performance of SimCode: time 3.4e-07/0.2338, allocations: 0 / 0.4885 GB, free: 11.95 MB / 382.1 MB Notification: Performance of Templates: time 0.01602/0.2498, allocations: 7.45 MB / 0.4958 GB, free: 4.574 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 -s cvode -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