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.0009854/0.0009854, allocations: 112.3 kB / 16.62 MB, free: 6.812 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.001096/0.001096, allocations: 185.8 kB / 17.55 MB, free: 5.934 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.342/1.342, allocations: 222.9 MB / 241.2 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1766/0.1766, allocations: 38.03 MB / 329.4 MB, free: 8.977 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001594/0.001594, allocations: 61.53 kB / 398.4 MB, free: 34.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.1152, allocations: 58.07 MB / 456.4 MB, free: 8.332 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger): time 0.01081/0.1261, allocations: 8.95 MB / 465.4 MB, free: 15.34 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004595/0.1307, allocations: 2.209 MB / 467.6 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001158/0.1319, allocations: 63.62 kB / 467.7 MB, free: 13.06 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008232/0.1328, allocations: 206.8 kB / 467.9 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00162/0.1344, allocations: 0.5213 MB / 468.4 MB, free: 12.33 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000556/0.135, allocations: 187.8 kB / 468.6 MB, free: 12.15 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001658/0.1367, allocations: 1.281 MB / 469.9 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005421/0.1372, allocations: 358.5 kB / 470.2 MB, free: 10.51 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001049/0.1383, allocations: 0.5446 MB / 470.7 MB, free: 9.965 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001324/0.1396, allocations: 0.6891 MB / 471.4 MB, free: 9.273 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002494/0.1399, allocations: 60 kB / 471.5 MB, free: 9.215 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003304/0.1402, allocations: 68 kB / 471.6 MB, free: 9.148 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004681/0.1407, allocations: 343 kB / 471.9 MB, free: 8.812 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008009/0.1415, allocations: 433.7 kB / 472.3 MB, free: 8.387 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001005/0.1425, allocations: 0.8914 MB / 473.2 MB, free: 7.492 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.793e-06/0.1426, allocations: 4 kB / 473.2 MB, free: 7.488 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1426, allocations: 0 / 473.2 MB, free: 7.488 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.007e-05/0.1426, allocations: 0 / 473.2 MB, free: 7.488 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.002348/0.145, allocations: 1.225 MB / 474.4 MB, free: 6.195 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.559e-05/0.145, allocations: 11.89 kB / 474.5 MB, free: 6.184 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001619/0.1452, allocations: 114.7 kB / 474.6 MB, free: 6.062 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001762/0.1454, allocations: 99.72 kB / 474.7 MB, free: 5.965 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001169/0.1466, allocations: 0.664 MB / 475.3 MB, free: 5.262 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.119e-05/0.1466, allocations: 49.3 kB / 475.4 MB, free: 5.215 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.991e-05/0.1467, allocations: 60 kB / 475.4 MB, free: 5.156 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001334/0.1481, allocations: 0.8099 MB / 476.2 MB, free: 4.309 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.906e-05/0.1481, allocations: 0 / 476.2 MB, free: 4.309 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.408e-05/0.1482, allocations: 39.91 kB / 476.3 MB, free: 4.27 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.694e-05/0.1482, allocations: 29.31 kB / 476.3 MB, free: 4.238 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009965/0.1492, allocations: 0.6179 MB / 476.9 MB, free: 3.621 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003577/0.1528, allocations: 2.63 MB / 479.6 MB, free: 0.875 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008824/0.1537, allocations: 0.6171 MB / 480.2 MB, free: 252 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006042/0.1543, allocations: 378 kB / 480.5 MB, free: 15.87 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.773e-05/0.1544, allocations: 4.438 kB / 480.5 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006059/0.155, allocations: 490.9 kB / 481 MB, free: 15.34 MB / 366.1 MB Notification: Performance of pre-optimization done (n=63): time 2.685e-06/0.155, allocations: 0 / 481 MB, free: 15.34 MB / 366.1 MB Notification: Performance of matching and sorting (n=64): time 0.002974/0.158, allocations: 1.985 MB / 483 MB, free: 13.27 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001252/0.1581, allocations: 255.8 kB / 483.3 MB, free: 12.96 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006495/0.1588, allocations: 0.5703 MB / 483.8 MB, free: 12.38 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.299e-05/0.1588, allocations: 37.7 kB / 483.9 MB, free: 12.34 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003102/0.1591, allocations: 399.5 kB / 484.3 MB, free: 11.94 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002029/0.1594, allocations: 205 kB / 484.5 MB, free: 11.73 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001995/0.1596, allocations: 150.7 kB / 484.6 MB, free: 11.58 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001803/0.1598, allocations: 386.8 kB / 485 MB, free: 11.2 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003564/0.1601, allocations: 221.9 kB / 485.2 MB, free: 10.98 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004993/0.1606, allocations: 461.8 kB / 485.6 MB, free: 10.43 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009212/0.1616, allocations: 0.7934 MB / 486.4 MB, free: 9.512 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.013e-06/0.1616, allocations: 0 / 486.4 MB, free: 9.512 MB / 366.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.00152/0.1631, allocations: 0.952 MB / 487.4 MB, free: 8.535 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.272e-05/0.1632, allocations: 67.39 kB / 487.5 MB, free: 8.457 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.658e-05/0.1632, allocations: 11.94 kB / 487.5 MB, free: 8.445 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003883/0.1636, allocations: 105.9 kB / 487.6 MB, free: 8.336 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004837/0.1641, allocations: 151.7 kB / 487.7 MB, free: 8.188 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00281/0.1669, allocations: 3.236 MB / 491 MB, free: 4.672 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004482/0.1674, allocations: 35.98 kB / 491 MB, free: 4.637 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000104/0.1675, allocations: 59.89 kB / 491.1 MB, free: 4.578 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.0004378/0.1679, allocations: 338.7 kB / 491.4 MB, free: 4.227 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001202/0.1681, allocations: 87.06 kB / 491.5 MB, free: 4.141 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001097/0.1692, allocations: 0.7896 MB / 492.3 MB, free: 3.324 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.206e-06/0.1692, allocations: 4 kB / 492.3 MB, free: 3.32 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.014e-06/0.1692, allocations: 0 / 492.3 MB, free: 3.32 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.314e-06/0.1692, allocations: 3.984 kB / 492.3 MB, free: 3.316 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002179/0.1714, allocations: 1.543 MB / 493.8 MB, free: 1.703 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.541e-06/0.1714, allocations: 4 kB / 493.8 MB, free: 1.699 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000502/0.1719, allocations: 115.9 kB / 493.9 MB, free: 1.586 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.71e-06/0.1719, allocations: 0 / 493.9 MB, free: 1.586 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.738e-05/0.172, allocations: 19.98 kB / 493.9 MB, free: 1.566 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/0.172, allocations: 4 kB / 494 MB, free: 1.562 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.172, allocations: 0 / 494 MB, free: 1.562 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001504/0.1735, allocations: 1.214 MB / 495.2 MB, free: 320 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000231/0.1738, allocations: 184.1 kB / 495.3 MB, free: 116 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.937e-05/0.1739, allocations: 16 kB / 495.4 MB, free: 100 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003166/0.1742, allocations: 31.97 kB / 495.4 MB, free: 68 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.705e-05/0.1743, allocations: 32.39 kB / 495.4 MB, free: 36 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.129e-05/0.1744, allocations: 71.8 kB / 495.5 MB, free: 15.96 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003792/0.1748, allocations: 387 kB / 495.9 MB, free: 15.59 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.1748, allocations: 8.062 kB / 495.9 MB, free: 15.59 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005968/0.1754, allocations: 180 kB / 496.1 MB, free: 15.41 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 (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.001881/0.1773, allocations: 1.779 MB / 497.8 MB, free: 13.59 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001705/0.179, allocations: 1.098 MB / 498.9 MB, free: 12.44 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.179, allocations: 0 / 498.9 MB, free: 12.44 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005297/0.1795, allocations: 497.2 kB / 499.4 MB, free: 11.93 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007961/0.1803, allocations: 158.3 kB / 499.6 MB, free: 11.78 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00837/0.1887, allocations: 6.712 MB / 0.4944 GB, free: 4.738 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005748/0.1893, allocations: 1.013 MB / 0.4954 GB, free: 3.695 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004725/0.1898, allocations: 161.8 kB / 0.4956 GB, free: 3.535 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000336/0.1901, allocations: 275.3 kB / 0.4958 GB, free: 3.266 MB / 382.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1902, allocations: 0 / 0.4958 GB, free: 3.266 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04775/0.2379, allocations: 13.59 MB / 0.5091 GB, free: 5.883 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002412/0.2382, allocations: 230.3 kB / 0.5093 GB, free: 5.625 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.108/2.347, allocations: 3.938 kB / 0.5093 GB, free: 5.621 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)