Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_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_latest_PowerSystems_Examples_AC1ph_DC_Transformation_TapChanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger,fileNamePrefix="PowerSystems_latest_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.0009911/0.0009912, allocations: 174.8 kB / 13.63 MB, free: 1.684 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.571/1.571, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.001031/0.001031, allocations: 74.73 kB / 267.5 MB, free: 14.03 MB / 234.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: 37.98 MB / 353.5 MB, free: 1.727 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.874e-05/2.877e-05, allocations: 0 / 417.8 MB, free: 29.03 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1085, allocations: 56.33 MB / 474.2 MB, free: 4.695 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4109/0.5195, allocations: 100.1 MB / 0.5608 GB, free: 2.605 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003154/0.5199, allocations: 92.86 kB / 0.5608 GB, free: 2.559 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04425/0.5642, allocations: 16.95 MB / 0.5774 GB, free: 3.887 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.5642, allocations: 0 / 0.5774 GB, free: 3.887 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.684e-05/0.5643, allocations: 12 kB / 0.5774 GB, free: 3.875 MB / 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.001497/0.5658, allocations: 1.007 MB / 0.5784 GB, free: 2.859 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.519e-05/0.5658, allocations: 8.031 kB / 0.5784 GB, free: 2.852 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001427/0.566, allocations: 112.8 kB / 0.5785 GB, free: 2.77 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001539/0.5661, allocations: 94.88 kB / 0.5786 GB, free: 2.676 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003944/0.5701, allocations: 1.691 MB / 0.5802 GB, free: 1.215 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.345e-05/0.5701, allocations: 51.3 kB / 0.5803 GB, free: 1.18 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.808e-05/0.5702, allocations: 63.31 kB / 0.5804 GB, free: 1.137 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001126/0.5714, allocations: 0.7888 MB / 0.5811 GB, free: 0.5312 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.611e-05/0.5714, allocations: 4 kB / 0.5811 GB, free: 0.5273 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.442e-05/0.5715, allocations: 27 kB / 0.5812 GB, free: 0.5195 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-05/0.5715, allocations: 33.25 kB / 0.5812 GB, free: 500 kB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008883/0.5724, allocations: 0.6042 MB / 0.5818 GB, free: 68 kB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003192/0.5756, allocations: 2.637 MB / 0.5844 GB, free: 13.77 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008917/0.5765, allocations: 0.603 MB / 0.5849 GB, free: 13.35 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005406/0.5771, allocations: 372.4 kB / 0.5853 GB, free: 13.09 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.304e-05/0.5771, allocations: 8.438 kB / 0.5853 GB, free: 13.08 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005298/0.5777, allocations: 480.5 kB / 0.5858 GB, free: 12.65 MB / 394.7 MB Notification: Performance of pre-optimization done (n=63): time 1.783e-06/0.5777, allocations: 0 / 0.5858 GB, free: 12.65 MB / 394.7 MB Notification: Performance of matching and sorting (n=64): time 0.002321/0.58, allocations: 1.747 MB / 0.5875 GB, free: 11.12 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00012/0.5801, allocations: 251.7 kB / 0.5877 GB, free: 10.83 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005174/0.5807, allocations: 498.8 kB / 0.5882 GB, free: 10.43 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.251e-05/0.5807, allocations: 39.02 kB / 0.5882 GB, free: 10.39 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002625/0.581, allocations: 402.9 kB / 0.5886 GB, free: 10.1 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001572/0.5811, allocations: 205.5 kB / 0.5888 GB, free: 9.926 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.742e-05/0.5812, allocations: 15.5 kB / 0.5888 GB, free: 9.922 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001809/0.5814, allocations: 385.3 kB / 0.5892 GB, free: 9.566 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003107/0.5817, allocations: 219.8 kB / 0.5894 GB, free: 9.422 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004517/0.5821, allocations: 445.6 kB / 0.5898 GB, free: 8.969 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000404/0.5826, allocations: 331.3 kB / 0.5901 GB, free: 8.707 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.668e-06/0.5826, allocations: 8 kB / 0.5901 GB, free: 8.699 MB / 394.7 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.001366/0.5839, allocations: 0.9219 MB / 0.591 GB, free: 7.945 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.862e-05/0.584, allocations: 59.41 kB / 0.5911 GB, free: 7.875 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.32e-05/0.584, allocations: 8.125 kB / 0.5911 GB, free: 7.867 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003683/0.5844, allocations: 121 kB / 0.5912 GB, free: 7.762 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004719/0.5849, allocations: 143.7 kB / 0.5914 GB, free: 7.625 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002721/0.5876, allocations: 3.198 MB / 0.5945 GB, free: 4.438 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003842/0.588, allocations: 42.62 kB / 0.5945 GB, free: 4.406 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.519e-05/0.5881, allocations: 54.78 kB / 0.5946 GB, free: 4.359 MB / 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 () * 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.0001935/0.5883, allocations: 234.2 kB / 0.5948 GB, free: 4.137 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.896e-05/0.5884, allocations: 71.16 kB / 0.5949 GB, free: 4.066 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001063/0.5895, allocations: 0.773 MB / 0.5956 GB, free: 3.477 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.02e-06/0.5895, allocations: 4 kB / 0.5956 GB, free: 3.473 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.5895, allocations: 4 kB / 0.5956 GB, free: 3.469 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/0.5895, allocations: 11.92 kB / 0.5956 GB, free: 3.457 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002044/0.5916, allocations: 1.553 MB / 0.5972 GB, free: 2.176 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.5916, allocations: 0 / 0.5972 GB, free: 2.176 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005066/0.5921, allocations: 119.1 kB / 0.5973 GB, free: 2.062 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.684e-06/0.5921, allocations: 4 kB / 0.5973 GB, free: 2.059 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.092e-05/0.5922, allocations: 19.05 kB / 0.5973 GB, free: 2.047 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.691e-06/0.5922, allocations: 7.953 kB / 0.5973 GB, free: 2.039 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.5922, allocations: 0 / 0.5973 GB, free: 2.039 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001519/0.5937, allocations: 1.228 MB / 0.5985 GB, free: 1.023 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002478/0.594, allocations: 187.4 kB / 0.5987 GB, free: 0.8398 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.322e-05/0.594, allocations: 14.12 kB / 0.5987 GB, free: 0.832 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003087/0.5944, allocations: 35.28 kB / 0.5987 GB, free: 0.8047 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.71e-05/0.5945, allocations: 39.39 kB / 0.5988 GB, free: 0.7734 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.568e-05/0.5946, allocations: 59.36 kB / 0.5988 GB, free: 0.7188 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003971/0.595, allocations: 385.4 kB / 0.5992 GB, free: 436 kB / 394.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.595, allocations: 3.938 kB / 0.5992 GB, free: 432 kB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006413/0.5956, allocations: 198.9 kB / 0.5994 GB, free: 256 kB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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) * 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.002036/0.5977, allocations: 2.125 MB / 0.6015 GB, free: 14.35 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001303/0.599, allocations: 0.9808 MB / 0.6024 GB, free: 13.48 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.599, allocations: 1.312 kB / 0.6024 GB, free: 13.48 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005171/0.5995, allocations: 493.3 kB / 0.6029 GB, free: 13.09 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006314/0.6002, allocations: 139.8 kB / 0.603 GB, free: 12.99 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002149/0.6023, allocations: 1.39 MB / 0.6044 GB, free: 11.74 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005739/0.6029, allocations: 1.02 MB / 0.6054 GB, free: 10.72 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0004307/0.6033, allocations: 161.8 kB / 0.6055 GB, free: 10.56 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000293/0.6036, allocations: 277 kB / 0.6058 GB, free: 10.49 MB / 410.7 MB Notification: Performance of SimCode: time 2.71e-07/0.6036, allocations: 0 / 0.6058 GB, free: 10.49 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02855/0.6322, allocations: 14.3 MB / 0.6198 GB, free: 12.23 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001937/0.6324, allocations: 188.2 kB / 0.6199 GB, free: 12 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.493/3.126, allocations: 0 / 0.6199 GB, free: 12 MB / 426.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Transformation_TapChanger_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Transformation_TapChanger.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger_res.mat does not exist to compare? outputFormat=mat