Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_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: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=15000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=15000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001035/0.001035, allocations: 173.8 kB / 16.76 MB, free: 5.055 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.899/1.899, allocations: 205.4 MB / 222.9 MB, free: 8.945 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.001135/0.001135, allocations: 86.36 kB / 271.3 MB, free: 8.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.3882/0.3882, allocations: 38.07 MB / 357.6 MB, free: 1.723 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003457/0.0003459, allocations: 12 kB / 423.9 MB, free: 38.05 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.26/0.2604, allocations: 56.32 MB / 480.3 MB, free: 9.215 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.128/0.3884, allocations: 100.1 MB / 0.5667 GB, free: 2.281 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002408/0.3887, allocations: 95.95 kB / 0.5668 GB, free: 2.188 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03214/0.4209, allocations: 11.48 MB / 0.578 GB, free: 6.555 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.4209, allocations: 4 kB / 0.578 GB, free: 6.551 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.7e-05/0.4209, allocations: 8 kB / 0.578 GB, free: 6.543 MB / 410.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.001494/0.4225, allocations: 0.8381 MB / 0.5789 GB, free: 5.648 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.672e-05/0.4225, allocations: 8.031 kB / 0.5789 GB, free: 5.641 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001671/0.4227, allocations: 64.19 kB / 0.5789 GB, free: 5.578 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001829/0.4245, allocations: 0.8028 MB / 0.5797 GB, free: 4.734 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.353e-05/0.4246, allocations: 29.38 kB / 0.5797 GB, free: 4.707 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.717e-05/0.4247, allocations: 44.31 kB / 0.5798 GB, free: 4.664 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008507/0.4255, allocations: 0.532 MB / 0.5803 GB, free: 4.094 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.504e-05/0.4255, allocations: 3.938 kB / 0.5803 GB, free: 4.09 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.205e-05/0.4256, allocations: 16 kB / 0.5803 GB, free: 4.074 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.603e-05/0.4256, allocations: 28.98 kB / 0.5804 GB, free: 4.047 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006622/0.4263, allocations: 383.6 kB / 0.5807 GB, free: 3.672 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002516/0.4288, allocations: 1.94 MB / 0.5826 GB, free: 1.621 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005819/0.4294, allocations: 337.3 kB / 0.5829 GB, free: 1.273 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003069/0.4297, allocations: 177.7 kB / 0.5831 GB, free: 1.094 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.506e-05/0.4298, allocations: 4 kB / 0.5831 GB, free: 1.09 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003532/0.4301, allocations: 280.2 kB / 0.5834 GB, free: 0.7852 MB / 410.7 MB Notification: Performance of pre-optimization done (n=35): time 2.214e-06/0.4302, allocations: 0 / 0.5834 GB, free: 0.7852 MB / 410.7 MB Notification: Performance of matching and sorting (n=36): time 0.001863/0.432, allocations: 1.179 MB / 0.5845 GB, free: 15.54 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001212/0.4322, allocations: 166.2 kB / 0.5847 GB, free: 15.34 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004208/0.4326, allocations: 393.8 kB / 0.5851 GB, free: 14.95 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.035e-05/0.4326, allocations: 33.7 kB / 0.5851 GB, free: 14.91 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001903/0.4328, allocations: 291.6 kB / 0.5854 GB, free: 14.62 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001022/0.4329, allocations: 122.3 kB / 0.5855 GB, free: 14.5 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.958e-05/0.433, allocations: 4.125 kB / 0.5855 GB, free: 14.49 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001364/0.4331, allocations: 362.8 kB / 0.5858 GB, free: 14.13 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002222/0.4333, allocations: 121 kB / 0.586 GB, free: 14.01 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003057/0.4337, allocations: 282.1 kB / 0.5862 GB, free: 13.66 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005726/0.4342, allocations: 485.3 kB / 0.5867 GB, free: 13.1 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.4343, allocations: 4 kB / 0.5867 GB, free: 13.1 MB / 426.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0007555/0.435, allocations: 0.5098 MB / 0.5872 GB, free: 12.57 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.239e-05/0.4351, allocations: 37.69 kB / 0.5872 GB, free: 12.53 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.121e-05/0.4351, allocations: 7.938 kB / 0.5872 GB, free: 12.52 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.963e-05/0.4351, allocations: 8 kB / 0.5872 GB, free: 12.52 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004284/0.4355, allocations: 112.4 kB / 0.5873 GB, free: 12.41 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.788e-05/0.4356, allocations: 19.92 kB / 0.5874 GB, free: 12.39 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002575/0.4358, allocations: 23.98 kB / 0.5874 GB, free: 12.36 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.227e-05/0.4359, allocations: 31.98 kB / 0.5874 GB, free: 12.33 MB / 426.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 () * Number of clocked 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.0002916/0.4362, allocations: 247.2 kB / 0.5877 GB, free: 12.07 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.687e-05/0.4363, allocations: 51.44 kB / 0.5877 GB, free: 12.02 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006812/0.437, allocations: 443.4 kB / 0.5881 GB, free: 11.57 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.474e-05/0.437, allocations: 11.94 kB / 0.5881 GB, free: 11.56 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.98e-06/0.437, allocations: 0 / 0.5881 GB, free: 11.56 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/0.437, allocations: 4 kB / 0.5881 GB, free: 11.56 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001192/0.4382, allocations: 0.9534 MB / 0.5891 GB, free: 10.54 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.4382, allocations: 0 / 0.5891 GB, free: 10.54 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003116/0.4385, allocations: 63.89 kB / 0.5891 GB, free: 10.48 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.4386, allocations: 4 kB / 0.5891 GB, free: 10.47 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.944e-05/0.4386, allocations: 12.03 kB / 0.5892 GB, free: 10.46 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.344e-06/0.4386, allocations: 11.94 kB / 0.5892 GB, free: 10.45 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.4386, allocations: 0 / 0.5892 GB, free: 10.45 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009387/0.4396, allocations: 0.6976 MB / 0.5898 GB, free: 9.723 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001627/0.4397, allocations: 152.4 kB / 0.59 GB, free: 9.555 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.261e-05/0.4398, allocations: 8 kB / 0.59 GB, free: 9.547 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002173/0.44, allocations: 20.06 kB / 0.59 GB, free: 9.527 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.961e-05/0.4401, allocations: 19.97 kB / 0.59 GB, free: 9.508 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.473e-05/0.4402, allocations: 39.95 kB / 0.5901 GB, free: 9.469 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0002854/0.4405, allocations: 267.1 kB / 0.5903 GB, free: 9.211 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4405, allocations: 0 / 0.5903 GB, free: 9.211 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0004721/0.441, allocations: 119.9 kB / 0.5904 GB, free: 9.094 MB / 426.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) * Number of clocked states: 0 () * 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.0002334/0.4412, allocations: 152.7 kB / 0.5906 GB, free: 8.941 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0005981/0.4418, allocations: 403.9 kB / 0.591 GB, free: 8.535 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.4418, allocations: 0 / 0.591 GB, free: 8.535 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003077/0.4422, allocations: 259.2 kB / 0.5912 GB, free: 8.27 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000613/0.4428, allocations: 98.39 kB / 0.5913 GB, free: 8.172 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001768/0.4446, allocations: 1.23 MB / 0.5925 GB, free: 6.895 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004956/0.4451, allocations: 0.882 MB / 0.5934 GB, free: 5.988 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001015/0.4452, allocations: 35.44 kB / 0.5934 GB, free: 5.953 MB / 426.7 MB Notification: Performance of SimCode: time 2.5e-07/0.4452, allocations: 0 / 0.5934 GB, free: 5.953 MB / 426.7 MB Notification: Performance of Templates: time 0.009846/0.455, allocations: 6.056 MB / 0.5993 GB, free: 15.9 MB / 442.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe 2>&1)