Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Transformation_TapChanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Transformation_TapChanger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00157/0.00157, allocations: 188.3 kB / 15.77 MB, free: 5.984 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.966/1.966, allocations: 205.4 MB / 221.9 MB, free: 13.83 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001105/0.001105, allocations: 102.8 kB / 270.2 MB, free: 13.35 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2588/0.2588, allocations: 38.05 MB / 356.6 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000448/0.0004482, allocations: 12 kB / 422.8 MB, free: 26.33 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1072, allocations: 56.33 MB / 479.1 MB, free: 1.941 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger): time 0.01211/0.1193, allocations: 7.612 MB / 486.7 MB, free: 10.3 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.00579/0.1252, allocations: 2.211 MB / 489 MB, free: 8.078 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001121/0.1264, allocations: 55.62 kB / 489 MB, free: 8.023 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009003/0.1273, allocations: 202.7 kB / 489.2 MB, free: 7.824 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002385/0.1297, allocations: 0.5062 MB / 489.7 MB, free: 7.316 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001254/0.131, allocations: 263.6 kB / 490 MB, free: 7.059 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001591/0.1327, allocations: 0.6354 MB / 490.6 MB, free: 6.422 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005817/0.1333, allocations: 254.1 kB / 490.9 MB, free: 6.172 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001111/0.1344, allocations: 394.5 kB / 491.2 MB, free: 5.785 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001155/0.1356, allocations: 446.6 kB / 491.7 MB, free: 5.348 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000198/0.1358, allocations: 32 kB / 491.7 MB, free: 5.316 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002406/0.1361, allocations: 43.88 kB / 491.7 MB, free: 5.273 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004207/0.1365, allocations: 267.3 kB / 492 MB, free: 5.012 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003098/0.1369, allocations: 177.3 kB / 492.2 MB, free: 4.832 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001116/0.138, allocations: 0.6623 MB / 492.8 MB, free: 4.168 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.138, allocations: 0 / 492.8 MB, free: 4.168 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.324e-06/0.138, allocations: 0 / 492.8 MB, free: 4.168 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.51e-05/0.1381, allocations: 0 / 492.8 MB, free: 4.168 MB / 330.7 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.002917/0.141, allocations: 1.096 MB / 493.9 MB, free: 3.008 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.296e-05/0.1411, allocations: 8.031 kB / 493.9 MB, free: 3 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002638/0.1413, allocations: 118.5 kB / 494.1 MB, free: 2.875 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002213/0.1416, allocations: 90.88 kB / 494.2 MB, free: 2.785 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001923/0.1435, allocations: 0.6399 MB / 494.8 MB, free: 2.105 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.059e-05/0.1436, allocations: 49.31 kB / 494.8 MB, free: 2.055 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001737/0.1438, allocations: 60 kB / 494.9 MB, free: 1.996 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002047/0.1459, allocations: 0.8021 MB / 495.7 MB, free: 1.156 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.925e-05/0.1459, allocations: 8 kB / 495.7 MB, free: 1.148 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.72e-05/0.1461, allocations: 31.95 kB / 495.7 MB, free: 1.117 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.111e-05/0.1461, allocations: 33.3 kB / 495.8 MB, free: 1.086 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001744/0.1479, allocations: 0.6062 MB / 496.4 MB, free: 492 kB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005968/0.1539, allocations: 2.638 MB / 499 MB, free: 13.72 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001764/0.1557, allocations: 0.6254 MB / 499.6 MB, free: 13.08 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.7e-05/0.1558, allocations: 12.48 kB / 499.7 MB, free: 13.07 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009461/0.1568, allocations: 482.9 kB / 0.4884 GB, free: 12.55 MB / 346.7 MB Notification: Performance of pre-optimization done (n=63): time 3.487e-06/0.1568, allocations: 3.938 kB / 0.4884 GB, free: 12.55 MB / 346.7 MB Notification: Performance of matching and sorting (n=64): time 0.005713/0.1625, allocations: 2.511 MB / 0.4909 GB, free: 9.832 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001887/0.1628, allocations: 255.9 kB / 0.4911 GB, free: 9.527 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001025/0.1638, allocations: 0.5587 MB / 0.4916 GB, free: 8.961 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001085/0.164, allocations: 45.7 kB / 0.4917 GB, free: 8.91 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004049/0.1644, allocations: 418 kB / 0.4921 GB, free: 8.496 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002766/0.1647, allocations: 209.1 kB / 0.4923 GB, free: 8.289 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.066e-05/0.1647, allocations: 16 kB / 0.4923 GB, free: 8.273 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001752/0.1649, allocations: 342.8 kB / 0.4926 GB, free: 7.93 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006336/0.1656, allocations: 221.9 kB / 0.4928 GB, free: 7.711 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008503/0.1664, allocations: 457.8 kB / 0.4933 GB, free: 7.16 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007925/0.1672, allocations: 345.3 kB / 0.4936 GB, free: 6.812 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.608e-06/0.1673, allocations: 4 kB / 0.4936 GB, free: 6.809 MB / 346.7 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.002568/0.1698, allocations: 0.9213 MB / 0.4945 GB, free: 5.859 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.738e-05/0.17, allocations: 67.39 kB / 0.4946 GB, free: 5.781 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.858e-05/0.17, allocations: 4 kB / 0.4946 GB, free: 5.777 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006813/0.1707, allocations: 125.9 kB / 0.4947 GB, free: 5.648 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001037/0.1718, allocations: 155.7 kB / 0.4949 GB, free: 5.496 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004912/0.1767, allocations: 3.258 MB / 0.498 GB, free: 1.973 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008531/0.1776, allocations: 43.97 kB / 0.4981 GB, free: 1.93 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001538/0.1778, allocations: 51.97 kB / 0.4981 GB, free: 1.879 MB / 346.7 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.0006866/0.1785, allocations: 358.7 kB / 0.4985 GB, free: 1.508 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001779/0.1787, allocations: 71.16 kB / 0.4985 GB, free: 1.438 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002251/0.1809, allocations: 0.9848 MB / 0.4995 GB, free: 396 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.254e-05/0.181, allocations: 4 kB / 0.4995 GB, free: 392 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.597e-06/0.181, allocations: 4 kB / 0.4995 GB, free: 388 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.206e-05/0.181, allocations: 3.984 kB / 0.4995 GB, free: 384 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003895/0.1849, allocations: 1.746 MB / 0.5012 GB, free: 14.52 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.146e-06/0.185, allocations: 4 kB / 0.5012 GB, free: 14.52 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001002/0.186, allocations: 99.89 kB / 0.5013 GB, free: 14.42 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002004/0.1862, allocations: 53.58 kB / 0.5014 GB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.55e-05/0.1864, allocations: 27.98 kB / 0.5014 GB, free: 14.33 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002749/0.1891, allocations: 2.762 MB / 0.5041 GB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-06/0.1892, allocations: 4.031 kB / 0.5041 GB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003145/0.1923, allocations: 1.433 MB / 0.5055 GB, free: 9.77 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004492/0.1928, allocations: 188.1 kB / 0.5057 GB, free: 9.566 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001417/0.193, allocations: 19.95 kB / 0.5057 GB, free: 9.547 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006183/0.1936, allocations: 31.97 kB / 0.5057 GB, free: 9.516 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001753/0.1938, allocations: 36.45 kB / 0.5058 GB, free: 9.48 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001447/0.194, allocations: 67.86 kB / 0.5058 GB, free: 9.414 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000713/0.1947, allocations: 383 kB / 0.5062 GB, free: 9.047 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.1947, allocations: 0 / 0.5062 GB, free: 9.047 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001169/0.1959, allocations: 188 kB / 0.5064 GB, free: 8.863 MB / 362.7 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.003619/0.1995, allocations: 2.142 MB / 0.5085 GB, free: 6.629 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002475/0.2021, allocations: 1.012 MB / 0.5094 GB, free: 5.562 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/0.2021, allocations: 0 / 0.5094 GB, free: 5.562 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001367/0.2035, allocations: 0.7057 MB / 0.5101 GB, free: 4.805 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001169/0.2047, allocations: 143.3 kB / 0.5103 GB, free: 4.664 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.313/0.5177, allocations: 9.304 MB / 0.5194 GB, free: 49.34 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007178/0.5185, allocations: 1.03 MB / 0.5204 GB, free: 48.63 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005492/0.5191, allocations: 280.9 kB / 0.5206 GB, free: 48.63 MB / 362.7 MB Notification: Performance of SimCode: time 9.92e-07/0.5191, allocations: 0 / 0.5206 GB, free: 48.63 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.008/3.527, allocations: 18.01 MB / 0.5382 GB, free: 41.12 MB / 362.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Transformation_TapChanger_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Transformation_TapChanger.fmu > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe 2>&1)