Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Transformer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Elementary.Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Transformer") translateModel(PowerSystems.Examples.AC3ph.Elementary.Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Transformer") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001058/0.001058, allocations: 191.6 kB / 8.135 MB, free: 2.199 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.325/1.325, allocations: 194.2 MB / 202.8 MB, free: 8.762 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001944/0.001944, allocations: 121.9 kB / 247.7 MB, free: 6.258 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1599/0.1599, allocations: 37.93 MB / 330.5 MB, free: 6.922 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 7.494e-06/7.504e-06, allocations: 4 kB / 389.8 MB, free: 78.11 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07733/0.07735, allocations: 53.23 MB / 443 MB, free: 24.98 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2971/0.3746, allocations: 104.3 MB / 0.5345 GB, free: 3.547 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002915/0.3749, allocations: 84.2 kB / 0.5346 GB, free: 3.504 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.08624/0.4612, allocations: 29.17 MB / 0.5631 GB, free: 10.68 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.174e-05/0.4613, allocations: 20 kB / 0.5631 GB, free: 10.66 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: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.003267/0.4646, allocations: 1.099 MB / 0.5642 GB, free: 9.566 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.266e-05/0.4646, allocations: 8.031 kB / 0.5642 GB, free: 9.559 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001999/0.4666, allocations: 250.4 kB / 0.5644 GB, free: 9.312 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004756/0.4714, allocations: 1.447 MB / 0.5658 GB, free: 8.062 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.504e-05/0.4715, allocations: 28 kB / 0.5658 GB, free: 8.035 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002987/0.4718, allocations: 48 kB / 0.5659 GB, free: 7.988 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001986/0.4738, allocations: 0.9221 MB / 0.5668 GB, free: 7.348 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002407/0.4763, allocations: 1.242 MB / 0.568 GB, free: 6.281 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.482e-05/0.4763, allocations: 3.938 kB / 0.568 GB, free: 6.277 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001039/0.4764, allocations: 4 kB / 0.568 GB, free: 6.273 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001867/0.4766, allocations: 107.8 kB / 0.5681 GB, free: 6.176 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006951/0.4836, allocations: 5.646 MB / 0.5736 GB, free: 0.9141 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001061/0.4847, allocations: 0.7819 MB / 0.5744 GB, free: 252 kB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004564/0.4851, allocations: 362.4 kB / 0.5747 GB, free: 4 kB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.035e-05/0.4852, allocations: 11.98 kB / 0.5747 GB, free: 15.99 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005964/0.4858, allocations: 0.5047 MB / 0.5752 GB, free: 15.57 MB / 394.7 MB Notification: Performance of pre-optimization done (n=74): time 3.346e-06/0.4859, allocations: 4 kB / 0.5752 GB, free: 15.57 MB / 394.7 MB Notification: Performance of matching and sorting (n=75): time 0.003114/0.489, allocations: 1.906 MB / 0.5771 GB, free: 13.96 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.615e-05/0.4891, allocations: 170.3 kB / 0.5773 GB, free: 13.76 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005545/0.4896, allocations: 0.5071 MB / 0.5778 GB, free: 13.35 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.588e-05/0.4897, allocations: 29.64 kB / 0.5778 GB, free: 13.32 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002536/0.4899, allocations: 453.4 kB / 0.5782 GB, free: 12.91 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001931/0.4901, allocations: 254.2 kB / 0.5785 GB, free: 12.7 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.999e-05/0.4902, allocations: 4.031 kB / 0.5785 GB, free: 12.69 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001385/0.4903, allocations: 379.5 kB / 0.5788 GB, free: 12.34 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004828/0.4908, allocations: 362.4 kB / 0.5792 GB, free: 12.09 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007124/0.4915, allocations: 0.7451 MB / 0.5799 GB, free: 11.3 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007174/0.4923, allocations: 0.5049 MB / 0.5804 GB, free: 10.93 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.272e-06/0.4923, allocations: 4 kB / 0.5804 GB, free: 10.92 MB / 394.7 MB Notification: Performance of matching and sorting (n=139) (initialization): time 0.002292/0.4946, allocations: 1.339 MB / 0.5817 GB, free: 9.832 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.786e-05/0.4946, allocations: 8 kB / 0.5817 GB, free: 9.824 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001517/0.4961, allocations: 0.8678 MB / 0.5826 GB, free: 9.09 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007422/0.4969, allocations: 245.5 kB / 0.5828 GB, free: 8.844 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007621/0.4977, allocations: 219.7 kB / 0.583 GB, free: 8.625 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003855/0.5015, allocations: 3.74 MB / 0.5867 GB, free: 4.656 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006675/0.5022, allocations: 40.03 kB / 0.5867 GB, free: 4.617 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001331/0.5024, allocations: 55.98 kB / 0.5868 GB, free: 4.562 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * 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 (116): * Single equations (assignments): 111 * Array equations: 2 * Algorithm blocks: 1 * 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 {(2,100.0%) 12,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002546/0.5026, allocations: 190.9 kB / 0.5869 GB, free: 4.363 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001199/0.5028, allocations: 75.06 kB / 0.587 GB, free: 4.289 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001496/0.5043, allocations: 0.8711 MB / 0.5879 GB, free: 3.406 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.536e-05/0.5043, allocations: 15.91 kB / 0.5879 GB, free: 3.391 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.077e-06/0.5043, allocations: 3.984 kB / 0.5879 GB, free: 3.387 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.253e-06/0.5043, allocations: 0 / 0.5879 GB, free: 3.387 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003024/0.5073, allocations: 1.728 MB / 0.5896 GB, free: 1.598 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.5074, allocations: 0 / 0.5896 GB, free: 1.598 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008249/0.5082, allocations: 163.9 kB / 0.5897 GB, free: 1.438 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.025e-05/0.5082, allocations: 4 kB / 0.5897 GB, free: 1.434 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.847e-05/0.5083, allocations: 11.98 kB / 0.5897 GB, free: 1.422 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.191e-06/0.5083, allocations: 8 kB / 0.5897 GB, free: 1.414 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.322e-06/0.5083, allocations: 4 kB / 0.5897 GB, free: 1.41 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001889/0.5102, allocations: 1.468 MB / 0.5912 GB, free: 15.87 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003414/0.5106, allocations: 216.1 kB / 0.5914 GB, free: 15.64 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001335/0.5107, allocations: 11.98 kB / 0.5914 GB, free: 15.62 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000442/0.5111, allocations: 23.97 kB / 0.5914 GB, free: 15.6 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001096/0.5113, allocations: 36.36 kB / 0.5915 GB, free: 15.56 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.205e-05/0.5114, allocations: 55.97 kB / 0.5915 GB, free: 15.51 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0004375/0.5118, allocations: 375.1 kB / 0.5919 GB, free: 15.14 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0009608/0.5128, allocations: 236.2 kB / 0.5921 GB, free: 14.91 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (trafo.i1[1],trafo.i1[2],trafo.i1[3]) * 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 (67): * Single equations (assignments): 63 * Array equations: 2 * 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.0003362/0.5131, allocations: 166.8 kB / 0.5923 GB, free: 14.75 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001784/0.5149, allocations: 1.188 MB / 0.5934 GB, free: 13.54 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.5149, allocations: 0 / 0.5934 GB, free: 13.54 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006273/0.5156, allocations: 489.2 kB / 0.5939 GB, free: 13.06 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006015/0.5162, allocations: 106.3 kB / 0.594 GB, free: 12.96 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003019/0.5192, allocations: 1.617 MB / 0.5956 GB, free: 11.3 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00103/0.5202, allocations: 1.2 MB / 0.5967 GB, free: 10.07 MB / 410.7 MB Notification: Performance of SimCode: time 4.31e-07/0.5203, allocations: 0 / 0.5967 GB, free: 10.07 MB / 410.7 MB Notification: Performance of Templates: time 0.01745/0.5377, allocations: 9.435 MB / 0.6059 GB, free: 0.6484 MB / 410.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Transformer.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Transformer.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Transformer.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Transformer.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Transformer.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Transformer -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Transformer.pipe 2>&1)