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.00102/0.001021, allocations: 91.84 kB / 16.3 MB, free: 5.996 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.0009742/0.0009743, allocations: 185.6 kB / 17.2 MB, free: 5.91 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.406/1.406, allocations: 205.4 MB / 223.4 MB, free: 5.52 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3281/0.3281, allocations: 38.05 MB / 309.7 MB, free: 8.855 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.0005515/0.0005516, allocations: 12 kB / 376.6 MB, free: 15.07 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1203/0.1208, allocations: 56.34 MB / 432.9 MB, free: 6.629 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger): time 0.00781/0.1287, allocations: 7.598 MB / 440.5 MB, free: 15 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004201/0.1329, allocations: 2.215 MB / 442.7 MB, free: 12.78 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000665/0.1336, allocations: 59.56 kB / 442.8 MB, free: 12.72 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005397/0.1342, allocations: 194.8 kB / 443 MB, free: 12.53 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001264/0.1354, allocations: 0.5062 MB / 443.5 MB, free: 12.02 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006154/0.1361, allocations: 267.5 kB / 443.8 MB, free: 11.76 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007452/0.1368, allocations: 0.6237 MB / 444.4 MB, free: 11.13 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003818/0.1372, allocations: 258.1 kB / 444.6 MB, free: 10.87 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005627/0.1378, allocations: 402.4 kB / 445 MB, free: 10.47 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006987/0.1385, allocations: 442.6 kB / 445.5 MB, free: 10.04 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.971e-05/0.1386, allocations: 36 kB / 445.5 MB, free: 10 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.447e-05/0.1387, allocations: 32 kB / 445.5 MB, free: 9.973 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002507/0.1389, allocations: 279.2 kB / 445.8 MB, free: 9.699 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000176/0.1391, allocations: 177.2 kB / 446 MB, free: 9.52 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006677/0.1398, allocations: 0.6663 MB / 446.6 MB, free: 8.852 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.1398, allocations: 0 / 446.6 MB, free: 8.852 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.1398, allocations: 0 / 446.6 MB, free: 8.852 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.067e-06/0.1398, allocations: 0 / 446.6 MB, free: 8.852 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.001799/0.1416, allocations: 1.085 MB / 447.7 MB, free: 7.699 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.716e-05/0.1417, allocations: 12.03 kB / 447.7 MB, free: 7.688 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001773/0.1419, allocations: 110.5 kB / 447.8 MB, free: 7.57 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001532/0.1421, allocations: 94.78 kB / 447.9 MB, free: 7.477 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001132/0.1432, allocations: 0.6439 MB / 448.6 MB, free: 6.793 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.152e-05/0.1432, allocations: 45.31 kB / 448.6 MB, free: 6.75 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.197e-05/0.1433, allocations: 64 kB / 448.7 MB, free: 6.688 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001139/0.1445, allocations: 0.802 MB / 449.5 MB, free: 5.848 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.653e-05/0.1445, allocations: 3.938 kB / 449.5 MB, free: 5.844 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.263e-05/0.1446, allocations: 32 kB / 449.5 MB, free: 5.812 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.875e-05/0.1446, allocations: 33.3 kB / 449.6 MB, free: 5.777 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008694/0.1455, allocations: 0.6101 MB / 450.2 MB, free: 5.168 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003429/0.149, allocations: 2.638 MB / 452.8 MB, free: 2.418 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009812/0.15, allocations: 0.6206 MB / 453.4 MB, free: 1.781 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.118e-05/0.15, allocations: 12.45 kB / 453.4 MB, free: 1.77 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000585/0.1506, allocations: 487 kB / 453.9 MB, free: 1.254 MB / 382.1 MB Notification: Performance of pre-optimization done (n=63): time 1.713e-06/0.1506, allocations: 3.938 kB / 453.9 MB, free: 1.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=64): time 0.2172/0.3679, allocations: 2.5 MB / 456.4 MB, free: 51.24 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001152/0.368, allocations: 251.2 kB / 456.7 MB, free: 50.96 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006512/0.3687, allocations: 0.5577 MB / 457.2 MB, free: 50.83 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.436e-05/0.3687, allocations: 42.27 kB / 457.3 MB, free: 50.8 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002696/0.369, allocations: 395.9 kB / 457.6 MB, free: 50.61 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001481/0.3692, allocations: 209 kB / 457.8 MB, free: 50.49 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.063e-05/0.3692, allocations: 23.06 kB / 457.9 MB, free: 50.49 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001335/0.3693, allocations: 382.5 kB / 458.2 MB, free: 50.18 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003067/0.3697, allocations: 227.5 kB / 458.5 MB, free: 50.18 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004657/0.3701, allocations: 449.2 kB / 458.9 MB, free: 49.91 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004181/0.3706, allocations: 341.6 kB / 459.2 MB, free: 49.85 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.3706, allocations: 0 / 459.2 MB, free: 49.85 MB / 382.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.001345/0.3719, allocations: 0.9736 MB / 460.2 MB, free: 49.65 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.727e-05/0.372, allocations: 66.44 kB / 460.3 MB, free: 49.59 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.18e-05/0.372, allocations: 6.625 kB / 460.3 MB, free: 49.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003954/0.3724, allocations: 129.5 kB / 460.4 MB, free: 49.57 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004563/0.3729, allocations: 144.8 kB / 460.5 MB, free: 49.56 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002508/0.3754, allocations: 3.249 MB / 463.8 MB, free: 47.04 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004762/0.3759, allocations: 43.11 kB / 463.8 MB, free: 47.04 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.244e-05/0.376, allocations: 58.59 kB / 463.9 MB, free: 47.04 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 (88): * Single equations (assignments): 84 * 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%) 6,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004519/0.3764, allocations: 355.4 kB / 464.2 MB, free: 46.84 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001108/0.3766, allocations: 73.44 kB / 464.3 MB, free: 46.8 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001224/0.3778, allocations: 0.9863 MB / 465.3 MB, free: 46.48 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.462e-06/0.3778, allocations: 6.594 kB / 465.3 MB, free: 46.48 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-06/0.3778, allocations: 3.953 kB / 465.3 MB, free: 46.48 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.166e-06/0.3778, allocations: 5.391 kB / 465.3 MB, free: 46.48 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002004/0.3798, allocations: 1.753 MB / 467.1 MB, free: 45.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.3799, allocations: 0 / 467.1 MB, free: 45.79 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004481/0.3803, allocations: 109.1 kB / 467.2 MB, free: 45.79 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.528e-05/0.3804, allocations: 43.5 kB / 467.2 MB, free: 45.76 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.72e-05/0.3805, allocations: 20.94 kB / 467.2 MB, free: 45.75 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001296/0.3818, allocations: 2.761 MB / 470 MB, free: 42.97 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.3818, allocations: 8.188 kB / 470 MB, free: 42.97 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001439/0.3832, allocations: 1.432 MB / 471.4 MB, free: 42.14 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002561/0.3835, allocations: 180.1 kB / 471.6 MB, free: 42 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.281e-05/0.3836, allocations: 21.5 kB / 471.6 MB, free: 41.99 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000315/0.3839, allocations: 31.39 kB / 471.7 MB, free: 41.98 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.855e-05/0.384, allocations: 45.78 kB / 471.7 MB, free: 41.96 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.803e-05/0.3841, allocations: 60.67 kB / 471.8 MB, free: 41.96 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00037/0.3845, allocations: 388 kB / 472.2 MB, free: 41.79 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3845, allocations: 0 / 472.2 MB, free: 41.79 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007559/0.3853, allocations: 182.7 kB / 472.3 MB, free: 41.77 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 (53): * Single equations (assignments): 48 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001596/0.3869, allocations: 2.141 MB / 474.5 MB, free: 40.26 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00133/0.3882, allocations: 1.017 MB / 475.5 MB, free: 39.69 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.526e-06/0.3882, allocations: 0 / 475.5 MB, free: 39.69 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005842/0.3888, allocations: 0.7113 MB / 476.2 MB, free: 39.2 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007639/0.3896, allocations: 136.3 kB / 476.3 MB, free: 39.16 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006197/0.3958, allocations: 9.248 MB / 485.6 MB, free: 32.06 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004597/0.3963, allocations: 1.034 MB / 486.6 MB, free: 31.32 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004396/0.3967, allocations: 153.8 kB / 486.8 MB, free: 31.3 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002583/0.397, allocations: 275 kB / 487 MB, free: 31.09 MB / 382.1 MB Notification: Performance of SimCode: time 1.002e-06/0.397, allocations: 0 / 487 MB, free: 31.09 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02978/0.4268, allocations: 13.48 MB / 0.4888 GB, free: 30.02 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002144/0.4271, allocations: 205.8 kB / 0.489 GB, free: 29.78 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.934/2.362, allocations: 0 / 0.489 GB, free: 29.78 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: