Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.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.AC3ph.Transformation.TapChanger,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Transformation_TapChanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Transformation.TapChanger,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_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.001066/0.001065, allocations: 180.2 kB / 16.39 MB, free: 5.766 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.159/1.159, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.0007896/0.0007896, allocations: 83.34 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1522/0.1522, allocations: 38.06 MB / 357.2 MB, free: 1.887 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002781/0.0002782, allocations: 12 kB / 424.1 MB, free: 37.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2376/0.2379, allocations: 56.33 MB / 480.4 MB, free: 9.551 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1301/0.3681, allocations: 110 MB / 0.5766 GB, free: 8.398 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002494/0.3684, allocations: 91.95 kB / 0.5766 GB, free: 8.309 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1289/0.4973, allocations: 48.99 MB / 0.6245 GB, free: 6.688 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.4973, allocations: 0 / 0.6245 GB, free: 6.688 MB / 458.7 MB Notification: Performance of Transformations before backend: time 7.859e-05/0.4974, allocations: 43.92 kB / 0.6245 GB, free: 6.645 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 423 * Number of variables: 423 Notification: Performance of Generate backend data structure: time 0.00305/0.5005, allocations: 1.743 MB / 0.6262 GB, free: 4.828 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.314e-05/0.5005, allocations: 8.031 kB / 0.6262 GB, free: 4.82 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002784/0.5008, allocations: 240.6 kB / 0.6265 GB, free: 4.574 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002305/0.5031, allocations: 449.3 kB / 0.6269 GB, free: 4.133 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004959/0.5081, allocations: 2.088 MB / 0.6289 GB, free: 2 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.074e-05/0.5082, allocations: 102.7 kB / 0.629 GB, free: 1.898 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002276/0.5084, allocations: 143.9 kB / 0.6292 GB, free: 1.758 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002966/0.5114, allocations: 2.257 MB / 0.6314 GB, free: 15.34 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.804e-05/0.5114, allocations: 7.938 kB / 0.6314 GB, free: 15.34 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000136/0.5116, allocations: 63.97 kB / 0.6314 GB, free: 15.27 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002949/0.5119, allocations: 186.8 kB / 0.6316 GB, free: 15.09 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002414/0.5143, allocations: 1.744 MB / 0.6333 GB, free: 13.34 MB / 474.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009629/0.5239, allocations: 9.299 MB / 0.6424 GB, free: 3.57 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001965/0.5259, allocations: 1.471 MB / 0.6438 GB, free: 2.059 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.218e-05/0.526, allocations: 17.05 kB / 0.6439 GB, free: 2.043 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001105/0.5271, allocations: 0.927 MB / 0.6448 GB, free: 1.078 MB / 474.7 MB Notification: Performance of pre-optimization done (n=142): time 3.206e-06/0.5271, allocations: 4 kB / 0.6448 GB, free: 1.074 MB / 474.7 MB Notification: Performance of matching and sorting (n=143): time 0.1696/0.6967, allocations: 4.736 MB / 0.6494 GB, free: 121.3 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.885e-05/0.6968, allocations: 287.4 kB / 0.6497 GB, free: 121 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009845/0.6978, allocations: 0.7685 MB / 0.6504 GB, free: 120.9 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 7.06e-05/0.6979, allocations: 51.94 kB / 0.6505 GB, free: 120.8 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000462/0.6984, allocations: 0.734 MB / 0.6512 GB, free: 120.5 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003182/0.6987, allocations: 493.1 kB / 0.6517 GB, free: 120.3 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.147e-05/0.6988, allocations: 32.78 kB / 0.6517 GB, free: 120.3 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001464/0.6989, allocations: 442.6 kB / 0.6521 GB, free: 120 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008799/0.6998, allocations: 0.6178 MB / 0.6527 GB, free: 120 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001061/0.7009, allocations: 1.159 MB / 0.6538 GB, free: 119.3 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00118/0.7021, allocations: 0.8832 MB / 0.6547 GB, free: 119.3 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.049e-05/0.7021, allocations: 4.531 kB / 0.6547 GB, free: 119.3 MB / 474.7 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.004447/0.7065, allocations: 2.545 MB / 0.6572 GB, free: 119 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.505e-05/0.7067, allocations: 72.75 kB / 0.6573 GB, free: 119 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002981/0.7097, allocations: 1.7 MB / 0.6589 GB, free: 118.9 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001659/0.7113, allocations: 0.5401 MB / 0.6595 GB, free: 118.8 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001081/0.7124, allocations: 323.9 kB / 0.6598 GB, free: 118.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009836/0.7223, allocations: 8.925 MB / 0.6685 GB, free: 113.8 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001303/0.7236, allocations: 94.55 kB / 0.6686 GB, free: 113.8 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001711/0.7238, allocations: 101.5 kB / 0.6687 GB, free: 113.8 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 77 * 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 (169): * Single equations (assignments): 160 * Array equations: 3 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 12,(2,100.0%) 11,(2,100.0%) 12,(2,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001047/0.7248, allocations: 0.5957 MB / 0.6692 GB, free: 113.6 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001788/0.725, allocations: 123.1 kB / 0.6694 GB, free: 113.5 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002431/0.7275, allocations: 1.697 MB / 0.671 GB, free: 113.4 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.06e-05/0.7275, allocations: 19.78 kB / 0.671 GB, free: 113.4 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.7275, allocations: 1.031 kB / 0.671 GB, free: 113.4 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.122e-05/0.7275, allocations: 8.75 kB / 0.671 GB, free: 113.4 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004237/0.7318, allocations: 3.23 MB / 0.6742 GB, free: 112.4 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.192e-06/0.7318, allocations: 6.812 kB / 0.6742 GB, free: 112.4 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001291/0.7331, allocations: 313.7 kB / 0.6745 GB, free: 112.4 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.137e-06/0.7331, allocations: 7.844 kB / 0.6745 GB, free: 112.4 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.726e-05/0.7332, allocations: 34.64 kB / 0.6745 GB, free: 112.4 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.873e-06/0.7332, allocations: 7.156 kB / 0.6746 GB, free: 112.4 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.7332, allocations: 3.781 kB / 0.6746 GB, free: 112.4 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002575/0.7358, allocations: 2.643 MB / 0.6771 GB, free: 111.2 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005503/0.7364, allocations: 310.6 kB / 0.6774 GB, free: 111 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001382/0.7365, allocations: 34.38 kB / 0.6775 GB, free: 110.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005697/0.7371, allocations: 60.08 kB / 0.6775 GB, free: 110.9 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001346/0.7372, allocations: 82.92 kB / 0.6776 GB, free: 110.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000102/0.7373, allocations: 81.09 kB / 0.6777 GB, free: 110.9 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0005317/0.7379, allocations: 0.5765 MB / 0.6782 GB, free: 110.7 MB / 474.7 MB Notification: Performance of sort global known variables: time 2e-07/0.7379, allocations: 0 / 0.6782 GB, free: 110.7 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.00137/0.7393, allocations: 469.5 kB / 0.6787 GB, free: 110.6 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (trafo1.i1[1],trafo1.i1[2],trafo1.i1[3],trafo2.i1[1],trafo2.i1[2],trafo2.i1[3]) * 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 (124): * Single equations (assignments): 118 * Array equations: 3 * 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.002989/0.7423, allocations: 3.784 MB / 0.6824 GB, free: 108.4 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.003115/0.7454, allocations: 2.434 MB / 0.6848 GB, free: 107.3 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.7454, allocations: 3.938 kB / 0.6848 GB, free: 107.3 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008882/0.7463, allocations: 0.9501 MB / 0.6857 GB, free: 106.9 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000752/0.7471, allocations: 189.8 kB / 0.6859 GB, free: 106.8 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0135/0.7606, allocations: 21.43 MB / 0.7068 GB, free: 90.21 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008652/0.7615, allocations: 1.492 MB / 0.7083 GB, free: 89.41 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.00113/0.7626, allocations: 464.6 kB / 0.7087 GB, free: 89.37 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005665/0.7632, allocations: 0.5733 MB / 0.7093 GB, free: 88.92 MB / 474.7 MB Notification: Performance of SimCode: time 1.032e-06/0.7632, allocations: 0 / 0.7093 GB, free: 88.92 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03804/0.8013, allocations: 27.53 MB / 0.7362 GB, free: 78.36 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001319/0.8014, allocations: 222.2 kB / 0.7364 GB, free: 78.11 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.545/3.347, allocations: 0 / 0.7364 GB, free: 78.11 MB / 474.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Transformation.TapChanger.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Transformation.TapChanger.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Transformation.TapChanger.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Transformation.TapChanger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Transformation.TapChanger_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Transformation_TapChanger_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Transformation_TapChanger.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Transformation.TapChanger.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC3ph.Transformation.TapChanger_res.mat does not exist to compare? outputFormat=mat