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.001001/0.001001, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.602/1.602, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008644/0.0008642, allocations: 78.69 kB / 262.1 MB, free: 13.89 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.172/0.172, allocations: 38 MB / 348.1 MB, free: 7.777 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.266e-05/2.269e-05, allocations: 0 / 410.7 MB, free: 46.86 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1159, allocations: 56.32 MB / 467 MB, free: 6.477 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4198/0.5357, allocations: 99.29 MB / 0.553 GB, free: 11.51 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002989/0.536, allocations: 87.95 kB / 0.5531 GB, free: 11.42 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.03312/0.5692, allocations: 11.41 MB / 0.5642 GB, free: 15.89 MB / 411.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.5692, allocations: 0 / 0.5642 GB, free: 15.89 MB / 411.1 MB Notification: Performance of Transformations before backend: time 3.187e-05/0.5693, allocations: 12 kB / 0.5642 GB, free: 15.88 MB / 411.1 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.001318/0.5706, allocations: 0.7602 MB / 0.565 GB, free: 15.06 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.34e-05/0.5706, allocations: 12.02 kB / 0.565 GB, free: 15.05 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001211/0.5708, allocations: 63.2 kB / 0.5651 GB, free: 14.99 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003197/0.574, allocations: 1.206 MB / 0.5662 GB, free: 13.74 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.558e-05/0.574, allocations: 16 kB / 0.5662 GB, free: 13.72 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.441e-05/0.5741, allocations: 24 kB / 0.5663 GB, free: 13.7 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006157/0.5747, allocations: 354.5 kB / 0.5666 GB, free: 13.35 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007014/0.5754, allocations: 477.1 kB / 0.5671 GB, free: 12.86 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.378e-05/0.5754, allocations: 3.938 kB / 0.5671 GB, free: 12.85 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.746e-05/0.5755, allocations: 4 kB / 0.5671 GB, free: 12.85 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.851e-05/0.5755, allocations: 24.73 kB / 0.5671 GB, free: 12.82 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002283/0.5778, allocations: 1.852 MB / 0.5689 GB, free: 10.87 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005154/0.5784, allocations: 305.4 kB / 0.5692 GB, free: 10.55 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002739/0.5786, allocations: 169.9 kB / 0.5694 GB, free: 10.38 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.639e-05/0.5787, allocations: 11.94 kB / 0.5694 GB, free: 10.37 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003372/0.579, allocations: 276.2 kB / 0.5696 GB, free: 10.07 MB / 411.1 MB Notification: Performance of pre-optimization done (n=35): time 2.425e-06/0.579, allocations: 0 / 0.5696 GB, free: 10.07 MB / 411.1 MB Notification: Performance of matching and sorting (n=36): time 0.001382/0.5804, allocations: 0.9005 MB / 0.5705 GB, free: 9.117 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.937e-05/0.5805, allocations: 166.2 kB / 0.5707 GB, free: 8.918 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003592/0.5809, allocations: 325.1 kB / 0.571 GB, free: 8.598 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 2.723e-05/0.5809, allocations: 29.73 kB / 0.571 GB, free: 8.562 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001869/0.5811, allocations: 295.6 kB / 0.5713 GB, free: 8.27 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.586e-05/0.5812, allocations: 114.4 kB / 0.5714 GB, free: 8.156 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.617e-05/0.5812, allocations: 7.875 kB / 0.5714 GB, free: 8.148 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.5814, allocations: 350.8 kB / 0.5717 GB, free: 7.797 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001635/0.5816, allocations: 109 kB / 0.5718 GB, free: 7.688 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002643/0.5818, allocations: 265.1 kB / 0.5721 GB, free: 7.355 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000212/0.582, allocations: 153 kB / 0.5722 GB, free: 7.207 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.047e-06/0.5821, allocations: 4 kB / 0.5722 GB, free: 7.203 MB / 411.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0006033/0.5827, allocations: 432.5 kB / 0.5727 GB, free: 6.773 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.898e-05/0.5827, allocations: 33.7 kB / 0.5727 GB, free: 6.734 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.688e-06/0.5827, allocations: 8.75 kB / 0.5727 GB, free: 6.727 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.382e-05/0.5828, allocations: 11.95 kB / 0.5727 GB, free: 6.715 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004123/0.5832, allocations: 115.8 kB / 0.5728 GB, free: 6.602 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.588e-05/0.5832, allocations: 15.97 kB / 0.5728 GB, free: 6.586 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002363/0.5835, allocations: 12 kB / 0.5728 GB, free: 6.574 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.427e-05/0.5835, allocations: 31.97 kB / 0.5729 GB, free: 6.543 MB / 411.1 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.0001402/0.5837, allocations: 160.3 kB / 0.573 GB, free: 6.375 MB / 411.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005143/0.5842, allocations: 368.8 kB / 0.5734 GB, free: 6.008 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.699e-05/0.5843, allocations: 55.42 kB / 0.5734 GB, free: 5.953 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006332/0.5849, allocations: 389.9 kB / 0.5738 GB, free: 5.562 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.191e-06/0.5849, allocations: 4 kB / 0.5738 GB, free: 5.559 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.962e-06/0.5849, allocations: 0 / 0.5738 GB, free: 5.559 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.5849, allocations: 0 / 0.5738 GB, free: 5.559 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001034/0.586, allocations: 0.8196 MB / 0.5746 GB, free: 4.691 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.586, allocations: 3.953 kB / 0.5746 GB, free: 4.688 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003161/0.5863, allocations: 71.92 kB / 0.5747 GB, free: 4.617 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.412e-06/0.5863, allocations: 4 kB / 0.5747 GB, free: 4.613 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.451e-05/0.5864, allocations: 4 kB / 0.5747 GB, free: 4.609 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.5864, allocations: 0 / 0.5747 GB, free: 4.609 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.731e-06/0.5864, allocations: 4 kB / 0.5747 GB, free: 4.605 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008142/0.5872, allocations: 0.6681 MB / 0.5753 GB, free: 3.902 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001583/0.5874, allocations: 136.5 kB / 0.5755 GB, free: 3.75 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.791e-05/0.5874, allocations: 4 kB / 0.5755 GB, free: 3.746 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002088/0.5876, allocations: 11.98 kB / 0.5755 GB, free: 3.734 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.609e-05/0.5877, allocations: 23.97 kB / 0.5755 GB, free: 3.711 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.54e-05/0.5878, allocations: 27.97 kB / 0.5755 GB, free: 3.684 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.0002406/0.588, allocations: 255 kB / 0.5758 GB, free: 3.438 MB / 411.1 MB Notification: Performance of sort global known variables: time 1.893e-06/0.5881, allocations: 3.938 kB / 0.5758 GB, free: 3.434 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.0004835/0.5885, allocations: 103.9 kB / 0.5759 GB, free: 3.332 MB / 411.1 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.001358/0.5899, allocations: 1.37 MB / 0.5772 GB, free: 1.922 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.0005497/0.5905, allocations: 371.8 kB / 0.5776 GB, free: 1.547 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.5905, allocations: 0 / 0.5776 GB, free: 1.547 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002733/0.5908, allocations: 251.2 kB / 0.5778 GB, free: 1.289 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005264/0.5913, allocations: 86.53 kB / 0.5779 GB, free: 1.207 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001685/0.593, allocations: 0.8029 MB / 0.5787 GB, free: 360 kB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005526/0.5936, allocations: 0.8898 MB / 0.5796 GB, free: 15.44 MB / 427.1 MB Notification: Performance of simCode: alias equations: time 0.0003217/0.5939, allocations: 96.3 kB / 0.5796 GB, free: 15.34 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002267/0.5941, allocations: 175.4 kB / 0.5798 GB, free: 15.17 MB / 427.1 MB Notification: Performance of SimCode: time 7.62e-07/0.5941, allocations: 0 / 0.5798 GB, free: 15.17 MB / 427.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03008/0.6242, allocations: 7.794 MB / 0.5874 GB, free: 7.398 MB / 427.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002164/0.6245, allocations: 155.6 kB / 0.5876 GB, free: 7.199 MB / 427.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.186/2.81, allocations: 0 / 0.5876 GB, free: 7.199 MB / 427.1 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