Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 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="empty",numberOfIntervals=8000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger") translateModel(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=8000,variableFilter="",fileNamePrefix="PowerSystems_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.001546/0.001546, allocations: 106.4 kB / 17.06 MB, free: 6.027 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.001742/0.001742, allocations: 195 kB / 18 MB, free: 5.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.482/1.482, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1732/0.1732, allocations: 37.99 MB / 309.2 MB, free: 5.961 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001429/0.001429, allocations: 63.91 kB / 431.9 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.117, allocations: 55.24 MB / 487.1 MB, free: 8.359 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger): time 0.008834/0.1259, allocations: 7.306 MB / 494.4 MB, free: 1.012 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003333/0.1293, allocations: 1.762 MB / 496.2 MB, free: 15.24 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004428/0.1297, allocations: 31.88 kB / 496.2 MB, free: 15.21 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006965/0.1304, allocations: 234.4 kB / 496.4 MB, free: 14.98 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00158/0.1321, allocations: 0.5637 MB / 497 MB, free: 14.41 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004715/0.1326, allocations: 215.6 kB / 497.2 MB, free: 14.2 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001385/0.134, allocations: 1.266 MB / 498.5 MB, free: 12.93 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005331/0.1345, allocations: 358.5 kB / 498.8 MB, free: 12.58 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008603/0.1354, allocations: 0.5524 MB / 499.4 MB, free: 12.03 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001046/0.1364, allocations: 0.6384 MB / 0.4883 GB, free: 11.39 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001269/0.1366, allocations: 64 kB / 0.4884 GB, free: 11.32 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001537/0.1367, allocations: 64 kB / 0.4884 GB, free: 11.26 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003532/0.1371, allocations: 335.1 kB / 0.4887 GB, free: 10.93 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004868/0.1376, allocations: 433.7 kB / 0.4891 GB, free: 10.51 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001003/0.1386, allocations: 0.9108 MB / 0.49 GB, free: 9.594 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.007e-05/0.1386, allocations: 3.984 kB / 0.49 GB, free: 9.59 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.1386, allocations: 0 / 0.49 GB, free: 9.59 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.026e-05/0.1387, allocations: 4 kB / 0.49 GB, free: 9.586 MB / 382.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.00204/0.1407, allocations: 1.221 MB / 0.4912 GB, free: 8.297 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.506e-05/0.1408, allocations: 19.83 kB / 0.4913 GB, free: 8.277 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000146/0.1409, allocations: 91.81 kB / 0.4913 GB, free: 8.188 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001101/0.142, allocations: 0.711 MB / 0.492 GB, free: 7.434 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.23e-05/0.1421, allocations: 53.25 kB / 0.4921 GB, free: 7.383 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.655e-05/0.1422, allocations: 60 kB / 0.4921 GB, free: 7.324 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001083/0.1433, allocations: 0.8138 MB / 0.4929 GB, free: 6.473 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.449e-05/0.1433, allocations: 0 / 0.4929 GB, free: 6.473 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.543e-05/0.1434, allocations: 24 kB / 0.493 GB, free: 6.449 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.192e-05/0.1434, allocations: 37.23 kB / 0.493 GB, free: 6.41 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000871/0.1443, allocations: 0.614 MB / 0.4936 GB, free: 5.797 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003079/0.1474, allocations: 2.618 MB / 0.4962 GB, free: 3.066 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008656/0.1483, allocations: 0.6206 MB / 0.4968 GB, free: 2.43 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005619/0.1488, allocations: 375 kB / 0.4971 GB, free: 2.051 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.234e-05/0.1489, allocations: 4.438 kB / 0.4971 GB, free: 2.047 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005411/0.1494, allocations: 487.1 kB / 0.4976 GB, free: 1.531 MB / 382.1 MB Notification: Performance of pre-optimization done (n=63): time 1.883e-06/0.1494, allocations: 0 / 0.4976 GB, free: 1.531 MB / 382.1 MB Notification: Performance of matching and sorting (n=64): time 0.002883/0.1523, allocations: 1.981 MB / 0.4995 GB, free: 15.46 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002052/0.1525, allocations: 255.8 kB / 0.4998 GB, free: 15.15 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000578/0.1531, allocations: 0.5547 MB / 0.5003 GB, free: 14.59 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.611e-05/0.1532, allocations: 45.83 kB / 0.5004 GB, free: 14.54 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002896/0.1535, allocations: 407.4 kB / 0.5007 GB, free: 14.14 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001559/0.1536, allocations: 205.2 kB / 0.5009 GB, free: 13.93 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001728/0.1538, allocations: 142.5 kB / 0.5011 GB, free: 13.79 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001607/0.154, allocations: 386.8 kB / 0.5014 GB, free: 13.4 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003188/0.1543, allocations: 221.9 kB / 0.5017 GB, free: 13.18 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005123/0.1548, allocations: 465.8 kB / 0.5021 GB, free: 12.63 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008635/0.1557, allocations: 0.7973 MB / 0.5029 GB, free: 11.71 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.1557, allocations: 0 / 0.5029 GB, free: 11.71 MB / 398.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.001423/0.1571, allocations: 0.9445 MB / 0.5038 GB, free: 10.74 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.862e-05/0.1572, allocations: 63.41 kB / 0.5039 GB, free: 10.67 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.395e-05/0.1572, allocations: 12.06 kB / 0.5039 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003908/0.1576, allocations: 113.5 kB / 0.504 GB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004598/0.1581, allocations: 147.7 kB / 0.5041 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003059/0.1612, allocations: 3.559 MB / 0.5076 GB, free: 6.562 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004173/0.1616, allocations: 39.97 kB / 0.5076 GB, free: 6.523 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.801e-05/0.1617, allocations: 55.97 kB / 0.5077 GB, free: 6.469 MB / 398.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.000416/0.1621, allocations: 350.6 kB / 0.508 GB, free: 6.105 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.435e-05/0.1622, allocations: 71.16 kB / 0.5081 GB, free: 6.035 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00106/0.1633, allocations: 0.7936 MB / 0.5089 GB, free: 5.215 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.882e-06/0.1633, allocations: 8 kB / 0.5089 GB, free: 5.207 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.804e-06/0.1633, allocations: 0 / 0.5089 GB, free: 5.207 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.109e-06/0.1633, allocations: 0 / 0.5089 GB, free: 5.207 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001922/0.1652, allocations: 1.557 MB / 0.5104 GB, free: 3.57 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.013e-05/0.1653, allocations: 12.02 kB / 0.5104 GB, free: 3.559 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004552/0.1657, allocations: 103.9 kB / 0.5105 GB, free: 3.457 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.994e-06/0.1657, allocations: 7.938 kB / 0.5105 GB, free: 3.449 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.026e-05/0.1658, allocations: 19.98 kB / 0.5105 GB, free: 3.43 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.138e-06/0.1658, allocations: 4 kB / 0.5105 GB, free: 3.426 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.1658, allocations: 0 / 0.5105 GB, free: 3.426 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001344/0.1671, allocations: 1.195 MB / 0.5117 GB, free: 2.191 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002099/0.1674, allocations: 184.2 kB / 0.5119 GB, free: 1.992 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.941e-05/0.1675, allocations: 19.94 kB / 0.5119 GB, free: 1.973 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003053/0.1678, allocations: 27.97 kB / 0.5119 GB, free: 1.945 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001034/0.1679, allocations: 44.45 kB / 0.512 GB, free: 1.902 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.77e-05/0.168, allocations: 63.84 kB / 0.512 GB, free: 1.84 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003921/0.1684, allocations: 391 kB / 0.5124 GB, free: 1.461 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1684, allocations: 0 / 0.5124 GB, free: 1.461 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006267/0.169, allocations: 180 kB / 0.5126 GB, free: 1.285 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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.0001438/0.1691, allocations: 131 kB / 0.5127 GB, free: 1.148 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001305/0.1705, allocations: 1.008 MB / 0.5137 GB, free: 92 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.1705, allocations: 4.125 kB / 0.5137 GB, free: 88 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005142/0.171, allocations: 0.4934 MB / 0.5142 GB, free: 15.57 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000748/0.1718, allocations: 171.2 kB / 0.5143 GB, free: 15.4 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002244/0.174, allocations: 1.53 MB / 0.5158 GB, free: 13.82 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005647/0.1746, allocations: 1.016 MB / 0.5168 GB, free: 12.78 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003803/0.175, allocations: 157.8 kB / 0.517 GB, free: 12.62 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001083/0.1751, allocations: 47.44 kB / 0.517 GB, free: 12.58 MB / 414.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1751, allocations: 0 / 0.517 GB, free: 12.58 MB / 414.1 MB Notification: Performance of Templates: time 0.01462/0.1897, allocations: 7.759 MB / 0.5246 GB, free: 4.805 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe 2>&1)