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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.001271/0.001271, allocations: 103 kB / 16.51 MB, free: 6.645 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.001384/0.001384, allocations: 195.1 kB / 17.42 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.299/1.299, allocations: 205.1 MB / 223.3 MB, free: 12.46 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1673/0.1673, allocations: 37.99 MB / 308.6 MB, free: 6.242 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001284/0.001284, allocations: 71.03 kB / 374.7 MB, free: 4.016 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1844/0.1856, allocations: 55.24 MB / 430 MB, free: 19.91 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Transformation.TapChanger): time 0.00732/0.193, allocations: 10.71 MB / 440.7 MB, free: 9.168 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00565/0.1987, allocations: 3.985 MB / 444.7 MB, free: 5.168 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001232/0.1999, allocations: 63.56 kB / 444.7 MB, free: 5.105 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002325/0.2023, allocations: 0.9992 MB / 445.7 MB, free: 4.105 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002067/0.2044, allocations: 1.055 MB / 446.8 MB, free: 3.047 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001425/0.2058, allocations: 0.6239 MB / 447.4 MB, free: 2.422 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003186/0.209, allocations: 4.13 MB / 451.5 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001269/0.2103, allocations: 0.7952 MB / 452.3 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001538/0.2119, allocations: 0.8285 MB / 453.1 MB, free: 12.63 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002051/0.2139, allocations: 1.445 MB / 454.6 MB, free: 11.18 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003286/0.2143, allocations: 80 kB / 454.7 MB, free: 11.1 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001236/0.2155, allocations: 0.5694 MB / 455.2 MB, free: 10.53 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009482/0.2165, allocations: 0.8845 MB / 456.1 MB, free: 9.645 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009713/0.2174, allocations: 0.8432 MB / 457 MB, free: 8.797 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001964/0.2194, allocations: 2.262 MB / 459.2 MB, free: 6.527 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.2194, allocations: 0 / 459.2 MB, free: 6.527 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.464e-06/0.2194, allocations: 3.984 kB / 459.2 MB, free: 6.523 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.553e-05/0.2195, allocations: 0 / 459.2 MB, free: 6.523 MB / 334.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.002934/0.2224, allocations: 2.015 MB / 461.2 MB, free: 4.438 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.745e-05/0.2224, allocations: 12.03 kB / 461.3 MB, free: 4.426 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000244/0.2227, allocations: 236.8 kB / 461.5 MB, free: 4.184 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00162/0.2243, allocations: 350.4 kB / 461.8 MB, free: 3.84 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001459/0.2258, allocations: 1.036 MB / 462.9 MB, free: 2.762 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.294e-05/0.2259, allocations: 103.1 kB / 463 MB, free: 2.66 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000282/0.2262, allocations: 159.9 kB / 463.1 MB, free: 2.504 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003105/0.2293, allocations: 2.332 MB / 465.5 MB, free: 16 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.003e-05/0.2293, allocations: 11.88 kB / 465.5 MB, free: 4 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001512/0.2295, allocations: 60.03 kB / 465.5 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004939/0.23, allocations: 222.7 kB / 465.7 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002719/0.2327, allocations: 1.85 MB / 467.6 MB, free: 13.87 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.009852/0.2426, allocations: 9.571 MB / 477.2 MB, free: 3.789 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002055/0.2447, allocations: 1.547 MB / 478.7 MB, free: 2.191 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007715/0.2454, allocations: 0.6059 MB / 479.3 MB, free: 1.582 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.541e-05/0.2455, allocations: 24.98 kB / 479.3 MB, free: 1.555 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00106/0.2466, allocations: 0.8489 MB / 480.2 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of pre-optimization done (n=130): time 3.156e-06/0.2466, allocations: 4 kB / 480.2 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of matching and sorting (n=131): time 0.005628/0.2523, allocations: 4.019 MB / 484.2 MB, free: 12.54 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001415/0.2524, allocations: 286.3 kB / 484.5 MB, free: 12.2 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001083/0.2535, allocations: 0.9068 MB / 485.4 MB, free: 11.27 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.633e-05/0.2536, allocations: 53.7 kB / 485.5 MB, free: 11.21 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006004/0.2542, allocations: 0.7669 MB / 486.2 MB, free: 10.43 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003497/0.2546, allocations: 461.6 kB / 486.7 MB, free: 9.977 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003984/0.255, allocations: 319.2 kB / 487 MB, free: 9.66 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001652/0.2552, allocations: 361.9 kB / 487.3 MB, free: 9.301 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008372/0.256, allocations: 0.5739 MB / 487.9 MB, free: 8.727 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001213/0.2572, allocations: 1.171 MB / 489.1 MB, free: 7.289 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002363/0.2596, allocations: 2.008 MB / 491.1 MB, free: 4.992 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.636e-06/0.2596, allocations: 4 kB / 491.1 MB, free: 4.988 MB / 366.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.004254/0.2639, allocations: 2.494 MB / 493.6 MB, free: 2.461 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.753e-05/0.2639, allocations: 67.41 kB / 493.7 MB, free: 2.383 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002672/0.2666, allocations: 1.573 MB / 495.2 MB, free: 0.7969 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001494/0.2681, allocations: 0.5404 MB / 495.8 MB, free: 252 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00101/0.2692, allocations: 323.5 kB / 496.1 MB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009031/0.2782, allocations: 8.711 MB / 0.493 GB, free: 6.695 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001071/0.2793, allocations: 71.97 kB / 0.493 GB, free: 6.625 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001524/0.2795, allocations: 99.95 kB / 0.4931 GB, free: 6.527 MB / 382.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.0009792/0.2805, allocations: 0.5959 MB / 0.4937 GB, free: 5.91 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001714/0.2806, allocations: 122.5 kB / 0.4938 GB, free: 5.789 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002247/0.2829, allocations: 1.551 MB / 0.4953 GB, free: 4.215 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.085e-05/0.2829, allocations: 15.94 kB / 0.4954 GB, free: 4.199 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.2829, allocations: 0 / 0.4954 GB, free: 4.199 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.19e-05/0.2829, allocations: 15.91 kB / 0.4954 GB, free: 4.184 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004082/0.287, allocations: 3.064 MB / 0.4984 GB, free: 1.027 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.841e-06/0.287, allocations: 8 kB / 0.4984 GB, free: 1.02 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00126/0.2883, allocations: 299.8 kB / 0.4987 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.245e-06/0.2883, allocations: 4 kB / 0.4987 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.141e-05/0.2884, allocations: 35.98 kB / 0.4987 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.071e-06/0.2884, allocations: 4 kB / 0.4987 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.2884, allocations: 4 kB / 0.4987 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002895/0.2913, allocations: 2.324 MB / 0.501 GB, free: 14.3 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004781/0.2918, allocations: 299.5 kB / 0.5013 GB, free: 13.99 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001389/0.292, allocations: 28 kB / 0.5013 GB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005448/0.2925, allocations: 43.97 kB / 0.5013 GB, free: 13.92 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001593/0.2927, allocations: 84.77 kB / 0.5014 GB, free: 13.84 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001151/0.2928, allocations: 75.92 kB / 0.5015 GB, free: 13.77 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007575/0.2936, allocations: 0.5986 MB / 0.5021 GB, free: 13.16 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2936, allocations: 4 kB / 0.5021 GB, free: 13.15 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001375/0.295, allocations: 424 kB / 0.5025 GB, free: 12.74 MB / 398.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.003237/0.2982, allocations: 2.912 MB / 0.5053 GB, free: 9.766 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003386/0.3016, allocations: 2.319 MB / 0.5076 GB, free: 7.371 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.3016, allocations: 0 / 0.5076 GB, free: 7.371 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001026/0.3027, allocations: 0.8726 MB / 0.5084 GB, free: 6.473 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001176/0.3039, allocations: 216 kB / 0.5086 GB, free: 6.258 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02254/0.3264, allocations: 14.25 MB / 0.5226 GB, free: 7.098 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001531/0.328, allocations: 1.461 MB / 0.524 GB, free: 5.605 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001336/0.3293, allocations: 466.3 kB / 0.5244 GB, free: 5.145 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007431/0.3301, allocations: 0.5657 MB / 0.525 GB, free: 4.578 MB / 414.1 MB Notification: Performance of SimCode: time 6.52e-07/0.3301, allocations: 0 / 0.525 GB, free: 4.578 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2303/0.5604, allocations: 25.86 MB / 0.5502 GB, free: 91.73 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001831/0.5606, allocations: 222.3 kB / 0.5504 GB, free: 91.48 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.702/3.263, allocations: 0 / 0.5504 GB, free: 91.48 MB / 414.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Transformation_TapChanger_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Transformation_TapChanger.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Transformation.TapChanger.pipe 2>&1)