Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.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: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Transformer,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Transformer,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Transformer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001138/0.001138, allocations: 106.6 kB / 16.92 MB, free: 6.145 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.001162/0.001162, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.339/1.339, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1857/0.1857, allocations: 38.02 MB / 329.7 MB, free: 8.785 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001254/0.001254, allocations: 63.86 kB / 398.9 MB, free: 33.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0968/0.09808, allocations: 58.07 MB / 457 MB, free: 7.938 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Transformer): time 0.00855/0.1067, allocations: 6.523 MB / 463.5 MB, free: 1.379 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004754/0.1115, allocations: 2.446 MB / 465.9 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006258/0.1121, allocations: 23.88 kB / 466 MB, free: 14.9 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00191/0.1141, allocations: 0.6021 MB / 466.6 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001882/0.116, allocations: 0.6808 MB / 467.2 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001222/0.1172, allocations: 451 kB / 467.7 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001974/0.1192, allocations: 1.365 MB / 469 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009719/0.1202, allocations: 487.9 kB / 469.5 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00135/0.1215, allocations: 0.5682 MB / 470.1 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001608/0.1232, allocations: 0.7867 MB / 470.9 MB, free: 9.969 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002734/0.1235, allocations: 76 kB / 471 MB, free: 9.895 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007202/0.1242, allocations: 283.5 kB / 471.2 MB, free: 9.617 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006711/0.1249, allocations: 0.5143 MB / 471.7 MB, free: 9.102 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001533/0.1264, allocations: 0.5286 MB / 472.3 MB, free: 8.57 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002448/0.1289, allocations: 1.301 MB / 473.6 MB, free: 7.266 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.665e-06/0.1289, allocations: 0 / 473.6 MB, free: 7.266 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.1289, allocations: 0 / 473.6 MB, free: 7.266 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.509e-05/0.129, allocations: 0 / 473.6 MB, free: 7.266 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: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.003475/0.1325, allocations: 1.334 MB / 474.9 MB, free: 5.875 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.055e-05/0.1326, allocations: 11.89 kB / 474.9 MB, free: 5.863 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003481/0.1329, allocations: 148.3 kB / 475.1 MB, free: 5.711 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001215/0.1341, allocations: 203.5 kB / 475.3 MB, free: 5.512 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001175/0.1353, allocations: 0.6745 MB / 475.9 MB, free: 4.793 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.101e-05/0.1354, allocations: 62.34 kB / 476 MB, free: 4.734 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002381/0.1356, allocations: 95.86 kB / 476.1 MB, free: 4.641 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001926/0.1376, allocations: 1.396 MB / 477.5 MB, free: 3.141 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.102e-05/0.1376, allocations: 3.938 kB / 477.5 MB, free: 3.137 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.03e-05/0.1377, allocations: 39.98 kB / 477.5 MB, free: 3.098 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002726/0.138, allocations: 113.9 kB / 477.6 MB, free: 2.988 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001688/0.1397, allocations: 1.1 MB / 478.7 MB, free: 1.887 MB / 350.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006861/0.1466, allocations: 5.965 MB / 484.7 MB, free: 11.61 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001044/0.1476, allocations: 0.7022 MB / 485.4 MB, free: 10.88 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004302/0.1481, allocations: 319.3 kB / 485.7 MB, free: 10.56 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.871e-05/0.1481, allocations: 8.562 kB / 485.7 MB, free: 10.55 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005968/0.1487, allocations: 476.5 kB / 486.2 MB, free: 10.05 MB / 366.1 MB Notification: Performance of pre-optimization done (n=65): time 2.314e-06/0.1488, allocations: 0 / 486.2 MB, free: 10.05 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.003389/0.1521, allocations: 2.16 MB / 488.4 MB, free: 7.816 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001142/0.1523, allocations: 166.8 kB / 488.5 MB, free: 7.617 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008316/0.1531, allocations: 0.6328 MB / 489.2 MB, free: 6.973 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.963e-05/0.1532, allocations: 37.7 kB / 489.2 MB, free: 6.93 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004651/0.1537, allocations: 0.5327 MB / 489.7 MB, free: 6.387 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002212/0.1539, allocations: 228.8 kB / 489.9 MB, free: 6.16 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002869/0.1542, allocations: 210.7 kB / 490.2 MB, free: 5.949 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001845/0.1544, allocations: 394.7 kB / 490.5 MB, free: 5.555 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005479/0.1549, allocations: 338.4 kB / 490.9 MB, free: 5.223 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008098/0.1558, allocations: 0.7698 MB / 491.6 MB, free: 4.254 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001371/0.1571, allocations: 1.248 MB / 492.9 MB, free: 2.789 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.667e-06/0.1572, allocations: 4 kB / 492.9 MB, free: 2.785 MB / 366.1 MB Notification: Performance of matching and sorting (n=136) (initialization): time 0.002577/0.1597, allocations: 1.435 MB / 494.3 MB, free: 1.332 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.863e-05/0.1598, allocations: 45.64 kB / 494.4 MB, free: 1.281 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001354/0.1612, allocations: 0.7859 MB / 495.2 MB, free: 500 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007171/0.1619, allocations: 257.5 kB / 495.4 MB, free: 236 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006708/0.1626, allocations: 207.6 kB / 495.6 MB, free: 28 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00437/0.167, allocations: 4.378 MB / 500 MB, free: 11.36 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006192/0.1676, allocations: 60.09 kB / 0.4883 GB, free: 11.3 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001077/0.1677, allocations: 67.92 kB / 0.4884 GB, free: 11.24 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * Number of states: 0 () * Number of discrete variables: 11 (system.initime,tapChanger.cnt_2,$PRE.tapChanger.cnt_2,tapChanger.cnt_1,$PRE.tapChanger.cnt_1,$whenCondition2,$whenCondition1,tapChanger.tap_2,$PRE.tapChanger.tap_2,tapChanger.tap_1,$PRE.tapChanger.tap_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (119): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 1 * 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 {(2,12,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004977/0.1682, allocations: 402.9 kB / 0.4888 GB, free: 10.83 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001219/0.1684, allocations: 79 kB / 0.4888 GB, free: 10.75 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001611/0.17, allocations: 0.8515 MB / 0.4897 GB, free: 9.875 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.067e-05/0.17, allocations: 11.94 kB / 0.4897 GB, free: 9.863 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.17, allocations: 3.984 kB / 0.4897 GB, free: 9.859 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.206e-06/0.17, allocations: 0 / 0.4897 GB, free: 9.859 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002525/0.1726, allocations: 1.771 MB / 0.4914 GB, free: 8.016 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.4e-06/0.1726, allocations: 7.938 kB / 0.4914 GB, free: 8.008 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007276/0.1733, allocations: 147.8 kB / 0.4916 GB, free: 7.863 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.776e-06/0.1733, allocations: 4 kB / 0.4916 GB, free: 7.859 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.5e-05/0.1734, allocations: 23.98 kB / 0.4916 GB, free: 7.836 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.23e-06/0.1734, allocations: 4 kB / 0.4916 GB, free: 7.832 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/0.1734, allocations: 4 kB / 0.4916 GB, free: 7.828 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001728/0.1751, allocations: 1.301 MB / 0.4929 GB, free: 6.484 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002964/0.1755, allocations: 200.2 kB / 0.4931 GB, free: 6.27 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001085/0.1756, allocations: 23.98 kB / 0.4931 GB, free: 6.246 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003785/0.176, allocations: 27.97 kB / 0.4931 GB, free: 6.219 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001111/0.1761, allocations: 44.45 kB / 0.4932 GB, free: 6.176 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.268e-05/0.1762, allocations: 43.95 kB / 0.4932 GB, free: 6.133 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004931/0.1767, allocations: 423 kB / 0.4936 GB, free: 5.727 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.1767, allocations: 0 / 0.4936 GB, free: 5.727 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009466/0.1776, allocations: 232 kB / 0.4938 GB, free: 5.5 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (trafo.i1[1],trafo.i1[2],trafo.i1[3]) * 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 (64): * Single equations (assignments): 62 * 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.00205/0.1797, allocations: 1.869 MB / 0.4957 GB, free: 3.582 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002421/0.1821, allocations: 1.409 MB / 0.497 GB, free: 2.137 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.1821, allocations: 0.5625 kB / 0.497 GB, free: 2.137 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005729/0.1827, allocations: 474.3 kB / 0.4975 GB, free: 1.664 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008283/0.1836, allocations: 134.6 kB / 0.4976 GB, free: 1.535 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01527/0.1988, allocations: 8.255 MB / 0.5057 GB, free: 8.738 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008789/0.1998, allocations: 1.114 MB / 0.5068 GB, free: 7.594 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007989/0.2006, allocations: 286.4 kB / 0.507 GB, free: 7.309 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004681/0.2011, allocations: 335.3 kB / 0.5074 GB, free: 6.98 MB / 398.1 MB Notification: Performance of SimCode: time 7.52e-07/0.2011, allocations: 0 / 0.5074 GB, free: 6.98 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1997/0.4008, allocations: 15.78 MB / 0.5228 GB, free: 71.55 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.719/10.12, allocations: 8.281 kB / 0.5228 GB, free: 71.55 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Transformer.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Transformer.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Transformer.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Transformer.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Transformer_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Transformer.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Transformer.pipe 2>&1)