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.0008831/0.0008826, allocations: 85.22 kB / 16.31 MB, free: 5.641 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.001192/0.001192, allocations: 177.3 kB / 17.2 MB, free: 5.562 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.516/1.516, allocations: 205.4 MB / 223.4 MB, free: 5.535 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3033/0.3033, allocations: 38.06 MB / 309.7 MB, free: 8.879 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.0004895/0.0004895, allocations: 18.19 kB / 376.6 MB, free: 15.03 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.1144, allocations: 56.33 MB / 433 MB, free: 6.602 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger): time 0.00782/0.1223, allocations: 7.989 MB / 440.9 MB, free: 14.58 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004635/0.127, allocations: 2.171 MB / 443.1 MB, free: 12.4 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006239/0.1276, allocations: 59.56 kB / 443.2 MB, free: 12.34 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005501/0.1282, allocations: 222.5 kB / 443.4 MB, free: 12.12 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001496/0.1297, allocations: 0.622 MB / 444 MB, free: 11.5 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007323/0.1304, allocations: 275.6 kB / 444.3 MB, free: 11.23 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001542/0.132, allocations: 1.523 MB / 445.8 MB, free: 9.703 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003913/0.1324, allocations: 250.1 kB / 446 MB, free: 9.445 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007192/0.1331, allocations: 469.7 kB / 446.5 MB, free: 8.984 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009218/0.1341, allocations: 0.6425 MB / 447.1 MB, free: 8.34 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.577e-05/0.1342, allocations: 32 kB / 447.2 MB, free: 8.309 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000122/0.1343, allocations: 36 kB / 447.2 MB, free: 8.273 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002914/0.1346, allocations: 303.1 kB / 447.5 MB, free: 7.977 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001963/0.1348, allocations: 177.3 kB / 447.7 MB, free: 7.797 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006278/0.1354, allocations: 0.6663 MB / 448.3 MB, free: 7.129 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.1355, allocations: 0 / 448.3 MB, free: 7.129 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1355, allocations: 3.938 kB / 448.4 MB, free: 7.125 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.113e-05/0.1355, allocations: 0 / 448.4 MB, free: 7.125 MB / 382.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.001745/0.1372, allocations: 1.085 MB / 449.4 MB, free: 5.973 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.256e-05/0.1373, allocations: 12.02 kB / 449.4 MB, free: 5.961 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001315/0.1374, allocations: 106.5 kB / 449.6 MB, free: 5.848 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001478/0.1376, allocations: 98.78 kB / 449.6 MB, free: 5.75 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001052/0.1386, allocations: 0.6438 MB / 450.3 MB, free: 5.066 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.276e-05/0.1387, allocations: 53.31 kB / 450.3 MB, free: 5.016 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.054e-05/0.1388, allocations: 59.98 kB / 450.4 MB, free: 4.957 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001124/0.1399, allocations: 0.8059 MB / 451.2 MB, free: 4.113 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.489e-05/0.1399, allocations: 8 kB / 451.2 MB, free: 4.105 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.682e-05/0.14, allocations: 28 kB / 451.2 MB, free: 4.078 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.304e-05/0.1401, allocations: 29.3 kB / 451.3 MB, free: 4.047 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008474/0.1409, allocations: 0.6178 MB / 451.9 MB, free: 3.43 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003211/0.1441, allocations: 2.634 MB / 454.5 MB, free: 0.6836 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009151/0.1451, allocations: 0.6089 MB / 455.1 MB, free: 60 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2074/0.3525, allocations: 369.7 kB / 455.5 MB, free: 52.09 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.21e-05/0.3526, allocations: 9.719 kB / 455.5 MB, free: 52.09 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005912/0.3532, allocations: 485.5 kB / 456 MB, free: 51.9 MB / 382.1 MB Notification: Performance of pre-optimization done (n=63): time 2.785e-06/0.3532, allocations: 0 / 456 MB, free: 51.9 MB / 382.1 MB Notification: Performance of matching and sorting (n=64): time 0.002519/0.3557, allocations: 1.975 MB / 458 MB, free: 51.29 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.375e-05/0.3558, allocations: 253.2 kB / 458.2 MB, free: 51.01 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005267/0.3564, allocations: 0.558 MB / 458.8 MB, free: 50.88 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.13e-05/0.3564, allocations: 38.84 kB / 458.8 MB, free: 50.85 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002342/0.3566, allocations: 394.4 kB / 459.2 MB, free: 50.66 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001133/0.3568, allocations: 216.7 kB / 459.4 MB, free: 50.54 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.813e-05/0.3568, allocations: 16.28 kB / 459.4 MB, free: 50.54 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001022/0.3569, allocations: 386.6 kB / 459.8 MB, free: 50.22 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002853/0.3572, allocations: 220.1 kB / 460 MB, free: 50.22 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003993/0.3576, allocations: 460.6 kB / 460.5 MB, free: 49.96 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003754/0.358, allocations: 332.9 kB / 460.8 MB, free: 49.89 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/0.358, allocations: 2.844 kB / 460.8 MB, free: 49.89 MB / 382.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.001345/0.3593, allocations: 0.9471 MB / 461.7 MB, free: 49.71 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.955e-05/0.3594, allocations: 61.03 kB / 461.8 MB, free: 49.64 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.278e-05/0.3594, allocations: 13.5 kB / 461.8 MB, free: 49.64 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003597/0.3598, allocations: 107.2 kB / 461.9 MB, free: 49.63 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004752/0.3603, allocations: 148.4 kB / 462 MB, free: 49.62 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002158/0.3624, allocations: 2.991 MB / 465 MB, free: 47.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004359/0.3629, allocations: 44.58 kB / 465.1 MB, free: 47.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.831e-05/0.363, allocations: 59.12 kB / 465.1 MB, free: 47.09 MB / 382.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,$whenCondition3,$whenCondition4,$PRE.tapRelay1.cnt_1,tapRelay1.cnt_1,$PRE.tapRelay1.cnt_2,tapRelay1.cnt_2,$whenCondition1,$whenCondition2,$PRE.tapRelay2.cnt_1,tapRelay2.cnt_1,$PRE.tapRelay2.cnt_2,tapRelay2.cnt_2,$PRE.tapRelay2.tap_1,tapRelay2.tap_1,$PRE.tapRelay2.tap_2,tapRelay2.tap_2,$PRE.tapRelay1.tap_1,tapRelay1.tap_1,$PRE.tapRelay1.tap_2,tapRelay1.tap_2) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004215/0.3634, allocations: 348.5 kB / 465.5 MB, free: 46.9 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.56e-05/0.3635, allocations: 78.36 kB / 465.6 MB, free: 46.86 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001155/0.3647, allocations: 0.7896 MB / 466.3 MB, free: 46.74 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.129e-06/0.3647, allocations: 3.344 kB / 466.4 MB, free: 46.74 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.3647, allocations: 3.281 kB / 466.4 MB, free: 46.74 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.897e-06/0.3647, allocations: 7.219 kB / 466.4 MB, free: 46.73 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001716/0.3664, allocations: 1.534 MB / 467.9 MB, free: 46.02 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/0.3664, allocations: 4.734 kB / 467.9 MB, free: 46.02 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004591/0.3669, allocations: 117.6 kB / 468 MB, free: 46.01 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.69e-06/0.3669, allocations: 3.25 kB / 468 MB, free: 46.01 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.632e-05/0.367, allocations: 21.27 kB / 468 MB, free: 46 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.516e-06/0.367, allocations: 0 / 468 MB, free: 46 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.367, allocations: 3.344 kB / 468 MB, free: 46 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001256/0.3682, allocations: 1.203 MB / 469.2 MB, free: 45.43 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001785/0.3684, allocations: 204.5 kB / 469.4 MB, free: 45.27 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.413e-05/0.3685, allocations: 10.75 kB / 469.5 MB, free: 45.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002778/0.3688, allocations: 31.5 kB / 469.5 MB, free: 45.26 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.372e-05/0.3689, allocations: 45.66 kB / 469.5 MB, free: 45.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.12e-05/0.369, allocations: 54.58 kB / 469.6 MB, free: 45.25 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003233/0.3693, allocations: 387.3 kB / 470 MB, free: 45.07 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3693, allocations: 2.719 kB / 470 MB, free: 45.07 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005816/0.3699, allocations: 179.5 kB / 470.1 MB, free: 45.05 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00138/0.3713, allocations: 1.77 MB / 471.9 MB, free: 43.93 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001232/0.3725, allocations: 1.004 MB / 472.9 MB, free: 43.39 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.3725, allocations: 3.469 kB / 472.9 MB, free: 43.39 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004214/0.373, allocations: 490 kB / 473.4 MB, free: 43.12 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000726/0.3737, allocations: 145.3 kB / 473.5 MB, free: 43.08 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005771/0.3795, allocations: 4.592 MB / 478.1 MB, free: 40.67 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004269/0.38, allocations: 1.008 MB / 479.1 MB, free: 39.94 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004851/0.3804, allocations: 157.6 kB / 479.3 MB, free: 39.91 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000275/0.3807, allocations: 276.2 kB / 479.6 MB, free: 39.7 MB / 382.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3807, allocations: 0 / 479.6 MB, free: 39.7 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03334/0.4141, allocations: 13.18 MB / 492.7 MB, free: 38.66 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001509/0.4143, allocations: 214.8 kB / 492.9 MB, free: 38.41 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.323/2.737, allocations: 3.938 kB / 493 MB, free: 38.41 MB / 382.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/linux/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) Environment - environmentSimulation: