Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2.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.AC3ph.Precalculation.Z_matrixTrDat2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_d.3.|zr_q.1.|zr_q.2.|zr_q.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_d.3.|zr_q.1.|zr_q.2.|zr_q.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009356/0.0009354, allocations: 181 kB / 16.38 MB, free: 5.766 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.384/1.384, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.0008703/0.0008702, allocations: 92.14 kB / 270.8 MB, free: 8.367 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1608/0.1608, allocations: 38.05 MB / 357.2 MB, free: 1.887 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002838/0.0002838, allocations: 8 kB / 424 MB, free: 37.68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2848/0.2851, allocations: 56.31 MB / 480.3 MB, free: 9.547 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.127/0.4122, allocations: 92.53 MB / 0.5594 GB, free: 9.895 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002175/0.4124, allocations: 79.95 kB / 0.5595 GB, free: 9.816 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04167/0.4541, allocations: 12.14 MB / 0.5713 GB, free: 13.66 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.4541, allocations: 4 kB / 0.5713 GB, free: 13.65 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.107e-05/0.4542, allocations: 0 / 0.5713 GB, free: 13.65 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0008619/0.455, allocations: 0.582 MB / 0.5719 GB, free: 13.02 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.965e-05/0.4551, allocations: 12.03 kB / 0.5719 GB, free: 13 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.096e-05/0.4552, allocations: 15.81 kB / 0.5719 GB, free: 12.99 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001792/0.4553, allocations: 194.8 kB / 0.5721 GB, free: 12.76 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.191e-05/0.4554, allocations: 4 kB / 0.5721 GB, free: 12.75 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.075e-05/0.4554, allocations: 0 / 0.5721 GB, free: 12.75 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001524/0.4555, allocations: 101.9 kB / 0.5722 GB, free: 12.65 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.492e-06/0.4556, allocations: 0 / 0.5722 GB, free: 12.65 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.331e-05/0.4556, allocations: 0 / 0.5722 GB, free: 12.65 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.704e-06/0.4556, allocations: 4 kB / 0.5722 GB, free: 12.64 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001132/0.4557, allocations: 55.97 kB / 0.5723 GB, free: 12.59 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001742/0.4559, allocations: 197.3 kB / 0.5725 GB, free: 12.35 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001094/0.456, allocations: 107.1 kB / 0.5726 GB, free: 12.23 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.089e-06/0.456, allocations: 0 / 0.5726 GB, free: 12.23 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.054e-05/0.4561, allocations: 38.59 kB / 0.5726 GB, free: 12.19 MB / 410.7 MB Notification: Performance of pre-optimization done (n=24): time 1.041e-06/0.4561, allocations: 0 / 0.5726 GB, free: 12.19 MB / 410.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004365/0.4565, allocations: 388.2 kB / 0.573 GB, free: 11.78 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.128e-05/0.4566, allocations: 105 kB / 0.5731 GB, free: 11.66 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.933e-05/0.4567, allocations: 138.3 kB / 0.5732 GB, free: 11.51 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.441e-05/0.4567, allocations: 25.7 kB / 0.5732 GB, free: 11.48 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.072e-05/0.4567, allocations: 100.6 kB / 0.5733 GB, free: 11.38 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.486e-05/0.4568, allocations: 78.75 kB / 0.5734 GB, free: 11.3 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.187e-06/0.4568, allocations: 0 / 0.5734 GB, free: 11.3 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.739e-05/0.4569, allocations: 334.8 kB / 0.5737 GB, free: 10.96 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.434e-05/0.457, allocations: 55.97 kB / 0.5738 GB, free: 10.91 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.041e-05/0.4571, allocations: 60.78 kB / 0.5738 GB, free: 10.85 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001075/0.4572, allocations: 121.7 kB / 0.574 GB, free: 10.73 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.4572, allocations: 0 / 0.574 GB, free: 10.73 MB / 410.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002253/0.4574, allocations: 227 kB / 0.5742 GB, free: 10.49 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.536e-05/0.4575, allocations: 68.38 kB / 0.5742 GB, free: 10.42 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.4575, allocations: 4 kB / 0.5742 GB, free: 10.42 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.251e-05/0.4575, allocations: 0 / 0.5742 GB, free: 10.42 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.994e-06/0.4575, allocations: 0 / 0.5742 GB, free: 10.42 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.829e-06/0.4575, allocations: 3.938 kB / 0.5742 GB, free: 10.41 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.858e-05/0.4576, allocations: 11.84 kB / 0.5743 GB, free: 10.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.602e-05/0.4576, allocations: 15.98 kB / 0.5743 GB, free: 10.39 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * 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.0001287/0.4578, allocations: 195.4 kB / 0.5745 GB, free: 10.18 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.512e-05/0.4578, allocations: 15.81 kB / 0.5745 GB, free: 10.16 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.515e-05/0.4578, allocations: 13.19 kB / 0.5745 GB, free: 10.15 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.4578, allocations: 0 / 0.5745 GB, free: 10.15 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.4578, allocations: 0 / 0.5745 GB, free: 10.15 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.314e-06/0.4578, allocations: 0 / 0.5745 GB, free: 10.15 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001909/0.458, allocations: 217.4 kB / 0.5747 GB, free: 9.891 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.458, allocations: 0 / 0.5747 GB, free: 9.891 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.824e-06/0.458, allocations: 4 kB / 0.5747 GB, free: 9.887 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.458, allocations: 0 / 0.5747 GB, free: 9.887 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.62e-05/0.4581, allocations: 4 kB / 0.5747 GB, free: 9.883 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.4581, allocations: 0 / 0.5747 GB, free: 9.883 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.4581, allocations: 3.938 kB / 0.5747 GB, free: 9.879 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004942/0.4586, allocations: 0.5062 MB / 0.5752 GB, free: 9.348 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.303e-05/0.4586, allocations: 92.88 kB / 0.5753 GB, free: 9.238 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.443e-05/0.4587, allocations: 4 kB / 0.5753 GB, free: 9.234 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.659e-05/0.4587, allocations: 7.938 kB / 0.5753 GB, free: 9.227 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.422e-05/0.4587, allocations: 8 kB / 0.5753 GB, free: 9.219 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.352e-05/0.4588, allocations: 4 kB / 0.5753 GB, free: 9.215 MB / 410.7 MB Notification: Performance of sorting global known variables: time 6.276e-05/0.4588, allocations: 119.1 kB / 0.5754 GB, free: 9.098 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4588, allocations: 4.031 kB / 0.5754 GB, free: 9.094 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0009946/0.4598, allocations: 375.6 kB / 0.5758 GB, free: 8.727 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * 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 Backend phase and start with SimCode phase: time 0.0009028/0.4607, allocations: 418 kB / 0.5762 GB, free: 8.312 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0006249/0.4614, allocations: 0.6983 MB / 0.5769 GB, free: 7.602 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.4614, allocations: 0 / 0.5769 GB, free: 7.602 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004195/0.4618, allocations: 0.5735 MB / 0.5774 GB, free: 7.016 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001557/0.462, allocations: 15.98 kB / 0.5774 GB, free: 7 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007202/0.4627, allocations: 0.4926 MB / 0.5779 GB, free: 6.477 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000303/0.463, allocations: 0.7358 MB / 0.5786 GB, free: 5.715 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 1.328e-05/0.4631, allocations: 3.953 kB / 0.5786 GB, free: 5.711 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.494e-05/0.4631, allocations: 11.44 kB / 0.5787 GB, free: 5.699 MB / 410.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4631, allocations: 0 / 0.5787 GB, free: 5.699 MB / 410.7 MB [CodegenCFunctions.tpl:5437:13-5437:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].