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.00104/0.00104, allocations: 92.25 kB / 16.65 MB, free: 6.535 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.001373/0.001373, allocations: 173.3 kB / 17.56 MB, free: 6.18 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.498/1.498, allocations: 223.3 MB / 241.6 MB, free: 200 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1821/0.1821, allocations: 38.08 MB / 330.8 MB, free: 8.707 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003128/0.0003128, allocations: 13 kB / 400.7 MB, free: 34.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09697/0.0973, allocations: 59.17 MB / 459.9 MB, free: 7.07 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer): time 0.007044/0.1044, allocations: 6.142 MB / 466 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003392/0.1078, allocations: 1.663 MB / 467.7 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005193/0.1084, allocations: 43.75 kB / 467.7 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005316/0.1089, allocations: 123.3 kB / 467.8 MB, free: 15.06 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009238/0.1099, allocations: 342.5 kB / 468.2 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003972/0.1103, allocations: 139.8 kB / 468.3 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00119/0.1115, allocations: 1.153 MB / 469.5 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003463/0.1118, allocations: 178.4 kB / 469.6 MB, free: 13.26 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004684/0.1123, allocations: 290.5 kB / 469.9 MB, free: 12.97 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005777/0.1129, allocations: 394.7 kB / 470.3 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.781e-05/0.113, allocations: 23.94 kB / 470.3 MB, free: 12.56 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.082e-05/0.113, allocations: 24 kB / 470.4 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001945/0.1132, allocations: 183.4 kB / 470.5 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002781/0.1135, allocations: 280.2 kB / 470.8 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005314/0.1141, allocations: 0.5369 MB / 471.3 MB, free: 11.54 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.1141, allocations: 4 kB / 471.4 MB, free: 11.54 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.1141, allocations: 4 kB / 471.4 MB, free: 11.53 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.782e-06/0.1141, allocations: 0 / 471.4 MB, free: 11.53 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.001384/0.1155, allocations: 0.7986 MB / 472.2 MB, free: 10.68 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/0.1155, allocations: 8.031 kB / 472.2 MB, free: 10.67 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001171/0.1157, allocations: 60.19 kB / 472.2 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007326/0.1164, allocations: 490.5 kB / 472.7 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.799e-05/0.1165, allocations: 32.94 kB / 472.7 MB, free: 10.06 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.488e-05/0.1165, allocations: 43.98 kB / 472.8 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008001/0.1173, allocations: 0.539 MB / 473.3 MB, free: 9.441 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.541e-05/0.1174, allocations: 4 kB / 473.3 MB, free: 9.438 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.38e-05/0.1174, allocations: 16 kB / 473.3 MB, free: 9.422 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.596e-05/0.1175, allocations: 17 kB / 473.3 MB, free: 9.406 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006037/0.1181, allocations: 399.6 kB / 473.7 MB, free: 9.016 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002293/0.1204, allocations: 1.936 MB / 475.7 MB, free: 6.969 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006355/0.121, allocations: 337.3 kB / 476 MB, free: 6.621 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003012/0.1213, allocations: 173.7 kB / 476.2 MB, free: 6.445 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.763e-05/0.1214, allocations: 4 kB / 476.2 MB, free: 6.441 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003782/0.1218, allocations: 292.1 kB / 476.5 MB, free: 6.125 MB / 350.1 MB Notification: Performance of pre-optimization done (n=35): time 1.532e-06/0.1218, allocations: 0 / 476.5 MB, free: 6.125 MB / 350.1 MB Notification: Performance of matching and sorting (n=36): time 0.00183/0.1236, allocations: 1.179 MB / 477.6 MB, free: 4.871 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.495e-05/0.1237, allocations: 174.1 kB / 477.8 MB, free: 4.664 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004029/0.1241, allocations: 390 kB / 478.2 MB, free: 4.273 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.232e-05/0.1242, allocations: 37.7 kB / 478.2 MB, free: 4.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000234/0.1244, allocations: 291.6 kB / 478.5 MB, free: 3.941 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.562e-05/0.1245, allocations: 114.4 kB / 478.6 MB, free: 3.828 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.456e-05/0.1246, allocations: 49.69 kB / 478.7 MB, free: 3.773 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001841/0.1248, allocations: 354.8 kB / 479 MB, free: 3.418 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002034/0.125, allocations: 125 kB / 479.1 MB, free: 3.297 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003424/0.1253, allocations: 286.1 kB / 479.4 MB, free: 2.941 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005707/0.1259, allocations: 485.3 kB / 479.9 MB, free: 2.383 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.1259, allocations: 8 kB / 479.9 MB, free: 2.375 MB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.000764/0.1267, allocations: 0.5143 MB / 480.4 MB, free: 1.848 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.731e-05/0.1268, allocations: 41.72 kB / 480.5 MB, free: 1.801 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.289e-05/0.1268, allocations: 8 kB / 480.5 MB, free: 1.793 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.063e-05/0.1268, allocations: 8 kB / 480.5 MB, free: 1.785 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004091/0.1272, allocations: 111.8 kB / 480.6 MB, free: 1.676 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.414e-05/0.1273, allocations: 11.94 kB / 480.6 MB, free: 1.664 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002621/0.1275, allocations: 27.92 kB / 480.6 MB, free: 1.637 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.241e-05/0.1276, allocations: 31.98 kB / 480.7 MB, free: 1.605 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.000291/0.1279, allocations: 256.2 kB / 480.9 MB, free: 1.34 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.061e-05/0.1279, allocations: 55.31 kB / 481 MB, free: 1.285 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007038/0.1287, allocations: 451.2 kB / 481.4 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.711e-06/0.1287, allocations: 4 kB / 481.4 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.673e-06/0.1287, allocations: 0 / 481.4 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/0.1287, allocations: 3.984 kB / 481.4 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001264/0.13, allocations: 0.977 MB / 482.4 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.13, allocations: 3.938 kB / 482.4 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003132/0.1303, allocations: 59.91 kB / 482.4 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.851e-06/0.1303, allocations: 4 kB / 482.5 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.737e-05/0.1304, allocations: 15.98 kB / 482.5 MB, free: 15.69 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.617e-06/0.1304, allocations: 4 kB / 482.5 MB, free: 15.69 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.1304, allocations: 0 / 482.5 MB, free: 15.69 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009174/0.1313, allocations: 0.7133 MB / 483.2 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001558/0.1315, allocations: 140.5 kB / 483.3 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.623e-05/0.1315, allocations: 8 kB / 483.3 MB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000216/0.1317, allocations: 15.98 kB / 483.3 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.343e-05/0.1318, allocations: 23.97 kB / 483.4 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.94e-05/0.1319, allocations: 31.97 kB / 483.4 MB, free: 14.71 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002667/0.1322, allocations: 271.2 kB / 483.7 MB, free: 14.45 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1322, allocations: 0 / 483.7 MB, free: 14.45 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004489/0.1326, allocations: 111.9 kB / 483.8 MB, free: 14.34 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.0001277/0.1328, allocations: 106.4 kB / 483.9 MB, free: 14.23 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00059/0.1334, allocations: 412.1 kB / 484.3 MB, free: 13.82 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1334, allocations: 0 / 484.3 MB, free: 13.82 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003075/0.1337, allocations: 259.1 kB / 484.5 MB, free: 13.55 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006735/0.1344, allocations: 97.44 kB / 484.6 MB, free: 13.45 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00167/0.136, allocations: 1.224 MB / 485.9 MB, free: 12.2 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004946/0.1365, allocations: 0.882 MB / 486.7 MB, free: 11.29 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000298/0.1369, allocations: 88.31 kB / 486.8 MB, free: 11.2 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.609e-05/0.137, allocations: 39.38 kB / 486.9 MB, free: 11.16 MB / 366.1 MB Notification: Performance of SimCode: time 2.6e-07/0.137, allocations: 4 kB / 486.9 MB, free: 11.16 MB / 366.1 MB Notification: Performance of Templates: time 0.008416/0.1454, allocations: 3.902 MB / 490.8 MB, free: 7.297 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)