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.0008735/0.0008735, allocations: 167 kB / 16.07 MB, free: 5.691 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.183/1.183, allocations: 205.4 MB / 222.2 MB, free: 9.031 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.0006921/0.0006921, allocations: 74.44 kB / 270.6 MB, free: 8.266 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1703/0.1703, allocations: 38.08 MB / 356.9 MB, free: 1.734 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003667/0.0003668, allocations: 12 kB / 423.4 MB, free: 37.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2567/0.2571, allocations: 56.33 MB / 479.7 MB, free: 9.227 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger): time 0.007473/0.2647, allocations: 8.042 MB / 487.8 MB, free: 3.738 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.003591/0.2683, allocations: 2.17 MB / 489.9 MB, free: 2.184 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001093/0.2694, allocations: 55.5 kB / 490 MB, free: 2.16 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008966/0.2703, allocations: 256.4 kB / 490.3 MB, free: 2.047 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001891/0.2722, allocations: 0.6386 MB / 490.9 MB, free: 1.703 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008409/0.2731, allocations: 274.3 kB / 491.2 MB, free: 1.566 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001901/0.275, allocations: 1.534 MB / 492.7 MB, free: 1.004 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004707/0.2755, allocations: 293.8 kB / 493 MB, free: 0.8906 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009499/0.2764, allocations: 468.9 kB / 493.4 MB, free: 0.7031 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001207/0.2777, allocations: 0.6478 MB / 494.1 MB, free: 500 kB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001779/0.2779, allocations: 33.34 kB / 494.1 MB, free: 500 kB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002872/0.2782, allocations: 33.59 kB / 494.2 MB, free: 500 kB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003898/0.2785, allocations: 296.4 kB / 494.4 MB, free: 424 kB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006204/0.2792, allocations: 404.6 kB / 494.8 MB, free: 180 kB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008066/0.28, allocations: 0.6717 MB / 495.5 MB, free: 12 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.88e-06/0.28, allocations: 0 / 495.5 MB, free: 12 kB / 314.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.28, allocations: 1.172 kB / 495.5 MB, free: 12 kB / 314.7 MB Notification: Performance of Transformations before backend: time 4.016e-05/0.2801, allocations: 0 / 495.5 MB, free: 12 kB / 314.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.00222/0.2823, allocations: 1.084 MB / 496.6 MB, free: 15.24 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.021e-05/0.2823, allocations: 8.188 kB / 496.6 MB, free: 15.24 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002365/0.2826, allocations: 111.6 kB / 496.7 MB, free: 15.16 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002174/0.2828, allocations: 93.62 kB / 496.8 MB, free: 15.12 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001255/0.2841, allocations: 0.6571 MB / 497.5 MB, free: 14.71 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.7e-05/0.2841, allocations: 47.31 kB / 497.5 MB, free: 14.69 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001099/0.2842, allocations: 69.83 kB / 497.6 MB, free: 14.66 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001436/0.2857, allocations: 0.8053 MB / 498.4 MB, free: 14.3 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.827e-05/0.2857, allocations: 1 kB / 498.4 MB, free: 14.3 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.878e-05/0.2858, allocations: 27.47 kB / 498.4 MB, free: 14.28 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.04e-05/0.2858, allocations: 35.88 kB / 498.4 MB, free: 14.27 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001081/0.2869, allocations: 0.6075 MB / 499.1 MB, free: 14.08 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003611/0.2905, allocations: 2.651 MB / 0.4899 GB, free: 12.01 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008904/0.2915, allocations: 0.6036 MB / 0.4905 GB, free: 11.68 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005815/0.2921, allocations: 369.8 kB / 0.4909 GB, free: 11.5 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.053e-05/0.2921, allocations: 5.344 kB / 0.4909 GB, free: 11.5 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000588/0.2927, allocations: 486.1 kB / 0.4914 GB, free: 11.13 MB / 330.7 MB Notification: Performance of pre-optimization done (n=63): time 2.615e-06/0.2927, allocations: 0 / 0.4914 GB, free: 11.13 MB / 330.7 MB Notification: Performance of matching and sorting (n=64): time 0.002922/0.2956, allocations: 1.973 MB / 0.4933 GB, free: 9.875 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000113/0.2958, allocations: 259 kB / 0.4935 GB, free: 9.578 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006565/0.2964, allocations: 0.5558 MB / 0.4941 GB, free: 9.246 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.145e-05/0.2965, allocations: 46.42 kB / 0.4941 GB, free: 9.199 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002748/0.2968, allocations: 395.3 kB / 0.4945 GB, free: 8.852 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000159/0.2969, allocations: 209.2 kB / 0.4947 GB, free: 8.672 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.339e-05/0.297, allocations: 16.09 kB / 0.4947 GB, free: 8.66 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001665/0.2971, allocations: 389.7 kB / 0.4951 GB, free: 8.289 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003822/0.2975, allocations: 222.5 kB / 0.4953 GB, free: 8.184 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004834/0.298, allocations: 451.9 kB / 0.4957 GB, free: 7.785 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009017/0.2989, allocations: 0.8065 MB / 0.4965 GB, free: 7.113 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.971e-06/0.2989, allocations: 2.188 kB / 0.4965 GB, free: 7.113 MB / 330.7 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.001466/0.3004, allocations: 0.9389 MB / 0.4974 GB, free: 6.586 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.058e-05/0.3005, allocations: 60.31 kB / 0.4975 GB, free: 6.523 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.397e-05/0.3005, allocations: 16.19 kB / 0.4975 GB, free: 6.516 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003535/0.3009, allocations: 106 kB / 0.4976 GB, free: 6.461 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004785/0.3013, allocations: 149.7 kB / 0.4977 GB, free: 6.422 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002526/0.3039, allocations: 2.999 MB / 0.5007 GB, free: 3.5 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004438/0.3043, allocations: 38.11 kB / 0.5007 GB, free: 3.484 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.838e-05/0.3044, allocations: 53 kB / 0.5008 GB, free: 3.469 MB / 330.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 (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.0004116/0.3048, allocations: 355.5 kB / 0.5011 GB, free: 3.18 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.892e-05/0.3049, allocations: 70.94 kB / 0.5012 GB, free: 3.145 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00116/0.3061, allocations: 0.7828 MB / 0.5019 GB, free: 2.699 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.562e-06/0.3061, allocations: 5.906 kB / 0.5019 GB, free: 2.699 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-06/0.3061, allocations: 0.9375 kB / 0.5019 GB, free: 2.699 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.293e-06/0.3061, allocations: 5.922 kB / 0.5019 GB, free: 2.695 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002033/0.3082, allocations: 1.546 MB / 0.5035 GB, free: 1.438 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.3082, allocations: 4 kB / 0.5035 GB, free: 1.434 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005036/0.3087, allocations: 115.9 kB / 0.5036 GB, free: 1.32 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/0.3087, allocations: 0 / 0.5036 GB, free: 1.32 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.191e-05/0.3088, allocations: 19.98 kB / 0.5036 GB, free: 1.301 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.863e-06/0.3088, allocations: 7.938 kB / 0.5036 GB, free: 1.293 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.3088, allocations: 32 / 0.5036 GB, free: 1.293 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001514/0.3103, allocations: 1.211 MB / 0.5048 GB, free: 48 kB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000254/0.3106, allocations: 184.1 kB / 0.505 GB, free: 15.85 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.851e-05/0.3107, allocations: 19.98 kB / 0.505 GB, free: 15.83 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003338/0.311, allocations: 35.97 kB / 0.505 GB, free: 15.79 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001017/0.3111, allocations: 40.39 kB / 0.505 GB, free: 15.75 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.005e-05/0.3112, allocations: 55.92 kB / 0.5051 GB, free: 15.7 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004297/0.3117, allocations: 391 kB / 0.5055 GB, free: 15.32 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.753e-06/0.3117, allocations: 0 / 0.5055 GB, free: 15.32 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006206/0.3123, allocations: 183.9 kB / 0.5056 GB, free: 15.14 MB / 346.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 (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.001782/0.3141, allocations: 1.771 MB / 0.5074 GB, free: 13.33 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001453/0.3155, allocations: 1.02 MB / 0.5084 GB, free: 12.26 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.3156, allocations: 0 / 0.5084 GB, free: 12.26 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005199/0.3161, allocations: 489.2 kB / 0.5088 GB, free: 11.75 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008503/0.3169, allocations: 157.8 kB / 0.509 GB, free: 11.6 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006622/0.3236, allocations: 4.641 MB / 0.5135 GB, free: 6.793 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000592/0.3242, allocations: 1.005 MB / 0.5145 GB, free: 5.758 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003464/0.3245, allocations: 287.3 kB / 0.5148 GB, free: 5.477 MB / 346.7 MB Notification: Performance of SimCode: time 3.71e-07/0.3246, allocations: 0 / 0.5148 GB, free: 5.477 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.998/4.323, allocations: 14.24 MB / 0.5287 GB, free: 7.211 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)