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 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.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.00105/0.00105, allocations: 105.2 kB / 16.5 MB, free: 6.695 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.001052/0.001052, allocations: 194.4 kB / 17.42 MB, free: 6.09 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.346/1.346, allocations: 205.1 MB / 223.3 MB, free: 12.54 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1823/0.1823, allocations: 38 MB / 308.6 MB, free: 6.25 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.001516/0.001516, allocations: 63.91 kB / 374.7 MB, free: 4.016 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.255/0.2565, allocations: 55.24 MB / 430 MB, free: 19.91 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger): time 0.0067/0.2633, allocations: 8.95 MB / 438.9 MB, free: 10.92 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003243/0.2665, allocations: 2.28 MB / 441.2 MB, free: 8.629 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009283/0.2675, allocations: 63.62 kB / 441.3 MB, free: 8.566 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006414/0.2682, allocations: 210.8 kB / 441.5 MB, free: 8.359 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001151/0.2694, allocations: 0.533 MB / 442 MB, free: 7.824 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004184/0.2698, allocations: 187.8 kB / 442.2 MB, free: 7.641 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001266/0.2711, allocations: 1.944 MB / 444.1 MB, free: 5.691 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003895/0.2715, allocations: 286.6 kB / 444.4 MB, free: 5.41 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009344/0.2724, allocations: 489.7 kB / 444.9 MB, free: 4.93 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001074/0.2735, allocations: 0.6736 MB / 445.6 MB, free: 4.254 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001022/0.2736, allocations: 44 kB / 445.6 MB, free: 4.211 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001635/0.2738, allocations: 48 kB / 445.6 MB, free: 4.164 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003212/0.2741, allocations: 323 kB / 446 MB, free: 3.848 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004256/0.2745, allocations: 413.8 kB / 446.4 MB, free: 3.441 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006452/0.2752, allocations: 0.8835 MB / 447.3 MB, free: 2.555 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.163e-06/0.2752, allocations: 3.984 kB / 447.3 MB, free: 2.551 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2752, allocations: 0 / 447.3 MB, free: 2.551 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.288e-05/0.2752, allocations: 0 / 447.3 MB, free: 2.551 MB / 318.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.001969/0.2772, allocations: 1.217 MB / 448.5 MB, free: 1.27 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.726e-05/0.2773, allocations: 12.03 kB / 448.5 MB, free: 1.258 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.849e-05/0.2774, allocations: 118.6 kB / 448.6 MB, free: 1.133 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001196/0.2775, allocations: 95.81 kB / 448.7 MB, free: 1.039 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008083/0.2783, allocations: 0.664 MB / 449.4 MB, free: 344 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.863e-05/0.2784, allocations: 45.31 kB / 449.4 MB, free: 296 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.549e-05/0.2785, allocations: 60 kB / 449.5 MB, free: 236 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001184/0.2796, allocations: 0.8138 MB / 450.3 MB, free: 15.37 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.663e-05/0.2797, allocations: 0 / 450.3 MB, free: 15.37 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.886e-05/0.2797, allocations: 28 kB / 450.3 MB, free: 15.34 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001422/0.2799, allocations: 41.23 kB / 450.3 MB, free: 15.3 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008979/0.2808, allocations: 0.6218 MB / 451 MB, free: 14.68 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00337/0.2842, allocations: 2.633 MB / 453.6 MB, free: 11.94 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009838/0.2852, allocations: 0.621 MB / 454.2 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006138/0.2858, allocations: 371.2 kB / 454.6 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.452e-05/0.2858, allocations: 4.438 kB / 454.6 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000587/0.2864, allocations: 479.1 kB / 455.1 MB, free: 10.42 MB / 334.1 MB Notification: Performance of pre-optimization done (n=63): time 2.264e-06/0.2865, allocations: 0 / 455.1 MB, free: 10.42 MB / 334.1 MB Notification: Performance of matching and sorting (n=64): time 0.002823/0.2893, allocations: 1.989 MB / 457 MB, free: 8.336 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001505/0.2894, allocations: 251.8 kB / 457.3 MB, free: 8.035 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000606/0.2901, allocations: 0.5664 MB / 457.9 MB, free: 7.461 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.542e-05/0.2901, allocations: 37.7 kB / 457.9 MB, free: 7.418 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002722/0.2904, allocations: 399.5 kB / 458.3 MB, free: 7.02 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001479/0.2905, allocations: 209.1 kB / 458.5 MB, free: 6.812 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001847/0.2907, allocations: 146.7 kB / 458.6 MB, free: 6.66 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001714/0.2909, allocations: 386.8 kB / 459 MB, free: 6.273 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003358/0.2912, allocations: 225.9 kB / 459.2 MB, free: 6.055 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004686/0.2917, allocations: 453.8 kB / 459.7 MB, free: 5.512 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008315/0.2926, allocations: 0.8012 MB / 460.5 MB, free: 4.586 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.2926, allocations: 0 / 460.5 MB, free: 4.586 MB / 334.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.001394/0.294, allocations: 0.9559 MB / 461.4 MB, free: 3.605 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.047e-05/0.294, allocations: 59.41 kB / 461.5 MB, free: 3.535 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.484e-05/0.2941, allocations: 11.94 kB / 461.5 MB, free: 3.523 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003848/0.2944, allocations: 106 kB / 461.6 MB, free: 3.414 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004813/0.2949, allocations: 155.7 kB / 461.8 MB, free: 3.262 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002708/0.2977, allocations: 3 MB / 464.8 MB, free: 15.99 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004276/0.2981, allocations: 35.94 kB / 464.8 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.651e-05/0.2982, allocations: 59.94 kB / 464.8 MB, free: 15.9 MB / 350.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.0004985/0.2987, allocations: 346.6 kB / 465.2 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.892e-05/0.2988, allocations: 71.22 kB / 465.3 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001093/0.2999, allocations: 0.7936 MB / 466 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.031e-06/0.2999, allocations: 8 kB / 466.1 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.633e-06/0.2999, allocations: 0 / 466.1 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.271e-06/0.2999, allocations: 3.984 kB / 466.1 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001894/0.3018, allocations: 1.535 MB / 467.6 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.199e-06/0.3018, allocations: 0 / 467.6 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005136/0.3024, allocations: 115.9 kB / 467.7 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.624e-06/0.3024, allocations: 4 kB / 467.7 MB, free: 12.92 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.323e-05/0.3024, allocations: 23.98 kB / 467.7 MB, free: 12.9 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.4e-06/0.3024, allocations: 15.81 kB / 467.7 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.3025, allocations: 0 / 467.7 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001461/0.3039, allocations: 1.214 MB / 469 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002135/0.3041, allocations: 180.2 kB / 469.1 MB, free: 11.44 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.352e-05/0.3042, allocations: 16 kB / 469.2 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003057/0.3045, allocations: 31.91 kB / 469.2 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.249e-05/0.3046, allocations: 36.39 kB / 469.2 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.842e-05/0.3047, allocations: 59.86 kB / 469.3 MB, free: 11.3 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004183/0.3052, allocations: 395 kB / 469.7 MB, free: 10.92 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3052, allocations: 64 / 469.7 MB, free: 10.92 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006531/0.3058, allocations: 184 kB / 469.8 MB, free: 10.74 MB / 350.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.00183/0.3077, allocations: 1.787 MB / 471.6 MB, free: 8.906 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001413/0.3091, allocations: 1.012 MB / 472.6 MB, free: 7.844 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.3091, allocations: 0 / 472.6 MB, free: 7.844 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004903/0.3096, allocations: 497.2 kB / 473.1 MB, free: 7.332 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000804/0.3104, allocations: 151.2 kB / 473.3 MB, free: 7.18 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007852/0.3183, allocations: 6.707 MB / 480 MB, free: 160 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005484/0.3189, allocations: 1.013 MB / 481 MB, free: 15.12 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004768/0.3193, allocations: 153.8 kB / 481.1 MB, free: 14.96 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003161/0.3197, allocations: 275.3 kB / 481.4 MB, free: 14.7 MB / 366.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3197, allocations: 0 / 481.4 MB, free: 14.7 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02779/0.3475, allocations: 13.22 MB / 494.6 MB, free: 1.488 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001806/0.3477, allocations: 230.2 kB / 494.9 MB, free: 1.23 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.165/2.513, allocations: 0 / 494.9 MB, free: 1.23 MB / 366.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Transformation_TapChanger_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Transformation_TapChanger.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe 2>&1)