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.001753/0.001753, allocations: 101.9 kB / 16.5 MB, free: 6.688 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.00203/0.002029, allocations: 193.9 kB / 17.42 MB, free: 6.09 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.387/1.387, allocations: 222.9 MB / 241.1 MB, free: 15.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1734/0.1734, allocations: 38.04 MB / 329.3 MB, free: 9.098 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001325/0.001326, allocations: 61.61 kB / 398.1 MB, free: 34.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1121, allocations: 58.07 MB / 456.2 MB, free: 8.543 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger): time 0.01056/0.1227, allocations: 8.942 MB / 465.1 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00443/0.1272, allocations: 2.224 MB / 467.3 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008775/0.1281, allocations: 63.56 kB / 467.4 MB, free: 13.26 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007353/0.1289, allocations: 218.8 kB / 467.6 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0013/0.1302, allocations: 0.5291 MB / 468.1 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004297/0.1306, allocations: 195.8 kB / 468.3 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001752/0.1324, allocations: 1.94 MB / 470.3 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003897/0.1328, allocations: 298.5 kB / 470.6 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007579/0.1336, allocations: 489.6 kB / 471 MB, free: 9.609 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000885/0.1345, allocations: 0.6774 MB / 471.7 MB, free: 8.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.934e-05/0.1346, allocations: 44 kB / 471.8 MB, free: 8.887 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001443/0.1347, allocations: 44 kB / 471.8 MB, free: 8.844 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002952/0.135, allocations: 315.1 kB / 472.1 MB, free: 8.535 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004004/0.1354, allocations: 417.7 kB / 472.5 MB, free: 8.125 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007035/0.1361, allocations: 0.8758 MB / 473.4 MB, free: 7.246 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.1362, allocations: 0 / 473.4 MB, free: 7.246 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.61e-07/0.1362, allocations: 0 / 473.4 MB, free: 7.246 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.937e-06/0.1362, allocations: 0 / 473.4 MB, free: 7.246 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.00186/0.138, allocations: 1.225 MB / 474.6 MB, free: 5.953 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.738e-05/0.1381, allocations: 12.03 kB / 474.6 MB, free: 5.941 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001512/0.1382, allocations: 91.81 kB / 474.7 MB, free: 5.852 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001014/0.1393, allocations: 0.6642 MB / 475.4 MB, free: 5.148 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.701e-05/0.1393, allocations: 53.25 kB / 475.4 MB, free: 5.098 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.828e-05/0.1394, allocations: 60 kB / 475.5 MB, free: 5.039 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001154/0.1406, allocations: 0.8137 MB / 476.3 MB, free: 4.188 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.623e-05/0.1406, allocations: 0 / 476.3 MB, free: 4.188 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.629e-05/0.1407, allocations: 27.94 kB / 476.3 MB, free: 4.16 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.015e-05/0.1407, allocations: 37.3 kB / 476.4 MB, free: 4.121 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009363/0.1417, allocations: 0.614 MB / 477 MB, free: 3.508 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003277/0.1449, allocations: 2.634 MB / 479.6 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008866/0.1459, allocations: 0.6131 MB / 480.2 MB, free: 136 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006055/0.1465, allocations: 376.1 kB / 480.6 MB, free: 15.75 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.106e-05/0.1465, allocations: 8.438 kB / 480.6 MB, free: 15.74 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006007/0.1471, allocations: 490.8 kB / 481.1 MB, free: 15.22 MB / 366.1 MB Notification: Performance of pre-optimization done (n=63): time 2.855e-06/0.1471, allocations: 0 / 481.1 MB, free: 15.22 MB / 366.1 MB Notification: Performance of matching and sorting (n=64): time 0.002883/0.15, allocations: 1.985 MB / 483.1 MB, free: 13.15 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001296/0.1502, allocations: 259.8 kB / 483.3 MB, free: 12.84 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006401/0.1508, allocations: 0.5663 MB / 483.9 MB, free: 12.26 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.909e-05/0.1509, allocations: 45.64 kB / 483.9 MB, free: 12.21 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002978/0.1512, allocations: 391.5 kB / 484.3 MB, free: 11.82 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001705/0.1514, allocations: 213 kB / 484.5 MB, free: 11.61 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001916/0.1516, allocations: 146.6 kB / 484.7 MB, free: 11.46 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001632/0.1517, allocations: 390.8 kB / 485.1 MB, free: 11.07 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003434/0.1521, allocations: 225.9 kB / 485.3 MB, free: 10.85 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004976/0.1526, allocations: 453.8 kB / 485.7 MB, free: 10.3 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008746/0.1535, allocations: 0.7973 MB / 486.5 MB, free: 9.383 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.1535, allocations: 0 / 486.5 MB, free: 9.383 MB / 366.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.001501/0.155, allocations: 0.952 MB / 487.5 MB, free: 8.406 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001091/0.1551, allocations: 67.39 kB / 487.5 MB, free: 8.328 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.33e-05/0.1551, allocations: 8 kB / 487.5 MB, free: 8.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004045/0.1555, allocations: 109.5 kB / 487.6 MB, free: 8.207 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005/0.156, allocations: 144.2 kB / 487.8 MB, free: 8.066 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002867/0.1589, allocations: 3.004 MB / 490.8 MB, free: 4.797 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004557/0.1594, allocations: 36.03 kB / 490.8 MB, free: 4.762 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.562e-05/0.1595, allocations: 55.97 kB / 490.9 MB, free: 4.707 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.0004151/0.1599, allocations: 358.5 kB / 491.2 MB, free: 4.336 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.903e-05/0.16, allocations: 75.14 kB / 491.3 MB, free: 4.262 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001104/0.1611, allocations: 0.7857 MB / 492.1 MB, free: 3.449 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.991e-06/0.1611, allocations: 12 kB / 492.1 MB, free: 3.438 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.733e-06/0.1611, allocations: 0 / 492.1 MB, free: 3.438 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.1611, allocations: 3.984 kB / 492.1 MB, free: 3.434 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002001/0.1631, allocations: 1.543 MB / 493.6 MB, free: 1.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.1632, allocations: 0 / 493.6 MB, free: 1.82 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005146/0.1637, allocations: 111.8 kB / 493.8 MB, free: 1.711 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.871e-06/0.1637, allocations: 4 kB / 493.8 MB, free: 1.707 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.275e-05/0.1638, allocations: 24.02 kB / 493.8 MB, free: 1.684 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.739e-06/0.1638, allocations: 4 kB / 493.8 MB, free: 1.68 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.1638, allocations: 3.938 kB / 493.8 MB, free: 1.676 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00155/0.1653, allocations: 1.214 MB / 495 MB, free: 436 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002122/0.1656, allocations: 184.1 kB / 495.2 MB, free: 232 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.413e-05/0.1656, allocations: 16 kB / 495.2 MB, free: 216 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003047/0.166, allocations: 32.03 kB / 495.2 MB, free: 184 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001075/0.1661, allocations: 44.33 kB / 495.3 MB, free: 140 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.011e-05/0.1662, allocations: 59.86 kB / 495.3 MB, free: 80 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004305/0.1666, allocations: 387.1 kB / 495.7 MB, free: 15.71 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1666, allocations: 0 / 495.7 MB, free: 15.71 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006224/0.1672, allocations: 180 kB / 495.9 MB, free: 15.53 MB / 382.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.0001566/0.1674, allocations: 135 kB / 496 MB, free: 15.39 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001431/0.1688, allocations: 1.007 MB / 497 MB, free: 14.33 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.1689, allocations: 0 / 497 MB, free: 14.33 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005939/0.1695, allocations: 497.2 kB / 497.5 MB, free: 13.82 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000843/0.1703, allocations: 152.2 kB / 497.7 MB, free: 13.67 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002545/0.1729, allocations: 1.828 MB / 499.5 MB, free: 11.8 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007524/0.1736, allocations: 1.009 MB / 0.4888 GB, free: 10.77 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004993/0.1741, allocations: 157.8 kB / 0.4889 GB, free: 10.61 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001235/0.1743, allocations: 51.38 kB / 0.489 GB, free: 10.56 MB / 382.1 MB Notification: Performance of SimCode: time 1.292e-06/0.1743, allocations: 4 kB / 0.489 GB, free: 10.55 MB / 382.1 MB Notification: Performance of Templates: time 0.01406/0.1883, allocations: 6.922 MB / 0.4957 GB, free: 3.703 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/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