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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.001167/0.001167, allocations: 112.3 kB / 16.92 MB, free: 5.758 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.001106/0.001106, allocations: 191.3 kB / 17.85 MB, free: 5.176 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.274/1.274, allocations: 222.9 MB / 241.5 MB, free: 15.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1678/0.1678, allocations: 38.01 MB / 329.7 MB, free: 8.824 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001177/0.001177, allocations: 60.31 kB / 398.9 MB, free: 33.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08375/0.08494, allocations: 58.06 MB / 457 MB, free: 7.977 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger): time 0.01138/0.09636, allocations: 7.293 MB / 464.3 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003946/0.1003, allocations: 1.714 MB / 466 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007157/0.1011, allocations: 31.81 kB / 466 MB, free: 14.9 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000961/0.1021, allocations: 238.4 kB / 466.2 MB, free: 14.66 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001885/0.104, allocations: 0.5676 MB / 466.8 MB, free: 14.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005991/0.1046, allocations: 215.7 kB / 467 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001873/0.1065, allocations: 1.266 MB / 468.3 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006721/0.1072, allocations: 362.5 kB / 468.6 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001101/0.1083, allocations: 0.5329 MB / 469.2 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001327/0.1097, allocations: 0.6462 MB / 469.8 MB, free: 11.08 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002312/0.1099, allocations: 64 kB / 469.9 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002411/0.1102, allocations: 64 kB / 469.9 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004367/0.1106, allocations: 335.1 kB / 470.3 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006323/0.1113, allocations: 433.7 kB / 470.7 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001185/0.1125, allocations: 0.8992 MB / 471.6 MB, free: 9.297 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.165e-06/0.1125, allocations: 0 / 471.6 MB, free: 9.297 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.011e-06/0.1125, allocations: 0 / 471.6 MB, free: 9.297 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.624e-05/0.1125, allocations: 0 / 471.6 MB, free: 9.297 MB / 350.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.00282/0.1154, allocations: 1.225 MB / 472.8 MB, free: 8.004 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.1154, allocations: 11.89 kB / 472.8 MB, free: 7.992 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001773/0.1156, allocations: 114.7 kB / 472.9 MB, free: 7.871 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002031/0.1158, allocations: 95.8 kB / 473 MB, free: 7.777 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001465/0.1173, allocations: 0.6639 MB / 473.7 MB, free: 7.074 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.746e-05/0.1174, allocations: 53.3 kB / 473.7 MB, free: 7.023 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00013/0.1175, allocations: 60 kB / 473.8 MB, free: 6.965 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001742/0.1193, allocations: 0.8099 MB / 474.6 MB, free: 6.117 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.368e-05/0.1193, allocations: 0 / 474.6 MB, free: 6.117 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.93e-05/0.1194, allocations: 35.94 kB / 474.6 MB, free: 6.082 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.449e-05/0.1195, allocations: 33.3 kB / 474.7 MB, free: 6.047 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001509/0.121, allocations: 0.6178 MB / 475.3 MB, free: 5.426 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004756/0.1258, allocations: 2.633 MB / 477.9 MB, free: 2.676 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001367/0.1272, allocations: 0.6043 MB / 478.5 MB, free: 2.059 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009173/0.1281, allocations: 380 kB / 478.9 MB, free: 1.68 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.652e-05/0.1282, allocations: 8.375 kB / 478.9 MB, free: 1.672 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007742/0.129, allocations: 487.1 kB / 479.4 MB, free: 1.152 MB / 350.1 MB Notification: Performance of pre-optimization done (n=63): time 3.056e-06/0.129, allocations: 0 / 479.4 MB, free: 1.152 MB / 350.1 MB Notification: Performance of matching and sorting (n=64): time 0.004072/0.1331, allocations: 1.985 MB / 481.4 MB, free: 15.08 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001555/0.1332, allocations: 251.8 kB / 481.6 MB, free: 14.77 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009025/0.1341, allocations: 0.5664 MB / 482.2 MB, free: 14.2 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.451e-05/0.1342, allocations: 41.83 kB / 482.2 MB, free: 14.15 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003919/0.1346, allocations: 403.4 kB / 482.6 MB, free: 13.75 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002504/0.1349, allocations: 205 kB / 482.8 MB, free: 13.55 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000269/0.1352, allocations: 146.6 kB / 483 MB, free: 13.4 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002345/0.1354, allocations: 386.8 kB / 483.3 MB, free: 13.01 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005498/0.136, allocations: 225.9 kB / 483.6 MB, free: 12.79 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006694/0.1367, allocations: 457.8 kB / 484 MB, free: 12.24 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008994/0.1376, allocations: 0.7973 MB / 484.8 MB, free: 11.32 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.121e-06/0.1376, allocations: 3.984 kB / 484.8 MB, free: 11.31 MB / 366.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.002135/0.1397, allocations: 0.944 MB / 485.8 MB, free: 10.34 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.898e-05/0.1398, allocations: 70.55 kB / 485.8 MB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.987e-05/0.1398, allocations: 15.94 kB / 485.8 MB, free: 10.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005051/0.1404, allocations: 101.6 kB / 485.9 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007101/0.1411, allocations: 147.7 kB / 486.1 MB, free: 10 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003931/0.145, allocations: 3.24 MB / 489.3 MB, free: 6.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000692/0.1457, allocations: 35.98 kB / 489.4 MB, free: 6.445 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001329/0.1459, allocations: 59.89 kB / 489.4 MB, free: 6.387 MB / 366.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.0006394/0.1465, allocations: 350.7 kB / 489.8 MB, free: 6.023 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001861/0.1467, allocations: 75.09 kB / 489.8 MB, free: 5.949 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001676/0.1484, allocations: 0.7819 MB / 490.6 MB, free: 5.148 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.964e-06/0.1485, allocations: 8 kB / 490.6 MB, free: 5.141 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.1485, allocations: 3.984 kB / 490.6 MB, free: 5.137 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/0.1485, allocations: 0 / 490.6 MB, free: 5.137 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003137/0.1516, allocations: 1.546 MB / 492.2 MB, free: 3.516 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.1517, allocations: 0 / 492.2 MB, free: 3.516 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008213/0.1525, allocations: 115.9 kB / 492.3 MB, free: 3.402 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.498e-06/0.1525, allocations: 0 / 492.3 MB, free: 3.402 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.512e-05/0.1526, allocations: 19.98 kB / 492.3 MB, free: 3.383 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.275e-06/0.1526, allocations: 4 kB / 492.3 MB, free: 3.379 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.314e-06/0.1526, allocations: 7.922 kB / 492.3 MB, free: 3.371 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002338/0.155, allocations: 1.214 MB / 493.5 MB, free: 2.121 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003706/0.1554, allocations: 180.2 kB / 493.7 MB, free: 1.926 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000151/0.1555, allocations: 24.05 kB / 493.7 MB, free: 1.902 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004764/0.156, allocations: 31.98 kB / 493.8 MB, free: 1.871 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.253e-05/0.1561, allocations: 32.39 kB / 493.8 MB, free: 1.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.37e-05/0.1562, allocations: 79.84 kB / 493.9 MB, free: 1.762 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006431/0.1569, allocations: 387 kB / 494.2 MB, free: 1.391 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.1569, allocations: 4 kB / 494.2 MB, free: 1.387 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001011/0.1579, allocations: 176 kB / 494.4 MB, free: 1.215 MB / 366.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.002724/0.1607, allocations: 1.788 MB / 496.2 MB, free: 15.38 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002459/0.1632, allocations: 1.097 MB / 497.3 MB, free: 14.24 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.1632, allocations: 0 / 497.3 MB, free: 14.24 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007835/0.164, allocations: 497.2 kB / 497.8 MB, free: 13.72 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001206/0.1652, allocations: 159.8 kB / 497.9 MB, free: 13.57 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01184/0.177, allocations: 6.44 MB / 0.4926 GB, free: 6.801 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000845/0.1779, allocations: 1.009 MB / 0.4936 GB, free: 5.766 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007199/0.1787, allocations: 153.8 kB / 0.4937 GB, free: 5.613 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005002/0.1792, allocations: 279.3 kB / 0.494 GB, free: 5.344 MB / 382.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1792, allocations: 0 / 0.494 GB, free: 5.344 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0508/0.23, allocations: 13.88 MB / 0.5075 GB, free: 7.629 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.265/9.495, allocations: 15.83 kB / 0.5075 GB, free: 7.613 MB / 398.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)