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.001726/0.001726, allocations: 111.6 kB / 17.29 MB, free: 6.188 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.002106/0.002106, allocations: 193.3 kB / 18.21 MB, free: 5.266 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.844/1.844, allocations: 222.9 MB / 241.9 MB, free: 15.38 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.2489/0.2489, allocations: 38.02 MB / 330.1 MB, free: 8.957 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00181/0.00181, allocations: 62.08 kB / 398.9 MB, free: 34.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1484/0.1502, allocations: 58.07 MB / 457 MB, free: 8.387 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer): time 0.009689/0.16, allocations: 6.557 MB / 463.6 MB, free: 1.793 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004129/0.1641, allocations: 1.667 MB / 465.2 MB, free: 124 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001004/0.1652, allocations: 39.75 kB / 465.3 MB, free: 84 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007814/0.166, allocations: 115.4 kB / 465.4 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00141/0.1675, allocations: 350.5 kB / 465.7 MB, free: 15.62 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005502/0.1681, allocations: 135.8 kB / 465.9 MB, free: 15.49 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00141/0.1695, allocations: 0.7904 MB / 466.6 MB, free: 14.7 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004778/0.17, allocations: 217.6 kB / 466.9 MB, free: 14.49 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008101/0.1708, allocations: 342.6 kB / 467.2 MB, free: 14.15 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008861/0.1717, allocations: 430.5 kB / 467.6 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001395/0.1719, allocations: 40 kB / 467.6 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002166/0.1721, allocations: 40 kB / 467.7 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003032/0.1724, allocations: 203.4 kB / 467.9 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000529/0.1729, allocations: 282.5 kB / 468.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000658/0.1736, allocations: 439 kB / 468.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.1736, allocations: 0 / 468.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.066e-06/0.1736, allocations: 0 / 468.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.815e-05/0.1737, allocations: 0 / 468.6 MB, free: 12.75 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.002072/0.1758, allocations: 0.8918 MB / 469.5 MB, free: 11.8 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.211e-05/0.1758, allocations: 11.89 kB / 469.5 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001814/0.176, allocations: 64.19 kB / 469.6 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009387/0.177, allocations: 486.6 kB / 470 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.098e-05/0.177, allocations: 32.94 kB / 470.1 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.318e-05/0.1771, allocations: 43.94 kB / 470.1 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009287/0.1781, allocations: 0.5312 MB / 470.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.55e-05/0.1781, allocations: 0 / 470.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.182e-05/0.1781, allocations: 16 kB / 470.7 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.849e-05/0.1782, allocations: 21 kB / 470.7 MB, free: 10.53 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000654/0.1789, allocations: 403.6 kB / 471.1 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002793/0.1817, allocations: 1.932 MB / 473 MB, free: 8.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006307/0.1823, allocations: 340.3 kB / 473.3 MB, free: 7.742 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003466/0.1827, allocations: 181.7 kB / 473.5 MB, free: 7.559 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.198e-05/0.1827, allocations: 4 kB / 473.5 MB, free: 7.555 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003971/0.1831, allocations: 280.2 kB / 473.8 MB, free: 7.25 MB / 350.1 MB Notification: Performance of pre-optimization done (n=35): time 2.284e-06/0.1831, allocations: 0 / 473.8 MB, free: 7.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=36): time 0.001934/0.1851, allocations: 1.187 MB / 475 MB, free: 5.988 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001036/0.1852, allocations: 162.2 kB / 475.1 MB, free: 5.793 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004141/0.1856, allocations: 398 kB / 475.5 MB, free: 5.391 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.096e-05/0.1857, allocations: 37.62 kB / 475.6 MB, free: 5.348 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002145/0.1859, allocations: 295.5 kB / 475.8 MB, free: 5.055 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.732e-05/0.186, allocations: 114.5 kB / 476 MB, free: 4.941 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001288/0.1861, allocations: 90.16 kB / 476 MB, free: 4.848 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001461/0.1863, allocations: 358.8 kB / 476.4 MB, free: 4.488 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001937/0.1865, allocations: 125 kB / 476.5 MB, free: 4.367 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003143/0.1868, allocations: 286.2 kB / 476.8 MB, free: 4.012 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005687/0.1874, allocations: 485.2 kB / 477.3 MB, free: 3.453 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.131e-06/0.1874, allocations: 8 kB / 477.3 MB, free: 3.445 MB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0007285/0.1881, allocations: 0.522 MB / 477.8 MB, free: 2.91 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.673e-05/0.1882, allocations: 37.69 kB / 477.8 MB, free: 2.867 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.023e-05/0.1882, allocations: 4 kB / 477.8 MB, free: 2.863 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.311e-05/0.1882, allocations: 8 kB / 477.9 MB, free: 2.855 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003985/0.1886, allocations: 107.8 kB / 478 MB, free: 2.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.657e-05/0.1887, allocations: 11.98 kB / 478 MB, free: 2.738 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002451/0.1889, allocations: 27.92 kB / 478 MB, free: 2.711 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.988e-05/0.189, allocations: 27.98 kB / 478 MB, free: 2.684 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.0002622/0.1892, allocations: 248.3 kB / 478.3 MB, free: 2.426 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.192e-05/0.1893, allocations: 51.38 kB / 478.3 MB, free: 2.375 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007111/0.19, allocations: 455.2 kB / 478.8 MB, free: 1.914 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.471e-06/0.19, allocations: 4 kB / 478.8 MB, free: 1.91 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.1901, allocations: 0 / 478.8 MB, free: 1.91 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.1901, allocations: 4 kB / 478.8 MB, free: 1.906 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001256/0.1913, allocations: 0.973 MB / 479.7 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.442e-06/0.1914, allocations: 12.02 kB / 479.8 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003078/0.1917, allocations: 63.84 kB / 479.8 MB, free: 0.793 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.069e-06/0.1917, allocations: 0 / 479.8 MB, free: 0.793 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.527e-05/0.1917, allocations: 19.98 kB / 479.8 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.21e-06/0.1917, allocations: 7.969 kB / 479.8 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.1917, allocations: 3.938 kB / 479.8 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009476/0.1927, allocations: 0.7094 MB / 480.6 MB, free: 24 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001697/0.1929, allocations: 140.5 kB / 480.7 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.132e-05/0.193, allocations: 12 kB / 480.7 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002159/0.1932, allocations: 15.92 kB / 480.7 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.393e-05/0.1933, allocations: 23.97 kB / 480.7 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.467e-05/0.1933, allocations: 35.95 kB / 480.8 MB, free: 15.78 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002923/0.1936, allocations: 267.2 kB / 481 MB, free: 15.52 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1936, allocations: 4 kB / 481 MB, free: 15.52 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004623/0.1941, allocations: 107.9 kB / 481.1 MB, free: 15.41 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.0001631/0.1943, allocations: 114.5 kB / 481.3 MB, free: 15.29 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006924/0.195, allocations: 432.1 kB / 481.7 MB, free: 14.86 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.195, allocations: 4.125 kB / 481.7 MB, free: 14.86 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003038/0.1953, allocations: 263 kB / 481.9 MB, free: 14.59 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006575/0.196, allocations: 103.9 kB / 482 MB, free: 14.49 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001933/0.1979, allocations: 1.221 MB / 483.3 MB, free: 13.23 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005043/0.1984, allocations: 0.8858 MB / 484.2 MB, free: 12.32 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000119/0.1986, allocations: 39.44 kB / 484.2 MB, free: 12.29 MB / 366.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1986, allocations: 0 / 484.2 MB, free: 12.29 MB / 366.1 MB Notification: Performance of Templates: time 0.01105/0.2096, allocations: 5.897 MB / 490.1 MB, free: 6.406 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)