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.0008176/0.0008176, allocations: 90.11 kB / 16.65 MB, free: 6.535 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.0009451/0.0009452, allocations: 175.5 kB / 17.56 MB, free: 6.18 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.401/1.401, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1735/0.1735, allocations: 38.04 MB / 310.1 MB, free: 6.004 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.0005513/0.0005511, allocations: 12 kB / 377.3 MB, free: 2.699 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2458/0.2463, allocations: 56.33 MB / 433.6 MB, free: 18.66 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger): time 0.005984/0.2524, allocations: 8.494 MB / 442.1 MB, free: 10.13 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002746/0.2551, allocations: 2.253 MB / 444.3 MB, free: 7.867 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003913/0.2556, allocations: 55.62 kB / 444.4 MB, free: 7.812 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005129/0.2561, allocations: 214.8 kB / 444.6 MB, free: 7.602 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008634/0.257, allocations: 0.5213 MB / 445.1 MB, free: 7.078 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003044/0.2573, allocations: 191.8 kB / 445.3 MB, free: 6.891 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001171/0.2585, allocations: 1.948 MB / 447.3 MB, free: 4.938 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003433/0.2588, allocations: 286.6 kB / 447.5 MB, free: 4.656 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004499/0.2593, allocations: 461.7 kB / 448 MB, free: 4.203 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006434/0.2599, allocations: 0.654 MB / 448.6 MB, free: 3.547 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.001e-05/0.26, allocations: 32 kB / 448.7 MB, free: 3.516 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.972e-05/0.2601, allocations: 40 kB / 448.7 MB, free: 3.477 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002081/0.2603, allocations: 307 kB / 449 MB, free: 3.176 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002712/0.2606, allocations: 419.5 kB / 449.4 MB, free: 2.758 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004977/0.2611, allocations: 0.8599 MB / 450.3 MB, free: 1.895 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.2611, allocations: 0 / 450.3 MB, free: 1.895 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.2611, allocations: 0 / 450.3 MB, free: 1.895 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.957e-06/0.2611, allocations: 0 / 450.3 MB, free: 1.895 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.001433/0.2626, allocations: 1.077 MB / 451.4 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.647e-05/0.2626, allocations: 12.03 kB / 451.4 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001103/0.2627, allocations: 118.6 kB / 451.5 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001142/0.2628, allocations: 91.81 kB / 451.6 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008874/0.2637, allocations: 0.6641 MB / 452.2 MB, free: 15.82 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.119e-05/0.2638, allocations: 45.31 kB / 452.3 MB, free: 15.77 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.333e-05/0.2639, allocations: 67.98 kB / 452.4 MB, free: 15.7 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001101/0.265, allocations: 0.806 MB / 453.2 MB, free: 14.86 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.764e-05/0.265, allocations: 0 / 453.2 MB, free: 14.86 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.689e-05/0.2651, allocations: 24 kB / 453.2 MB, free: 14.84 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.917e-05/0.2651, allocations: 41.23 kB / 453.2 MB, free: 14.8 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008863/0.266, allocations: 0.614 MB / 453.8 MB, free: 14.18 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003095/0.2691, allocations: 2.645 MB / 456.5 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008589/0.27, allocations: 0.6094 MB / 457.1 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005636/0.2706, allocations: 374.5 kB / 457.5 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.324e-05/0.2706, allocations: 12.44 kB / 457.5 MB, free: 10.42 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005371/0.2712, allocations: 475.1 kB / 457.9 MB, free: 9.914 MB / 334.1 MB Notification: Performance of pre-optimization done (n=63): time 1.713e-06/0.2712, allocations: 4 kB / 457.9 MB, free: 9.91 MB / 334.1 MB Notification: Performance of matching and sorting (n=64): time 0.00257/0.2738, allocations: 1.985 MB / 459.9 MB, free: 7.832 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001315/0.2739, allocations: 259.8 kB / 460.2 MB, free: 7.523 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005481/0.2745, allocations: 0.5547 MB / 460.7 MB, free: 6.961 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.895e-05/0.2745, allocations: 41.69 kB / 460.8 MB, free: 6.914 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002606/0.2748, allocations: 399.5 kB / 461.2 MB, free: 6.516 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001447/0.2749, allocations: 213.2 kB / 461.4 MB, free: 6.305 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.033e-05/0.275, allocations: 73.67 kB / 461.4 MB, free: 6.227 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001526/0.2752, allocations: 382.8 kB / 461.8 MB, free: 5.844 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003215/0.2755, allocations: 221.9 kB / 462 MB, free: 5.625 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004551/0.276, allocations: 465.8 kB / 462.5 MB, free: 5.07 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008329/0.2768, allocations: 0.7934 MB / 463.3 MB, free: 4.152 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.2768, allocations: 4 kB / 463.3 MB, free: 4.148 MB / 334.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.001381/0.2782, allocations: 0.9519 MB / 464.2 MB, free: 3.172 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.519e-05/0.2783, allocations: 67.39 kB / 464.3 MB, free: 3.094 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.357e-05/0.2783, allocations: 15.92 kB / 464.3 MB, free: 3.078 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003534/0.2787, allocations: 110 kB / 464.4 MB, free: 2.965 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004641/0.2791, allocations: 147.7 kB / 464.6 MB, free: 2.82 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002425/0.2816, allocations: 2.996 MB / 467.6 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003578/0.2819, allocations: 47.91 kB / 467.6 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.601e-05/0.282, allocations: 51.97 kB / 467.7 MB, free: 15.46 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.0003506/0.2824, allocations: 358.6 kB / 468 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.571e-05/0.2825, allocations: 71.16 kB / 468.1 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001037/0.2835, allocations: 0.7858 MB / 468.9 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/0.2835, allocations: 8 kB / 468.9 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.734e-06/0.2835, allocations: 0 / 468.9 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.2835, allocations: 0 / 468.9 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001789/0.2853, allocations: 1.546 MB / 470.4 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.2853, allocations: 4.031 kB / 470.4 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004844/0.2858, allocations: 107.9 kB / 470.5 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.3e-06/0.2859, allocations: 4 kB / 470.5 MB, free: 12.47 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.874e-05/0.2859, allocations: 23.98 kB / 470.6 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.232e-06/0.2859, allocations: 11.88 kB / 470.6 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.2859, allocations: 192 / 470.6 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001399/0.2873, allocations: 1.211 MB / 471.8 MB, free: 11.19 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001912/0.2875, allocations: 188.1 kB / 472 MB, free: 10.99 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.197e-05/0.2876, allocations: 16 kB / 472 MB, free: 10.97 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003037/0.2879, allocations: 35.92 kB / 472 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.511e-05/0.288, allocations: 40.36 kB / 472.1 MB, free: 10.9 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.535e-05/0.2881, allocations: 63.92 kB / 472.1 MB, free: 10.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003677/0.2885, allocations: 391.1 kB / 472.5 MB, free: 10.46 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2885, allocations: 0 / 472.5 MB, free: 10.46 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005316/0.289, allocations: 180 kB / 472.7 MB, free: 10.29 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.001716/0.2907, allocations: 1.791 MB / 474.5 MB, free: 8.449 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001286/0.292, allocations: 1.015 MB / 475.5 MB, free: 7.383 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.292, allocations: 0 / 475.5 MB, free: 7.383 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005031/0.2926, allocations: 498.6 kB / 476 MB, free: 6.871 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007881/0.2934, allocations: 138.9 kB / 476.1 MB, free: 6.734 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007744/0.3011, allocations: 6.775 MB / 482.9 MB, free: 15.64 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005732/0.3017, allocations: 1.009 MB / 483.9 MB, free: 14.6 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004482/0.3022, allocations: 157.8 kB / 484 MB, free: 14.45 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003183/0.3025, allocations: 283.3 kB / 484.3 MB, free: 14.17 MB / 366.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3025, allocations: 0 / 484.3 MB, free: 14.17 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02618/0.3287, allocations: 13.06 MB / 497.4 MB, free: 1.141 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001709/0.3289, allocations: 229.3 kB / 497.6 MB, free: 0.8828 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.008/2.337, allocations: 3.938 kB / 497.6 MB, free: 0.8789 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)