Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3.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.AC3ph.Precalculation.Z_matrixTrDat3,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3",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.001133/0.001133, allocations: 175.4 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.773/1.773, 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.0008889/0.0008885, allocations: 82.66 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.1682/0.1682, allocations: 37.98 MB / 353.5 MB, free: 1.754 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.344e-05/3.347e-05, allocations: 0 / 417.8 MB, free: 29.02 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1262/0.1263, allocations: 56.33 MB / 474.2 MB, free: 4.691 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4677/0.5941, allocations: 92.44 MB / 0.5533 GB, free: 9.516 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002502/0.5944, allocations: 78.69 kB / 0.5534 GB, free: 9.477 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03983/0.6342, allocations: 12.28 MB / 0.5654 GB, free: 15.28 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.156e-06/0.6343, allocations: 3.938 kB / 0.5654 GB, free: 15.28 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.556e-05/0.6343, allocations: 4 kB / 0.5654 GB, free: 15.27 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001144/0.6355, allocations: 0.6142 MB / 0.566 GB, free: 14.63 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.625e-05/0.6355, allocations: 12.03 kB / 0.566 GB, free: 14.62 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.741e-05/0.6356, allocations: 48.3 kB / 0.566 GB, free: 14.57 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.614e-05/0.6357, allocations: 19.67 kB / 0.5661 GB, free: 14.55 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000244/0.6359, allocations: 194.8 kB / 0.5662 GB, free: 14.32 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.536e-06/0.6359, allocations: 4 kB / 0.5662 GB, free: 14.31 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.594e-05/0.636, allocations: 0 / 0.5662 GB, free: 14.31 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002162/0.6362, allocations: 134.2 kB / 0.5664 GB, free: 14.2 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.775e-06/0.6362, allocations: 0 / 0.5664 GB, free: 14.2 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.45e-05/0.6362, allocations: 4 kB / 0.5664 GB, free: 14.19 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-06/0.6362, allocations: 0 / 0.5664 GB, free: 14.19 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001128/0.6363, allocations: 97.53 kB / 0.5665 GB, free: 14.12 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002162/0.6366, allocations: 212.2 kB / 0.5667 GB, free: 13.88 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001631/0.6367, allocations: 155.9 kB / 0.5668 GB, free: 13.77 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001525/0.6369, allocations: 138.1 kB / 0.567 GB, free: 13.69 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.108e-05/0.6369, allocations: 0 / 0.567 GB, free: 13.69 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.413e-05/0.637, allocations: 42.42 kB / 0.567 GB, free: 13.64 MB / 378.7 MB Notification: Performance of pre-optimization done (n=40): time 8.82e-07/0.637, allocations: 0 / 0.567 GB, free: 13.64 MB / 378.7 MB Notification: Performance of matching and sorting (n=40): time 0.0004523/0.6374, allocations: 336.7 kB / 0.5673 GB, free: 13.35 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.309e-05/0.6375, allocations: 104.5 kB / 0.5674 GB, free: 13.23 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001406/0.6377, allocations: 149.5 kB / 0.5676 GB, free: 13.09 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.965e-05/0.6377, allocations: 33.45 kB / 0.5676 GB, free: 13.05 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.03e-05/0.6378, allocations: 102.7 kB / 0.5677 GB, free: 12.96 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001064/0.6379, allocations: 128 kB / 0.5678 GB, free: 12.86 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.39e-06/0.6379, allocations: 0 / 0.5678 GB, free: 12.86 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001527/0.6381, allocations: 338.1 kB / 0.5681 GB, free: 12.52 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001009/0.6382, allocations: 98.81 kB / 0.5682 GB, free: 12.45 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.503e-05/0.6383, allocations: 94.33 kB / 0.5683 GB, free: 12.38 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001939/0.6385, allocations: 186.8 kB / 0.5685 GB, free: 12.21 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.6385, allocations: 3.938 kB / 0.5685 GB, free: 12.21 MB / 378.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003938/0.6389, allocations: 325.3 kB / 0.5688 GB, free: 11.93 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.873e-05/0.639, allocations: 87.88 kB / 0.5689 GB, free: 11.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.639, allocations: 0 / 0.5689 GB, free: 11.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.537e-05/0.639, allocations: 0 / 0.5689 GB, free: 11.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.162e-06/0.639, allocations: 0 / 0.5689 GB, free: 11.84 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.725e-06/0.639, allocations: 0 / 0.5689 GB, free: 11.84 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.849e-05/0.6391, allocations: 27.75 kB / 0.5689 GB, free: 11.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.337e-05/0.6392, allocations: 15.98 kB / 0.5689 GB, free: 11.8 MB / 378.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 () * 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.0001797/0.6393, allocations: 194.4 kB / 0.5691 GB, free: 11.61 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.555e-05/0.6394, allocations: 19.81 kB / 0.5691 GB, free: 11.59 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.981e-05/0.6394, allocations: 14.77 kB / 0.5692 GB, free: 11.57 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.6394, allocations: 3.984 kB / 0.5692 GB, free: 11.57 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.6394, allocations: 4 kB / 0.5692 GB, free: 11.57 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.6395, allocations: 0 / 0.5692 GB, free: 11.57 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002232/0.6397, allocations: 239.5 kB / 0.5694 GB, free: 11.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.6397, allocations: 0 / 0.5694 GB, free: 11.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.61e-07/0.6397, allocations: 4 kB / 0.5694 GB, free: 11.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.283e-06/0.6397, allocations: 0 / 0.5694 GB, free: 11.3 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.45e-05/0.6397, allocations: 11 kB / 0.5694 GB, free: 11.29 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.6397, allocations: 0 / 0.5694 GB, free: 11.29 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.025e-06/0.6398, allocations: 3.938 kB / 0.5694 GB, free: 11.29 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001021/0.6408, allocations: 0.9067 MB / 0.5703 GB, free: 10.48 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.637e-05/0.6409, allocations: 100.7 kB / 0.5704 GB, free: 10.37 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.758e-05/0.6409, allocations: 11.98 kB / 0.5704 GB, free: 10.36 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.776e-05/0.641, allocations: 8.031 kB / 0.5704 GB, free: 10.35 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.199e-05/0.641, allocations: 7.062 kB / 0.5704 GB, free: 10.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.909e-05/0.641, allocations: 8 kB / 0.5704 GB, free: 10.34 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001047/0.6411, allocations: 130.8 kB / 0.5705 GB, free: 10.22 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6411, allocations: 0 / 0.5705 GB, free: 10.22 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001289/0.6424, allocations: 386.8 kB / 0.5709 GB, free: 9.848 MB / 378.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 () * 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.002346/0.6448, allocations: 1.745 MB / 0.5726 GB, free: 8.203 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001342/0.6462, allocations: 1.581 MB / 0.5742 GB, free: 7.367 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.6462, allocations: 3.938 kB / 0.5742 GB, free: 7.363 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009506/0.6471, allocations: 1.369 MB / 0.5755 GB, free: 6.699 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001806/0.6473, allocations: 12.14 kB / 0.5755 GB, free: 6.688 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001141/0.6485, allocations: 0.7338 MB / 0.5762 GB, free: 5.984 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003431/0.6488, allocations: 0.7598 MB / 0.577 GB, free: 5.199 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 1.323e-05/0.6488, allocations: 0 / 0.577 GB, free: 5.199 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.182e-05/0.6489, allocations: 45.36 kB / 0.577 GB, free: 5.188 MB / 378.7 MB Notification: Performance of SimCode: time 2.264e-06/0.6489, allocations: 0 / 0.577 GB, free: 5.188 MB / 378.7 MB [CodegenCFunctions.tpl:5352:15-5352:15:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].