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.001579/0.001579, allocations: 114.4 kB / 17.69 MB, free: 5.309 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.001751/0.001751, allocations: 191 kB / 18.63 MB, free: 4.375 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.374/1.374, allocations: 222.9 MB / 242.3 MB, free: 15.31 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.177/0.177, allocations: 38.03 MB / 330.5 MB, free: 8.852 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001224/0.001224, allocations: 61.3 kB / 400.3 MB, free: 33.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.1102, allocations: 58.06 MB / 458.3 MB, free: 7.406 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger): time 0.008214/0.1184, allocations: 7.294 MB / 465.6 MB, free: 76 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00303/0.1215, allocations: 1.722 MB / 467.3 MB, free: 14.35 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000376/0.1219, allocations: 27.81 kB / 467.4 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000644/0.1226, allocations: 234.4 kB / 467.6 MB, free: 14.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00125/0.1238, allocations: 0.5715 MB / 468.2 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004714/0.1243, allocations: 211.7 kB / 468.4 MB, free: 13.31 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00126/0.1256, allocations: 1.266 MB / 469.6 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004466/0.126, allocations: 350.5 kB / 470 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000683/0.1267, allocations: 0.5484 MB / 470.5 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008288/0.1276, allocations: 0.6501 MB / 471.2 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.945e-05/0.1277, allocations: 64 kB / 471.2 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001285/0.1278, allocations: 64 kB / 471.3 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004074/0.1282, allocations: 327.1 kB / 471.6 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005415/0.1288, allocations: 433.7 kB / 472 MB, free: 9.625 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001212/0.13, allocations: 0.9186 MB / 473 MB, free: 8.703 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.13, allocations: 0 / 473 MB, free: 8.703 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.1301, allocations: 0 / 473 MB, free: 8.703 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.425e-05/0.1301, allocations: 0 / 473 MB, free: 8.703 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.002761/0.1328, allocations: 1.221 MB / 474.2 MB, free: 7.414 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.932e-05/0.1329, allocations: 11.89 kB / 474.2 MB, free: 7.402 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000218/0.1331, allocations: 95.81 kB / 474.3 MB, free: 7.309 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00182/0.135, allocations: 0.7226 MB / 475 MB, free: 6.547 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.791e-05/0.1351, allocations: 45.25 kB / 475.1 MB, free: 6.504 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001421/0.1352, allocations: 64 kB / 475.1 MB, free: 6.441 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001721/0.1369, allocations: 0.8099 MB / 475.9 MB, free: 5.594 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.589e-05/0.137, allocations: 8 kB / 475.9 MB, free: 5.586 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.339e-05/0.1371, allocations: 24 kB / 476 MB, free: 5.562 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.272e-05/0.1372, allocations: 29.31 kB / 476 MB, free: 5.531 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001441/0.1386, allocations: 0.6256 MB / 476.6 MB, free: 4.902 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005292/0.1439, allocations: 2.622 MB / 479.2 MB, free: 2.164 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001404/0.1453, allocations: 0.6078 MB / 479.8 MB, free: 1.543 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008574/0.1462, allocations: 376 kB / 480.2 MB, free: 1.168 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.564e-05/0.1463, allocations: 8.438 kB / 480.2 MB, free: 1.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008443/0.1471, allocations: 491 kB / 480.7 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of pre-optimization done (n=63): time 3.406e-06/0.1472, allocations: 0 / 480.7 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of matching and sorting (n=64): time 0.004456/0.1516, allocations: 1.989 MB / 482.7 MB, free: 14.56 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001686/0.1518, allocations: 251.8 kB / 482.9 MB, free: 14.25 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00101/0.1528, allocations: 0.5625 MB / 483.5 MB, free: 13.68 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.583e-05/0.1529, allocations: 37.7 kB / 483.5 MB, free: 13.64 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004086/0.1533, allocations: 403.4 kB / 483.9 MB, free: 13.24 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002524/0.1536, allocations: 201.1 kB / 484.1 MB, free: 13.04 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002547/0.1539, allocations: 154.5 kB / 484.3 MB, free: 12.88 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002065/0.1541, allocations: 386.8 kB / 484.6 MB, free: 12.5 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005333/0.1546, allocations: 221.9 kB / 484.9 MB, free: 12.28 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008112/0.1555, allocations: 461.8 kB / 485.3 MB, free: 11.73 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00135/0.1568, allocations: 0.7934 MB / 486.1 MB, free: 10.8 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.864e-06/0.1568, allocations: 4 kB / 486.1 MB, free: 10.8 MB / 366.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.002364/0.1592, allocations: 0.9482 MB / 487.1 MB, free: 9.828 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000132/0.1594, allocations: 63.39 kB / 487.1 MB, free: 9.754 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.939e-05/0.1594, allocations: 8 kB / 487.1 MB, free: 9.746 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005554/0.16, allocations: 114 kB / 487.2 MB, free: 9.629 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007899/0.1608, allocations: 151.7 kB / 487.4 MB, free: 9.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004428/0.1652, allocations: 3.232 MB / 490.6 MB, free: 5.969 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008716/0.1661, allocations: 31.98 kB / 490.7 MB, free: 5.938 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001343/0.1663, allocations: 63.89 kB / 490.7 MB, free: 5.875 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.0007395/0.167, allocations: 350.7 kB / 491.1 MB, free: 5.512 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000156/0.1672, allocations: 75.16 kB / 491.1 MB, free: 5.438 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001706/0.1689, allocations: 0.7857 MB / 491.9 MB, free: 4.633 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.698e-06/0.1689, allocations: 8 kB / 491.9 MB, free: 4.625 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.1689, allocations: 0 / 491.9 MB, free: 4.625 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.518e-06/0.169, allocations: 3.984 kB / 491.9 MB, free: 4.621 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003041/0.172, allocations: 1.543 MB / 493.5 MB, free: 3.004 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.202e-06/0.172, allocations: 4.031 kB / 493.5 MB, free: 3 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007958/0.1728, allocations: 111.9 kB / 493.6 MB, free: 2.891 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.274e-05/0.1729, allocations: 4 kB / 493.6 MB, free: 2.887 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.062e-05/0.1729, allocations: 19.98 kB / 493.6 MB, free: 2.867 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.117e-05/0.173, allocations: 7.938 kB / 493.6 MB, free: 2.859 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.08e-06/0.173, allocations: 0 / 493.6 MB, free: 2.859 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002367/0.1754, allocations: 1.218 MB / 494.8 MB, free: 1.605 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004181/0.1758, allocations: 180.2 kB / 495 MB, free: 1.41 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001283/0.1759, allocations: 19.94 kB / 495 MB, free: 1.391 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004963/0.1764, allocations: 31.97 kB / 495.1 MB, free: 1.359 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001374/0.1766, allocations: 36.38 kB / 495.1 MB, free: 1.324 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001448/0.1767, allocations: 71.91 kB / 495.2 MB, free: 1.254 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007154/0.1775, allocations: 391 kB / 495.5 MB, free: 0.8789 MB / 366.1 MB Notification: Performance of sort global known variables: time 6.31e-07/0.1775, allocations: 0 / 495.5 MB, free: 0.8789 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001086/0.1786, allocations: 180 kB / 495.7 MB, free: 0.7031 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.0002121/0.1788, allocations: 124.8 kB / 495.8 MB, free: 0.5742 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002147/0.181, allocations: 1.02 MB / 496.9 MB, free: 15.5 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.181, allocations: 0 / 496.9 MB, free: 15.5 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008155/0.1818, allocations: 493.2 kB / 497.3 MB, free: 15 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001106/0.1829, allocations: 167.8 kB / 497.5 MB, free: 14.84 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003392/0.1863, allocations: 1.532 MB / 499 MB, free: 13.27 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008634/0.1872, allocations: 1.009 MB / 0.4883 GB, free: 12.23 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006035/0.1878, allocations: 153.8 kB / 0.4885 GB, free: 12.08 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001768/0.188, allocations: 55.42 kB / 0.4885 GB, free: 12.02 MB / 382.1 MB Notification: Performance of SimCode: time 7.71e-07/0.188, allocations: 0 / 0.4885 GB, free: 12.02 MB / 382.1 MB Notification: Performance of Templates: time 0.01719/0.2052, allocations: 7.442 MB / 0.4958 GB, free: 4.656 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 gbode -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