Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.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/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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.Elementary.Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=15000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=15000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001146/0.001146, allocations: 115.2 kB / 16.63 MB, free: 6.812 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.001305/0.001305, allocations: 190 kB / 17.55 MB, free: 5.934 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.465/1.465, allocations: 222.9 MB / 241.2 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1761/0.1761, allocations: 38.03 MB / 329.4 MB, free: 8.984 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001537/0.001537, allocations: 62.16 kB / 398.3 MB, free: 34.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.1172, allocations: 58.06 MB / 456.3 MB, free: 8.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer): time 0.009258/0.1265, allocations: 6.552 MB / 462.9 MB, free: 1.84 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003435/0.13, allocations: 1.679 MB / 464.6 MB, free: 160 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004258/0.1304, allocations: 39.75 kB / 464.6 MB, free: 120 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005131/0.131, allocations: 115.3 kB / 464.7 MB, free: 4 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008825/0.1319, allocations: 338.5 kB / 465.1 MB, free: 15.67 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003493/0.1323, allocations: 147.7 kB / 465.2 MB, free: 15.53 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000817/0.1331, allocations: 0.7826 MB / 466 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003603/0.1334, allocations: 225.6 kB / 466.2 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003886/0.1338, allocations: 338.5 kB / 466.5 MB, free: 14.19 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006351/0.1345, allocations: 430.6 kB / 466.9 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.982e-05/0.1346, allocations: 40 kB / 467 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.926e-05/0.1346, allocations: 44 kB / 467 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001959/0.1349, allocations: 207.4 kB / 467.2 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002782/0.1351, allocations: 270.6 kB / 467.5 MB, free: 13.22 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006037/0.1357, allocations: 0.5683 MB / 468.1 MB, free: 12.65 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.1358, allocations: 0 / 468.1 MB, free: 12.65 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.454e-06/0.1358, allocations: 0 / 468.1 MB, free: 12.65 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.839e-06/0.1358, allocations: 0 / 468.1 MB, free: 12.65 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001625/0.1374, allocations: 0.888 MB / 469 MB, free: 11.71 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.679e-05/0.1375, allocations: 15.89 kB / 469 MB, free: 11.69 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001025/0.1376, allocations: 64.12 kB / 469 MB, free: 11.63 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007101/0.1383, allocations: 486.6 kB / 469.5 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.042e-05/0.1383, allocations: 32.94 kB / 469.5 MB, free: 11.08 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.433e-05/0.1384, allocations: 44 kB / 469.6 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007794/0.1392, allocations: 0.5312 MB / 470.1 MB, free: 10.47 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.303e-05/0.1392, allocations: 0 / 470.1 MB, free: 10.47 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.197e-05/0.1393, allocations: 20 kB / 470.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.55e-05/0.1393, allocations: 25 kB / 470.2 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006121/0.1399, allocations: 391.6 kB / 470.5 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002473/0.1424, allocations: 1.932 MB / 472.5 MB, free: 7.996 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005957/0.143, allocations: 344.3 kB / 472.8 MB, free: 7.645 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003149/0.1433, allocations: 177.6 kB / 473 MB, free: 7.465 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.014e-05/0.1434, allocations: 8 kB / 473 MB, free: 7.457 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003667/0.1437, allocations: 276.2 kB / 473.3 MB, free: 7.156 MB / 350.1 MB Notification: Performance of pre-optimization done (n=35): time 2.004e-06/0.1438, allocations: 3.938 kB / 473.3 MB, free: 7.152 MB / 350.1 MB Notification: Performance of matching and sorting (n=36): time 0.001952/0.1457, allocations: 1.187 MB / 474.5 MB, free: 5.891 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000107/0.1458, allocations: 166.3 kB / 474.6 MB, free: 5.691 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000383/0.1462, allocations: 397.9 kB / 475 MB, free: 5.289 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.102e-05/0.1463, allocations: 29.7 kB / 475 MB, free: 5.254 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002224/0.1465, allocations: 295.5 kB / 475.3 MB, free: 4.961 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001035/0.1466, allocations: 114.5 kB / 475.4 MB, free: 4.848 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001268/0.1467, allocations: 98.14 kB / 475.5 MB, free: 4.746 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.1469, allocations: 350.8 kB / 475.9 MB, free: 4.395 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001976/0.1471, allocations: 133 kB / 476 MB, free: 4.266 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003184/0.1474, allocations: 290.1 kB / 476.3 MB, free: 3.906 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006255/0.1481, allocations: 477.3 kB / 476.7 MB, free: 3.355 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.087e-06/0.1481, allocations: 7.938 kB / 476.8 MB, free: 3.348 MB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0007533/0.1488, allocations: 0.5179 MB / 477.3 MB, free: 2.816 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.206e-05/0.1489, allocations: 37.69 kB / 477.3 MB, free: 2.773 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.208e-05/0.1489, allocations: 4 kB / 477.3 MB, free: 2.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.107e-05/0.1489, allocations: 15.94 kB / 477.3 MB, free: 2.754 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004203/0.1494, allocations: 107.8 kB / 477.4 MB, free: 2.648 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.276e-05/0.1494, allocations: 8 kB / 477.4 MB, free: 2.641 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002384/0.1496, allocations: 28.23 kB / 477.5 MB, free: 2.613 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.584e-05/0.1497, allocations: 35.98 kB / 477.5 MB, free: 2.578 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 11 (system.initime,tapChanger.tap_2,$PRE.tapChanger.tap_2,tapChanger.tap_1,$PRE.tapChanger.tap_1,tapChanger.cnt_2,$PRE.tapChanger.cnt_2,tapChanger.cnt_1,$PRE.tapChanger.cnt_1,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002391/0.1499, allocations: 244.2 kB / 477.7 MB, free: 2.324 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.57e-05/0.15, allocations: 47.38 kB / 477.8 MB, free: 2.277 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006462/0.1506, allocations: 455.2 kB / 478.2 MB, free: 1.816 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.1507, allocations: 4 kB / 478.2 MB, free: 1.812 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.1507, allocations: 4 kB / 478.2 MB, free: 1.809 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.171e-06/0.1507, allocations: 3.984 kB / 478.2 MB, free: 1.805 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001271/0.152, allocations: 0.9847 MB / 479.2 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.152, allocations: 64 / 479.2 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003111/0.1523, allocations: 63.91 kB / 479.3 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.26e-06/0.1523, allocations: 4 kB / 479.3 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.872e-05/0.1523, allocations: 15.98 kB / 479.3 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.1523, allocations: 0 / 479.3 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.1524, allocations: 4 kB / 479.3 MB, free: 0.668 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000918/0.1533, allocations: 0.7095 MB / 480 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001624/0.1534, allocations: 140.5 kB / 480.2 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.867e-05/0.1535, allocations: 8 kB / 480.2 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002141/0.1537, allocations: 15.98 kB / 480.2 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.686e-05/0.1538, allocations: 23.91 kB / 480.2 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.115e-05/0.1539, allocations: 40.02 kB / 480.3 MB, free: 15.69 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003093/0.1542, allocations: 267.1 kB / 480.5 MB, free: 15.43 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1542, allocations: 0 / 480.5 MB, free: 15.43 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004165/0.1546, allocations: 107.9 kB / 480.6 MB, free: 15.32 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (trafo.i1) * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,tapChanger.tap_1,tapChanger.tap_2,tapChanger.cnt_1,tapChanger.cnt_2,system.initime) * Number of discrete states: 6 (tapChanger.tap_2,tapChanger.cnt_2,$whenCondition2,tapChanger.tap_1,tapChanger.cnt_1,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 1 * 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.0001389/0.1548, allocations: 111.2 kB / 480.7 MB, free: 15.2 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007035/0.1555, allocations: 439.7 kB / 481.2 MB, free: 14.76 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.1555, allocations: 0 / 481.2 MB, free: 14.76 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003084/0.1558, allocations: 267 kB / 481.4 MB, free: 14.49 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006312/0.1564, allocations: 108.1 kB / 481.5 MB, free: 14.39 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001735/0.1582, allocations: 1.165 MB / 482.7 MB, free: 13.2 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005748/0.1588, allocations: 0.882 MB / 483.6 MB, free: 12.29 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003036/0.1591, allocations: 104.2 kB / 483.7 MB, free: 12.18 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.614e-05/0.1592, allocations: 35.38 kB / 483.7 MB, free: 12.15 MB / 366.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1592, allocations: 0 / 483.7 MB, free: 12.15 MB / 366.1 MB Notification: Performance of Templates: time 0.008374/0.1676, allocations: 4.111 MB / 487.8 MB, free: 8.082 MB / 366.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe 2>&1)