Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.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.AC3ph.Transformation.TapChanger,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Transformation_TapChanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Transformation.TapChanger,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_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.001647/0.001647, allocations: 107 kB / 17.06 MB, free: 5.82 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.002029/0.002028, allocations: 195.9 kB / 18 MB, free: 4.965 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.876/1.876, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.2139/0.2139, allocations: 38.04 MB / 329.9 MB, free: 8.727 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002475/0.002475, allocations: 67.91 kB / 457.6 MB, free: 7.375 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5787/0.5812, allocations: 58.05 MB / 0.5036 GB, free: 7.73 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Transformation.TapChanger): time 0.01724/0.5985, allocations: 9.081 MB / 0.5125 GB, free: 1.344 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01159/0.6102, allocations: 3.366 MB / 0.5158 GB, free: 14.97 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001845/0.6121, allocations: 34.75 kB / 0.5158 GB, free: 14.96 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005421/0.6176, allocations: 1.043 MB / 0.5168 GB, free: 14.35 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00638/0.624, allocations: 1.115 MB / 0.5179 GB, free: 13.75 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004516/0.6286, allocations: 0.6875 MB / 0.5186 GB, free: 13.45 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.007861/0.6365, allocations: 2.387 MB / 0.5209 GB, free: 12.46 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003104/0.6396, allocations: 0.8199 MB / 0.5217 GB, free: 12.1 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005437/0.6451, allocations: 1.001 MB / 0.5227 GB, free: 11.67 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005345/0.6505, allocations: 1.343 MB / 0.524 GB, free: 11.2 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001271/0.6519, allocations: 129.3 kB / 0.5241 GB, free: 11.2 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00456/0.6565, allocations: 0.5724 MB / 0.5247 GB, free: 11.05 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003784/0.6603, allocations: 0.9296 MB / 0.5256 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005371/0.6657, allocations: 0.8995 MB / 0.5265 GB, free: 10.23 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009159/0.6749, allocations: 2.353 MB / 0.5288 GB, free: 9.184 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.285e-06/0.675, allocations: 0 / 0.5288 GB, free: 9.184 MB / 398.1 MB Notification: Performance of FrontEnd: time 6.181e-06/0.675, allocations: 0 / 0.5288 GB, free: 9.184 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000139/0.6752, allocations: 7.875 kB / 0.5288 GB, free: 9.176 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 423 * Number of variables: 423 Notification: Performance of Generate backend data structure: time 0.01162/0.6868, allocations: 2.056 MB / 0.5308 GB, free: 7.645 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.307e-05/0.6869, allocations: 16.78 kB / 0.5308 GB, free: 7.637 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001393/0.6883, allocations: 249.5 kB / 0.531 GB, free: 7.445 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004411/0.6928, allocations: 362.9 kB / 0.5314 GB, free: 7.266 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005092/0.6979, allocations: 1.078 MB / 0.5324 GB, free: 6.496 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002389/0.6982, allocations: 103.9 kB / 0.5325 GB, free: 6.449 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001025/0.6992, allocations: 171.3 kB / 0.5327 GB, free: 6.383 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009232/0.7085, allocations: 2.32 MB / 0.535 GB, free: 4.895 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001406/0.7087, allocations: 19.98 kB / 0.535 GB, free: 4.879 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005454/0.7092, allocations: 56.58 kB / 0.535 GB, free: 4.84 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001088/0.7103, allocations: 225.5 kB / 0.5352 GB, free: 4.766 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008418/0.7188, allocations: 1.844 MB / 0.537 GB, free: 3.895 MB / 398.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.02522/0.7441, allocations: 9.538 MB / 0.5464 GB, free: 11.82 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00486/0.749, allocations: 1.539 MB / 0.5479 GB, free: 10.67 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001864/0.7509, allocations: 0.602 MB / 0.5485 GB, free: 10.07 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001516/0.7511, allocations: 28.97 kB / 0.5485 GB, free: 10.04 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002247/0.7533, allocations: 0.8528 MB / 0.5493 GB, free: 9.141 MB / 414.1 MB Notification: Performance of pre-optimization done (n=130): time 8.125e-06/0.7534, allocations: 7.938 kB / 0.5493 GB, free: 9.133 MB / 414.1 MB Notification: Performance of matching and sorting (n=131): time 0.01266/0.766, allocations: 4.06 MB / 0.5533 GB, free: 4.977 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003548/0.7664, allocations: 286.3 kB / 0.5536 GB, free: 4.637 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002365/0.7688, allocations: 0.9186 MB / 0.5545 GB, free: 3.695 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002185/0.7691, allocations: 49.7 kB / 0.5545 GB, free: 3.641 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001139/0.7703, allocations: 0.7849 MB / 0.5553 GB, free: 2.844 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007902/0.7711, allocations: 480 kB / 0.5557 GB, free: 2.371 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009517/0.7721, allocations: 327.4 kB / 0.556 GB, free: 2.047 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002408/0.7723, allocations: 362 kB / 0.5564 GB, free: 1.688 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001617/0.774, allocations: 0.5855 MB / 0.557 GB, free: 1.102 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002295/0.7763, allocations: 1.174 MB / 0.5581 GB, free: 15.66 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004601/0.7809, allocations: 1.997 MB / 0.5601 GB, free: 13.38 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.791e-05/0.781, allocations: 8 kB / 0.5601 GB, free: 13.37 MB / 430.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.008533/0.7895, allocations: 2.498 MB / 0.5625 GB, free: 10.84 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001183/0.7897, allocations: 71.39 kB / 0.5626 GB, free: 10.76 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00528/0.795, allocations: 1.559 MB / 0.5641 GB, free: 9.184 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003113/0.7981, allocations: 0.5496 MB / 0.5646 GB, free: 8.625 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002266/0.8004, allocations: 323.5 kB / 0.5649 GB, free: 8.309 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01829/0.8188, allocations: 9.467 MB / 0.5742 GB, free: 14.29 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002363/0.8212, allocations: 76 kB / 0.5743 GB, free: 14.21 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005573/0.8218, allocations: 103.9 kB / 0.5744 GB, free: 14.11 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * 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 (175): * Single equations (assignments): 169 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,12,100.0%), (2,11,100.0%), (2,12,100.0%), (2,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002453/0.8243, allocations: 0.6026 MB / 0.5749 GB, free: 13.49 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006547/0.825, allocations: 131.1 kB / 0.5751 GB, free: 13.36 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005378/0.8304, allocations: 1.539 MB / 0.5766 GB, free: 11.8 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.025e-05/0.8304, allocations: 15.98 kB / 0.5766 GB, free: 11.79 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.73e-05/0.8305, allocations: 3.938 kB / 0.5766 GB, free: 11.78 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.48e-05/0.8305, allocations: 7.984 kB / 0.5766 GB, free: 11.77 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01034/0.8409, allocations: 3.064 MB / 0.5796 GB, free: 8.621 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.788e-05/0.8409, allocations: 4 kB / 0.5796 GB, free: 8.617 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002732/0.8437, allocations: 299.8 kB / 0.5799 GB, free: 8.324 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.651e-05/0.8437, allocations: 4 kB / 0.5799 GB, free: 8.32 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001926/0.844, allocations: 35.98 kB / 0.5799 GB, free: 8.285 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.491e-05/0.844, allocations: 7.984 kB / 0.5799 GB, free: 8.277 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.116e-05/0.844, allocations: 11.94 kB / 0.5799 GB, free: 8.266 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006523/0.8506, allocations: 2.326 MB / 0.5822 GB, free: 5.891 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00115/0.8517, allocations: 300.2 kB / 0.5825 GB, free: 5.578 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004045/0.8522, allocations: 31.94 kB / 0.5825 GB, free: 5.547 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001119/0.8533, allocations: 43.97 kB / 0.5826 GB, free: 5.504 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002762/0.8536, allocations: 80.77 kB / 0.5826 GB, free: 5.426 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002142/0.8538, allocations: 79.92 kB / 0.5827 GB, free: 5.348 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001614/0.8555, allocations: 0.6025 MB / 0.5833 GB, free: 4.734 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.7e-07/0.8555, allocations: 0 / 0.5833 GB, free: 4.734 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002911/0.8584, allocations: 424 kB / 0.5837 GB, free: 4.32 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (trafo1.i1[1],trafo1.i1[2],trafo1.i1[3],trafo2.i1[1],trafo2.i1[2],trafo2.i1[3]) * 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 (121): * Single equations (assignments): 118 * 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.006236/0.8647, allocations: 2.906 MB / 0.5865 GB, free: 1.348 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006418/0.8711, allocations: 2.34 MB / 0.5888 GB, free: 14.94 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.203e-06/0.8712, allocations: 3.938 kB / 0.5888 GB, free: 14.93 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002455/0.8736, allocations: 0.8755 MB / 0.5897 GB, free: 14.03 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002723/0.8764, allocations: 233.7 kB / 0.5899 GB, free: 13.81 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03696/0.9134, allocations: 13.13 MB / 0.6027 GB, free: 15.95 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002281/0.9157, allocations: 1.458 MB / 0.6042 GB, free: 14.46 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00203/0.9178, allocations: 466.3 kB / 0.6046 GB, free: 14 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00125/0.9191, allocations: 0.5696 MB / 0.6052 GB, free: 13.43 MB / 478.1 MB Notification: Performance of SimCode: time 9.92e-07/0.9191, allocations: 0 / 0.6052 GB, free: 13.43 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.105/2.024, allocations: 27.24 MB / 0.6318 GB, free: 2.383 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 20.49/22.52, allocations: 4.062 kB / 0.6318 GB, free: 2.379 MB / 494.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Transformation.TapChanger.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Transformation.TapChanger.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Transformation.TapChanger.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Transformation.TapChanger.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Transformation.TapChanger_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0016 PowerSystems_PowerSystems_Examples_AC3ph_Transformation_TapChanger.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Transformation.TapChanger.pipe 2>&1)