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.002353/0.002353, allocations: 183.9 kB / 15.76 MB, free: 6.363 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.036/2.036, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.001143/0.001143, allocations: 98.8 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2728/0.2728, allocations: 38.06 MB / 356.6 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006213/0.0006215, allocations: 8 kB / 422.8 MB, free: 26.33 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.108, allocations: 56.33 MB / 479.1 MB, free: 1.949 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6084/0.7165, allocations: 100.2 MB / 0.5657 GB, free: 15.21 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003646/0.7169, allocations: 93.95 kB / 0.5658 GB, free: 15.16 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07656/0.7935, allocations: 16.95 MB / 0.5824 GB, free: 0.4961 MB / 378.7 MB Notification: Performance of FrontEnd: time 5.931e-06/0.7935, allocations: 0 / 0.5824 GB, free: 0.4961 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.827e-05/0.7936, allocations: 19.94 kB / 0.5824 GB, free: 488 kB / 378.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.00301/0.7967, allocations: 1.117 MB / 0.5835 GB, free: 15.35 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.651e-05/0.7968, allocations: 12.03 kB / 0.5835 GB, free: 15.34 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002907/0.7971, allocations: 110.2 kB / 0.5836 GB, free: 15.26 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002655/0.7973, allocations: 94.88 kB / 0.5837 GB, free: 15.17 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007037/0.8044, allocations: 1.698 MB / 0.5853 GB, free: 13.7 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.485e-05/0.8045, allocations: 47.12 kB / 0.5854 GB, free: 13.67 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001586/0.8047, allocations: 66.62 kB / 0.5854 GB, free: 13.62 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002055/0.8067, allocations: 0.8021 MB / 0.5862 GB, free: 13.01 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.016e-05/0.8068, allocations: 3.984 kB / 0.5862 GB, free: 13 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.341e-05/0.8069, allocations: 33.33 kB / 0.5863 GB, free: 12.99 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.312e-05/0.807, allocations: 36.36 kB / 0.5863 GB, free: 12.95 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001742/0.8088, allocations: 0.6079 MB / 0.5869 GB, free: 12.52 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00562/0.8144, allocations: 2.642 MB / 0.5895 GB, free: 10.23 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001645/0.8161, allocations: 0.6152 MB / 0.5901 GB, free: 9.797 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.071e-05/0.8162, allocations: 12.48 kB / 0.5901 GB, free: 9.785 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009671/0.8172, allocations: 483.5 kB / 0.5905 GB, free: 9.359 MB / 394.7 MB Notification: Performance of pre-optimization done (n=63): time 3.346e-06/0.8172, allocations: 4 kB / 0.5906 GB, free: 9.355 MB / 394.7 MB Notification: Performance of matching and sorting (n=64): time 0.005464/0.8227, allocations: 2.516 MB / 0.593 GB, free: 7.07 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001684/0.8229, allocations: 255.3 kB / 0.5933 GB, free: 6.77 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009435/0.8238, allocations: 500 kB / 0.5937 GB, free: 6.367 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001285/0.824, allocations: 40.14 kB / 0.5938 GB, free: 6.332 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004092/0.8244, allocations: 425 kB / 0.5942 GB, free: 6.004 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002922/0.8247, allocations: 206.5 kB / 0.5944 GB, free: 5.828 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.158e-05/0.8248, allocations: 17.5 kB / 0.5944 GB, free: 5.824 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001729/0.825, allocations: 339.3 kB / 0.5947 GB, free: 5.496 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006325/0.8256, allocations: 224.3 kB / 0.5949 GB, free: 5.348 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007987/0.8265, allocations: 464.5 kB / 0.5954 GB, free: 4.879 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007484/0.8272, allocations: 343.4 kB / 0.5957 GB, free: 4.633 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.582e-06/0.8272, allocations: 3.938 kB / 0.5957 GB, free: 4.629 MB / 394.7 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.002565/0.8298, allocations: 0.9238 MB / 0.5966 GB, free: 3.898 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.449e-05/0.8299, allocations: 69.52 kB / 0.5967 GB, free: 3.82 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.301e-05/0.83, allocations: 8 kB / 0.5967 GB, free: 3.812 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007006/0.8307, allocations: 117.4 kB / 0.5968 GB, free: 3.711 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001117/0.8318, allocations: 149.7 kB / 0.5969 GB, free: 3.57 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004721/0.8366, allocations: 3.25 MB / 0.6001 GB, free: 428 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009294/0.8376, allocations: 51.36 kB / 0.6002 GB, free: 392 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001225/0.8377, allocations: 51.89 kB / 0.6002 GB, free: 344 kB / 394.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.0007117/0.8384, allocations: 354.6 kB / 0.6005 GB, free: 36 kB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001943/0.8386, allocations: 75.23 kB / 0.6006 GB, free: 15.96 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00214/0.8408, allocations: 0.9845 MB / 0.6016 GB, free: 15.14 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.484e-05/0.8408, allocations: 8 kB / 0.6016 GB, free: 15.13 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.102e-06/0.8408, allocations: 0 / 0.6016 GB, free: 15.13 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.235e-05/0.8409, allocations: 3.984 kB / 0.6016 GB, free: 15.13 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00348/0.8444, allocations: 1.707 MB / 0.6032 GB, free: 13.69 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.162e-06/0.8444, allocations: 0 / 0.6032 GB, free: 13.69 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009667/0.8454, allocations: 99 kB / 0.6033 GB, free: 13.59 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001799/0.8456, allocations: 46.67 kB / 0.6034 GB, free: 13.55 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.402e-05/0.8457, allocations: 27.8 kB / 0.6034 GB, free: 13.53 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00258/0.8483, allocations: 2.749 MB / 0.6061 GB, free: 10.62 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.133e-06/0.8483, allocations: 4.031 kB / 0.6061 GB, free: 10.62 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003082/0.8514, allocations: 1.429 MB / 0.6075 GB, free: 9.418 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004319/0.8519, allocations: 188.7 kB / 0.6077 GB, free: 9.23 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001384/0.852, allocations: 14.44 kB / 0.6077 GB, free: 9.223 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005982/0.8526, allocations: 33.75 kB / 0.6077 GB, free: 9.195 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001859/0.8528, allocations: 45.81 kB / 0.6078 GB, free: 9.16 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001367/0.853, allocations: 59.17 kB / 0.6078 GB, free: 9.105 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0007178/0.8537, allocations: 380.5 kB / 0.6082 GB, free: 8.816 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.8537, allocations: 4 kB / 0.6082 GB, free: 8.812 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001147/0.8549, allocations: 201 kB / 0.6084 GB, free: 8.641 MB / 410.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.003587/0.8585, allocations: 2.191 MB / 0.6105 GB, free: 6.688 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00241/0.8609, allocations: 1.005 MB / 0.6115 GB, free: 5.809 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/0.861, allocations: 3.938 kB / 0.6115 GB, free: 5.805 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001309/0.8623, allocations: 0.7113 MB / 0.6122 GB, free: 5.176 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001158/0.8635, allocations: 146.1 kB / 0.6123 GB, free: 5.07 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01294/0.8764, allocations: 9.315 MB / 0.6214 GB, free: 12.28 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009129/0.8774, allocations: 1.028 MB / 0.6224 GB, free: 11.25 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006014/0.878, allocations: 282.2 kB / 0.6227 GB, free: 11.18 MB / 426.7 MB Notification: Performance of SimCode: time 1.072e-06/0.878, allocations: 0 / 0.6227 GB, free: 11.18 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.231/4.11, allocations: 18.36 MB / 0.6406 GB, free: 8.848 MB / 442.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)