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 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.AC1ph_DC.Transformation.TapChanger,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Transformation_TapChanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Transformation_TapChanger",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.001075/0.001075, allocations: 107.5 kB / 16.92 MB, free: 5.699 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.001125/0.001125, allocations: 192.7 kB / 17.85 MB, free: 5.195 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.341/1.341, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1859/0.1859, allocations: 38.02 MB / 329.7 MB, free: 8.777 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001248/0.001248, allocations: 66.34 kB / 398.9 MB, free: 33.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1029, allocations: 58.06 MB / 457 MB, free: 7.949 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger): time 0.009408/0.1123, allocations: 7.295 MB / 464.3 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003275/0.1156, allocations: 1.71 MB / 466 MB, free: 14.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007646/0.1164, allocations: 31.81 kB / 466 MB, free: 14.88 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00112/0.1176, allocations: 238.4 kB / 466.2 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001851/0.1195, allocations: 0.5676 MB / 466.8 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006583/0.1201, allocations: 219.6 kB / 467 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001775/0.1219, allocations: 1.258 MB / 468.3 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005629/0.1225, allocations: 370.4 kB / 468.6 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009745/0.1235, allocations: 0.5369 MB / 469.2 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001248/0.1248, allocations: 0.6384 MB / 469.8 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002711/0.1251, allocations: 64 kB / 469.9 MB, free: 10.99 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003096/0.1254, allocations: 64 kB / 469.9 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004012/0.1258, allocations: 331.1 kB / 470.3 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000716/0.1265, allocations: 437.8 kB / 470.7 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00104/0.1276, allocations: 0.9031 MB / 471.6 MB, free: 9.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.1276, allocations: 0 / 471.6 MB, free: 9.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1276, allocations: 0 / 471.6 MB, free: 9.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.418e-05/0.1276, allocations: 0 / 471.6 MB, free: 9.27 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: 166 * Number of variables: 166 Notification: Performance of Generate backend data structure: time 0.002379/0.13, allocations: 1.225 MB / 472.8 MB, free: 7.977 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.504e-05/0.1301, allocations: 15.89 kB / 472.8 MB, free: 7.961 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001605/0.1303, allocations: 110.7 kB / 472.9 MB, free: 7.844 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001619/0.1304, allocations: 91.81 kB / 473 MB, free: 7.754 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001102/0.1315, allocations: 0.6718 MB / 473.7 MB, free: 7.043 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.219e-05/0.1316, allocations: 45.31 kB / 473.7 MB, free: 7 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.929e-05/0.1317, allocations: 60 kB / 473.8 MB, free: 6.941 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001171/0.1329, allocations: 0.806 MB / 474.6 MB, free: 6.098 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.059e-05/0.1329, allocations: 3.938 kB / 474.6 MB, free: 6.094 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.168e-05/0.133, allocations: 31.94 kB / 474.6 MB, free: 6.062 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.675e-05/0.133, allocations: 33.3 kB / 474.7 MB, free: 6.027 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009492/0.134, allocations: 0.6179 MB / 475.3 MB, free: 5.406 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003453/0.1374, allocations: 2.63 MB / 477.9 MB, free: 2.66 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009712/0.1384, allocations: 0.6128 MB / 478.5 MB, free: 2.031 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006238/0.1391, allocations: 376 kB / 478.9 MB, free: 1.656 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.938e-05/0.1391, allocations: 4.438 kB / 478.9 MB, free: 1.652 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000564/0.1397, allocations: 479.1 kB / 479.4 MB, free: 1.141 MB / 350.1 MB Notification: Performance of pre-optimization done (n=63): time 3.837e-06/0.1397, allocations: 0 / 479.4 MB, free: 1.141 MB / 350.1 MB Notification: Performance of matching and sorting (n=64): time 0.002884/0.1426, allocations: 1.993 MB / 481.4 MB, free: 15.06 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000138/0.1427, allocations: 259.8 kB / 481.6 MB, free: 14.75 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006301/0.1434, allocations: 0.5625 MB / 482.2 MB, free: 14.18 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.239e-05/0.1434, allocations: 37.7 kB / 482.2 MB, free: 14.13 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00028/0.1437, allocations: 395.5 kB / 482.6 MB, free: 13.74 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001644/0.1439, allocations: 217 kB / 482.8 MB, free: 13.52 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001788/0.1441, allocations: 142.6 kB / 483 MB, free: 13.38 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001617/0.1442, allocations: 386.8 kB / 483.3 MB, free: 12.99 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000358/0.1446, allocations: 225.9 kB / 483.6 MB, free: 12.77 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004924/0.1451, allocations: 457.8 kB / 484 MB, free: 12.22 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008777/0.146, allocations: 0.8051 MB / 484.8 MB, free: 11.29 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/0.146, allocations: 3.938 kB / 484.8 MB, free: 11.29 MB / 366.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.001488/0.1475, allocations: 0.9521 MB / 485.8 MB, free: 10.31 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.743e-05/0.1475, allocations: 63.39 kB / 485.8 MB, free: 10.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.624e-05/0.1476, allocations: 11.94 kB / 485.8 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003825/0.148, allocations: 109.9 kB / 485.9 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004945/0.1485, allocations: 147.7 kB / 486.1 MB, free: 9.965 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002763/0.1512, allocations: 3.228 MB / 489.3 MB, free: 6.457 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004152/0.1517, allocations: 44.03 kB / 489.4 MB, free: 6.414 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.836e-05/0.1518, allocations: 47.97 kB / 489.4 MB, free: 6.367 MB / 366.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.0003804/0.1521, allocations: 350.6 kB / 489.7 MB, free: 6.004 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.714e-05/0.1522, allocations: 75.09 kB / 489.8 MB, free: 5.93 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001105/0.1534, allocations: 0.7899 MB / 490.6 MB, free: 5.121 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/0.1534, allocations: 8 kB / 490.6 MB, free: 5.113 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.1534, allocations: 7.984 kB / 490.6 MB, free: 5.105 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.665e-06/0.1534, allocations: 7.984 kB / 490.6 MB, free: 5.098 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00196/0.1554, allocations: 1.535 MB / 492.2 MB, free: 3.488 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.1554, allocations: 4 kB / 492.2 MB, free: 3.484 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005481/0.1559, allocations: 115.8 kB / 492.3 MB, free: 3.371 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.275e-06/0.156, allocations: 8.031 kB / 492.3 MB, free: 3.363 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.227e-05/0.156, allocations: 16 kB / 492.3 MB, free: 3.348 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.165e-06/0.156, allocations: 3.984 kB / 492.3 MB, free: 3.344 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.156, allocations: 4 kB / 492.3 MB, free: 3.34 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001541/0.1576, allocations: 1.21 MB / 493.5 MB, free: 2.094 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002554/0.1578, allocations: 184.2 kB / 493.7 MB, free: 1.895 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.819e-05/0.1579, allocations: 20.06 kB / 493.7 MB, free: 1.875 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003525/0.1583, allocations: 27.97 kB / 493.8 MB, free: 1.848 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001138/0.1584, allocations: 40.33 kB / 493.8 MB, free: 1.809 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.505e-05/0.1585, allocations: 63.86 kB / 493.9 MB, free: 1.746 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004611/0.159, allocations: 387.1 kB / 494.2 MB, free: 1.375 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.159, allocations: 0 / 494.2 MB, free: 1.375 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006208/0.1596, allocations: 184 kB / 494.4 MB, free: 1.195 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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.001798/0.1614, allocations: 1.78 MB / 496.2 MB, free: 15.37 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001691/0.1631, allocations: 1.11 MB / 497.3 MB, free: 14.21 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.1632, allocations: 0 / 497.3 MB, free: 14.21 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005361/0.1637, allocations: 497.3 kB / 497.8 MB, free: 13.7 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008146/0.1645, allocations: 157.3 kB / 497.9 MB, free: 13.55 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008143/0.1727, allocations: 6.448 MB / 0.4926 GB, free: 6.777 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006213/0.1733, allocations: 1.013 MB / 0.4936 GB, free: 5.738 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000485/0.1738, allocations: 157.8 kB / 0.4937 GB, free: 5.582 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003309/0.1742, allocations: 279.3 kB / 0.494 GB, free: 5.312 MB / 382.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1742, allocations: 3.938 kB / 0.494 GB, free: 5.309 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05425/0.2284, allocations: 13.87 MB / 0.5075 GB, free: 7.609 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.499/9.727, allocations: 11.88 kB / 0.5075 GB, free: 7.598 MB / 398.1 MB (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 & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 PowerSystems_PowerSystems_Examples_AC1ph_DC_Transformation_TapChanger.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe 2>&1)