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.0006998/0.0006999, allocations: 89.39 kB / 16.32 MB, free: 6.449 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.0008377/0.0008378, allocations: 180.2 kB / 17.21 MB, free: 6.32 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.214/1.214, allocations: 223.3 MB / 241.2 MB, free: 260 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.161/0.161, allocations: 38.09 MB / 330.4 MB, free: 8.852 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003343/0.0003343, allocations: 9.188 kB / 400.1 MB, free: 34.51 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08393/0.08428, allocations: 59.17 MB / 459.2 MB, free: 7.406 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger): time 0.007083/0.0914, allocations: 7.977 MB / 467.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00301/0.09444, allocations: 2.132 MB / 469.4 MB, free: 13.26 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004193/0.09487, allocations: 59.56 kB / 469.4 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000473/0.09536, allocations: 214.5 kB / 469.6 MB, free: 12.99 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001158/0.09653, allocations: 0.6298 MB / 470.3 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000533/0.09707, allocations: 263.6 kB / 470.5 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001344/0.09843, allocations: 1.527 MB / 472 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003444/0.09878, allocations: 250.1 kB / 472.3 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005761/0.09937, allocations: 473.7 kB / 472.7 MB, free: 9.852 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007891/0.1002, allocations: 0.6347 MB / 473.4 MB, free: 9.215 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.606e-05/0.1003, allocations: 36 kB / 473.4 MB, free: 9.18 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000105/0.1004, allocations: 32 kB / 473.4 MB, free: 9.148 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002563/0.1006, allocations: 307.1 kB / 473.7 MB, free: 8.848 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001541/0.1008, allocations: 173.3 kB / 473.9 MB, free: 8.672 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005374/0.1013, allocations: 0.6662 MB / 474.6 MB, free: 8.004 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.1013, allocations: 3.938 kB / 474.6 MB, free: 8 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.1014, allocations: 0 / 474.6 MB, free: 8 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.626e-06/0.1014, allocations: 4 kB / 474.6 MB, free: 7.996 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.00151/0.1029, allocations: 1.088 MB / 475.7 MB, free: 6.84 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.917e-05/0.1029, allocations: 11.97 kB / 475.7 MB, free: 6.828 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001203/0.103, allocations: 94.88 kB / 475.8 MB, free: 6.734 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008982/0.104, allocations: 0.6438 MB / 476.4 MB, free: 6.051 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.676e-05/0.104, allocations: 57.3 kB / 476.5 MB, free: 5.996 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.427e-05/0.1041, allocations: 56 kB / 476.5 MB, free: 5.941 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001087/0.1052, allocations: 0.8021 MB / 477.3 MB, free: 5.102 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.379e-05/0.1052, allocations: 4 kB / 477.3 MB, free: 5.098 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.079e-05/0.1053, allocations: 28 kB / 477.4 MB, free: 5.07 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.515e-05/0.1053, allocations: 33.3 kB / 477.4 MB, free: 5.035 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008621/0.1062, allocations: 0.6139 MB / 478 MB, free: 4.422 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002944/0.1092, allocations: 2.645 MB / 480.7 MB, free: 1.66 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008307/0.11, allocations: 0.6066 MB / 481.3 MB, free: 1.039 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005427/0.1106, allocations: 376 kB / 481.6 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.218e-05/0.1106, allocations: 8.422 kB / 481.6 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005259/0.1111, allocations: 487 kB / 482.1 MB, free: 136 kB / 350.1 MB Notification: Performance of pre-optimization done (n=63): time 2.033e-06/0.1111, allocations: 0 / 482.1 MB, free: 136 kB / 350.1 MB Notification: Performance of matching and sorting (n=64): time 0.002507/0.1137, allocations: 1.969 MB / 484.1 MB, free: 14.07 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001114/0.1138, allocations: 255.9 kB / 484.3 MB, free: 13.77 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005372/0.1143, allocations: 0.5626 MB / 484.9 MB, free: 13.2 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.778e-05/0.1144, allocations: 41.69 kB / 484.9 MB, free: 13.15 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002562/0.1146, allocations: 395.5 kB / 485.3 MB, free: 12.76 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001418/0.1148, allocations: 205.1 kB / 485.5 MB, free: 12.55 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.006e-05/0.1148, allocations: 16 kB / 485.5 MB, free: 12.54 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.115, allocations: 390.7 kB / 485.9 MB, free: 12.15 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003194/0.1153, allocations: 221.9 kB / 486.1 MB, free: 11.93 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004484/0.1158, allocations: 453.8 kB / 486.6 MB, free: 11.39 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004015/0.1162, allocations: 345.3 kB / 486.9 MB, free: 11.04 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.1162, allocations: 4 kB / 486.9 MB, free: 11.03 MB / 366.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.001334/0.1175, allocations: 0.9364 MB / 487.9 MB, free: 10.07 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.914e-05/0.1176, allocations: 67.39 kB / 487.9 MB, free: 9.988 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/0.1176, allocations: 7.938 kB / 487.9 MB, free: 9.98 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003344/0.1179, allocations: 109.6 kB / 488 MB, free: 9.867 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004504/0.1184, allocations: 144 kB / 488.2 MB, free: 9.727 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002417/0.1208, allocations: 2.992 MB / 491.2 MB, free: 6.469 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003461/0.1212, allocations: 51.98 kB / 491.2 MB, free: 6.418 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.784e-05/0.1213, allocations: 51.97 kB / 491.3 MB, free: 6.367 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,$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 (90): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003445/0.1216, allocations: 350.6 kB / 491.6 MB, free: 6.004 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.63e-05/0.1217, allocations: 75.16 kB / 491.7 MB, free: 5.93 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001024/0.1227, allocations: 0.7857 MB / 492.5 MB, free: 5.121 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.1228, allocations: 8 kB / 492.5 MB, free: 5.113 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.773e-06/0.1228, allocations: 0 / 492.5 MB, free: 5.113 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.122e-06/0.1228, allocations: 7.922 kB / 492.5 MB, free: 5.105 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001791/0.1246, allocations: 1.543 MB / 494 MB, free: 3.488 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/0.1246, allocations: 4 kB / 494 MB, free: 3.484 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004662/0.1251, allocations: 111.9 kB / 494.1 MB, free: 3.375 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.362e-06/0.1251, allocations: 4 kB / 494.2 MB, free: 3.371 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.149e-05/0.1251, allocations: 19.98 kB / 494.2 MB, free: 3.352 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.027e-06/0.1251, allocations: 4 kB / 494.2 MB, free: 3.348 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.1251, allocations: 3.953 kB / 494.2 MB, free: 3.344 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001492/0.1266, allocations: 1.21 MB / 495.4 MB, free: 2.102 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002096/0.1269, allocations: 188.3 kB / 495.6 MB, free: 1.898 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.029e-05/0.1269, allocations: 16 kB / 495.6 MB, free: 1.883 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002911/0.1272, allocations: 31.97 kB / 495.6 MB, free: 1.852 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.81e-05/0.1273, allocations: 40.34 kB / 495.7 MB, free: 1.812 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.853e-05/0.1274, allocations: 63.91 kB / 495.7 MB, free: 1.75 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003798/0.1278, allocations: 379.1 kB / 496.1 MB, free: 1.387 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1278, allocations: 8 kB / 496.1 MB, free: 1.379 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000591/0.1284, allocations: 180 kB / 496.3 MB, free: 1.203 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 (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.0001285/0.1286, allocations: 127 kB / 496.4 MB, free: 1.07 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001328/0.1299, allocations: 1.007 MB / 497.4 MB, free: 8 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.1299, allocations: 5.312 kB / 497.4 MB, free: 4 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005167/0.1304, allocations: 497.2 kB / 497.9 MB, free: 15.49 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007085/0.1311, allocations: 143 kB / 498 MB, free: 15.35 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002169/0.1333, allocations: 1.829 MB / 499.9 MB, free: 13.49 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005394/0.1339, allocations: 1.009 MB / 0.4891 GB, free: 12.45 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004399/0.1343, allocations: 157.8 kB / 0.4893 GB, free: 12.3 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001073/0.1344, allocations: 51.42 kB / 0.4893 GB, free: 12.25 MB / 382.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1344, allocations: 4 kB / 0.4893 GB, free: 12.24 MB / 382.1 MB Notification: Performance of Templates: time 0.01126/0.1457, allocations: 6.634 MB / 0.4958 GB, free: 5.68 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches