Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.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.Elementary.Transformer,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer",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.001516/0.001516, allocations: 175.5 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.663/1.663, allocations: 205.2 MB / 219.4 MB, free: 14.27 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.0008306/0.0008306, allocations: 94.62 kB / 267.5 MB, free: 14.1 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1635/0.1635, allocations: 37.97 MB / 353.5 MB, free: 1.762 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.614e-05/3.617e-05, allocations: 4 kB / 417.8 MB, free: 29.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1256/0.1256, allocations: 56.32 MB / 474.2 MB, free: 4.715 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4631/0.5888, allocations: 99.95 MB / 0.5606 GB, free: 2.738 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00023/0.5891, allocations: 92.06 kB / 0.5607 GB, free: 2.695 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03059/0.6197, allocations: 11.52 MB / 0.572 GB, free: 8.738 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.6197, allocations: 0 / 0.572 GB, free: 8.738 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.776e-05/0.6197, allocations: 12 kB / 0.572 GB, free: 8.727 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001122/0.6209, allocations: 0.7611 MB / 0.5727 GB, free: 7.949 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.226e-05/0.6209, allocations: 8.031 kB / 0.5727 GB, free: 7.941 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.679e-05/0.621, allocations: 84.81 kB / 0.5728 GB, free: 7.871 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001088/0.6211, allocations: 69.89 kB / 0.5729 GB, free: 7.805 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002931/0.6241, allocations: 1.21 MB / 0.5741 GB, free: 6.742 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.111e-05/0.6241, allocations: 31.44 kB / 0.5741 GB, free: 6.723 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.139e-05/0.6242, allocations: 50.16 kB / 0.5742 GB, free: 6.688 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007646/0.625, allocations: 0.5164 MB / 0.5747 GB, free: 6.27 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.535e-05/0.625, allocations: 0 / 0.5747 GB, free: 6.27 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.052e-05/0.6251, allocations: 20.19 kB / 0.5747 GB, free: 6.262 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.358e-05/0.6251, allocations: 16.78 kB / 0.5747 GB, free: 6.246 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005812/0.6257, allocations: 387.7 kB / 0.5751 GB, free: 5.977 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002187/0.6279, allocations: 1.927 MB / 0.5769 GB, free: 4.215 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005234/0.6284, allocations: 332.5 kB / 0.5773 GB, free: 3.969 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002871/0.6287, allocations: 176.4 kB / 0.5774 GB, free: 3.84 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.583e-05/0.6288, allocations: 7.953 kB / 0.5774 GB, free: 3.832 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003301/0.6291, allocations: 276.1 kB / 0.5777 GB, free: 3.578 MB / 378.7 MB Notification: Performance of pre-optimization done (n=35): time 1.513e-06/0.6291, allocations: 0 / 0.5777 GB, free: 3.578 MB / 378.7 MB Notification: Performance of matching and sorting (n=36): time 0.001529/0.6306, allocations: 1.066 MB / 0.5787 GB, free: 2.605 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.968e-05/0.6307, allocations: 158.2 kB / 0.5789 GB, free: 2.414 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000335/0.6311, allocations: 346.5 kB / 0.5792 GB, free: 2.129 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.912e-05/0.6311, allocations: 29.52 kB / 0.5792 GB, free: 2.098 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001797/0.6313, allocations: 295 kB / 0.5795 GB, free: 1.871 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001149/0.6314, allocations: 124.5 kB / 0.5796 GB, free: 1.766 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.965e-05/0.6315, allocations: 10.75 kB / 0.5797 GB, free: 1.762 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001385/0.6316, allocations: 359.1 kB / 0.58 GB, free: 1.422 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001843/0.6318, allocations: 116.2 kB / 0.5801 GB, free: 1.34 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002855/0.6321, allocations: 273 kB / 0.5804 GB, free: 1.047 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002569/0.6324, allocations: 186.5 kB / 0.5806 GB, free: 0.8984 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.6324, allocations: 7.875 kB / 0.5806 GB, free: 0.8906 MB / 378.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.000686/0.6331, allocations: 0.5048 MB / 0.5811 GB, free: 480 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.505e-05/0.6331, allocations: 33.7 kB / 0.5811 GB, free: 440 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/0.6331, allocations: 8 kB / 0.5811 GB, free: 432 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.942e-05/0.6331, allocations: 8 kB / 0.5811 GB, free: 424 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003915/0.6335, allocations: 112.1 kB / 0.5812 GB, free: 316 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.934e-05/0.6336, allocations: 11.98 kB / 0.5812 GB, free: 304 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002254/0.6338, allocations: 25.62 kB / 0.5812 GB, free: 288 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.206e-05/0.6339, allocations: 34.53 kB / 0.5813 GB, free: 256 kB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 11 (system.initime,$whenCondition1,$whenCondition2,$PRE.tapChanger.cnt_1,tapChanger.cnt_1,$PRE.tapChanger.cnt_2,tapChanger.cnt_2,$PRE.tapChanger.tap_1,tapChanger.tap_1,$PRE.tapChanger.tap_2,tapChanger.tap_2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001477/0.634, allocations: 174.4 kB / 0.5814 GB, free: 84 kB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.883e-05/0.6341, allocations: 51.38 kB / 0.5815 GB, free: 32 kB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007031/0.6348, allocations: 451.1 kB / 0.5819 GB, free: 15.7 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.6348, allocations: 4 kB / 0.5819 GB, free: 15.7 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.6348, allocations: 4 kB / 0.5819 GB, free: 15.69 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.133e-06/0.6348, allocations: 3.984 kB / 0.5819 GB, free: 15.69 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00114/0.636, allocations: 0.9474 MB / 0.5829 GB, free: 14.86 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.636, allocations: 0 / 0.5829 GB, free: 14.86 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000301/0.6363, allocations: 59.91 kB / 0.5829 GB, free: 14.8 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.131e-06/0.6363, allocations: 4 kB / 0.5829 GB, free: 14.8 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.036e-05/0.6364, allocations: 14.17 kB / 0.5829 GB, free: 14.79 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.656e-06/0.6364, allocations: 4 kB / 0.5829 GB, free: 14.79 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.6364, allocations: 4.031 kB / 0.5829 GB, free: 14.79 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009305/0.6373, allocations: 0.7184 MB / 0.5836 GB, free: 14.18 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001625/0.6375, allocations: 139.7 kB / 0.5838 GB, free: 14.03 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.383e-05/0.6376, allocations: 7.812 kB / 0.5838 GB, free: 14.03 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002041/0.6378, allocations: 23.8 kB / 0.5838 GB, free: 14.01 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.81e-05/0.6378, allocations: 23.72 kB / 0.5838 GB, free: 13.99 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.695e-05/0.6379, allocations: 31.91 kB / 0.5839 GB, free: 13.96 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002447/0.6381, allocations: 262.1 kB / 0.5841 GB, free: 13.75 MB / 394.7 MB Notification: Performance of sort global known variables: time 4e-07/0.6382, allocations: 3.828 kB / 0.5841 GB, free: 13.75 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004149/0.6386, allocations: 119.5 kB / 0.5842 GB, free: 13.65 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (trafo.i1) * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,tapChanger.tap_1,tapChanger.tap_2,tapChanger.cnt_1,tapChanger.cnt_2,system.initime) * Number of discrete states: 6 (tapChanger.tap_2,tapChanger.cnt_2,$whenCondition2,tapChanger.tap_1,tapChanger.cnt_1,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 1 * 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.001352/0.6399, allocations: 1.447 MB / 0.5856 GB, free: 12.32 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0005377/0.6405, allocations: 403.2 kB / 0.586 GB, free: 11.99 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.6405, allocations: 8 kB / 0.586 GB, free: 11.98 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002993/0.6408, allocations: 260.5 kB / 0.5863 GB, free: 11.78 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004771/0.6413, allocations: 90.7 kB / 0.5864 GB, free: 11.72 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001472/0.6428, allocations: 0.8372 MB / 0.5872 GB, free: 10.94 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004506/0.6432, allocations: 0.8972 MB / 0.5881 GB, free: 10.03 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.000301/0.6435, allocations: 92.44 kB / 0.5881 GB, free: 9.938 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001983/0.6438, allocations: 173.8 kB / 0.5883 GB, free: 9.887 MB / 394.7 MB Notification: Performance of SimCode: time 2.5e-07/0.6438, allocations: 0 / 0.5883 GB, free: 9.887 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2876/0.9313, allocations: 8.683 MB / 0.5968 GB, free: 1.25 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002252/0.9316, allocations: 162.4 kB / 0.5969 GB, free: 1.027 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.267/3.199, allocations: 0 / 0.5969 GB, free: 1.027 MB / 394.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer_res.mat does not exist to compare? outputFormat=mat