Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001146/0.001146, allocations: 110.3 kB / 16.92 MB, free: 5.785 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001148/0.001148, allocations: 191.3 kB / 17.85 MB, free: 5.164 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.415/1.415, allocations: 222.9 MB / 241.6 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1923/0.1923, allocations: 38.02 MB / 329.7 MB, free: 8.812 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002479/0.002479, allocations: 65.55 kB / 398.9 MB, free: 33.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1649/0.1674, allocations: 58.06 MB / 457 MB, free: 7.969 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0): time 0.007021/0.1745, allocations: 2.095 MB / 459.1 MB, free: 5.852 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005255/0.1798, allocations: 2.042 MB / 461.1 MB, free: 3.801 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.972e-05/0.1799, allocations: 3.938 kB / 461.1 MB, free: 3.797 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002145/0.1801, allocations: 11.92 kB / 461.1 MB, free: 3.785 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001429/0.1803, allocations: 27.84 kB / 461.1 MB, free: 3.758 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003766/0.1841, allocations: 0.8422 MB / 462 MB, free: 2.914 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002165/0.1844, allocations: 83.67 kB / 462.1 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.234e-05/0.1844, allocations: 4.188 kB / 462.1 MB, free: 2.828 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001429/0.1846, allocations: 35.84 kB / 462.1 MB, free: 2.793 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001225/0.1847, allocations: 35.83 kB / 462.1 MB, free: 2.758 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.048e-05/0.1848, allocations: 4 kB / 462.1 MB, free: 2.754 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003464/0.1882, allocations: 1.251 MB / 463.4 MB, free: 1.5 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.671e-05/0.1883, allocations: 19.92 kB / 463.4 MB, free: 1.48 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.966e-05/0.1884, allocations: 23.86 kB / 463.4 MB, free: 1.457 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002836/0.1913, allocations: 1.317 MB / 464.8 MB, free: 140 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.1913, allocations: 0 / 464.8 MB, free: 140 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.1913, allocations: 0 / 464.8 MB, free: 140 kB / 334.1 MB Notification: Performance of Transformations before backend: time 7.334e-06/0.1913, allocations: 0 / 464.8 MB, free: 140 kB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.001045/0.1924, allocations: 0.4931 MB / 465.2 MB, free: 15.59 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.419e-05/0.1925, allocations: 11.89 kB / 465.3 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.747e-05/0.1925, allocations: 42.69 kB / 465.3 MB, free: 15.53 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.459e-05/0.1926, allocations: 12.84 kB / 465.3 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002349/0.1929, allocations: 182.8 kB / 465.5 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.188e-05/0.1929, allocations: 4 kB / 465.5 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.581e-05/0.1929, allocations: 0 / 465.5 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001918/0.1931, allocations: 65.59 kB / 465.6 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.514e-06/0.1931, allocations: 0 / 465.6 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.159e-05/0.1932, allocations: 0 / 465.6 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.509e-06/0.1932, allocations: 0 / 465.6 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.502e-05/0.1933, allocations: 23.98 kB / 465.6 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000224/0.1935, allocations: 169.5 kB / 465.7 MB, free: 14.99 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001224/0.1937, allocations: 46.56 kB / 465.8 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.636e-05/0.1938, allocations: 32.88 kB / 465.8 MB, free: 14.9 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.157e-06/0.1938, allocations: 0 / 465.8 MB, free: 14.9 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.51e-05/0.1938, allocations: 34.5 kB / 465.9 MB, free: 14.86 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.993e-06/0.1938, allocations: 0 / 465.9 MB, free: 14.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.000428/0.1943, allocations: 155.5 kB / 466 MB, free: 14.69 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.301e-05/0.1944, allocations: 89.14 kB / 466.1 MB, free: 14.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001764/0.1946, allocations: 121.8 kB / 466.2 MB, free: 14.46 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.352e-05/0.1946, allocations: 25.7 kB / 466.2 MB, free: 14.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.835e-05/0.1947, allocations: 88.14 kB / 466.3 MB, free: 14.34 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.173e-05/0.1948, allocations: 31.55 kB / 466.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.64e-05/0.1949, allocations: 13.72 kB / 466.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001728/0.195, allocations: 330.7 kB / 466.7 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.712e-05/0.1951, allocations: 23.98 kB / 466.7 MB, free: 13.93 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.576e-05/0.1952, allocations: 24 kB / 466.7 MB, free: 13.91 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002264/0.1955, allocations: 128.2 kB / 466.9 MB, free: 13.77 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.1955, allocations: 0 / 466.9 MB, free: 13.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002838/0.1958, allocations: 127.3 kB / 467 MB, free: 13.63 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.593e-05/0.1959, allocations: 41.69 kB / 467 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.1959, allocations: 4 kB / 467 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.717e-05/0.1959, allocations: 0 / 467 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.383e-06/0.1959, allocations: 0 / 467 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.066e-05/0.196, allocations: 0 / 467 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.019e-05/0.196, allocations: 3.938 kB / 467 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.793e-05/0.1961, allocations: 8.062 kB / 467 MB, free: 13.57 MB / 350.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001847/0.1963, allocations: 159.5 kB / 467.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.686e-05/0.1963, allocations: 11.91 kB / 467.2 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.143e-05/0.1964, allocations: 4.375 kB / 467.2 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.1964, allocations: 4 kB / 467.2 MB, free: 13.37 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.017e-05/0.1964, allocations: 0 / 467.2 MB, free: 13.37 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.1964, allocations: 3.938 kB / 467.2 MB, free: 13.37 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002125/0.1966, allocations: 169.6 kB / 467.4 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.1967, allocations: 4 kB / 467.4 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.383e-06/0.1967, allocations: 4 kB / 467.4 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.965e-06/0.1967, allocations: 4 kB / 467.4 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.638e-05/0.1967, allocations: 0 / 467.4 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.1967, allocations: 0 / 467.4 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.1967, allocations: 0 / 467.4 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004727/0.1972, allocations: 226.9 kB / 467.6 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.48e-05/0.1974, allocations: 88.94 kB / 467.7 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.251e-05/0.1974, allocations: 4 kB / 467.7 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.35e-05/0.1975, allocations: 4.031 kB / 467.7 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.024e-05/0.1975, allocations: 4 kB / 467.7 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.501e-05/0.1975, allocations: 0 / 467.7 MB, free: 12.78 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001007/0.1976, allocations: 99.27 kB / 467.8 MB, free: 12.68 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.1977, allocations: 0 / 467.8 MB, free: 12.68 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001643/0.1993, allocations: 315.9 kB / 468.1 MB, free: 12.37 MB / 350.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002589/0.2019, allocations: 1.019 MB / 469.1 MB, free: 11.32 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004762/0.2024, allocations: 203.2 kB / 469.3 MB, free: 11.11 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 9.908e-06/0.2025, allocations: 0 / 469.3 MB, free: 11.11 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002615/0.2027, allocations: 151.4 kB / 469.5 MB, free: 10.95 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000413/0.2032, allocations: 7.938 kB / 469.5 MB, free: 10.94 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003033/0.2062, allocations: 1.683 MB / 471.2 MB, free: 9.176 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004722/0.2067, allocations: 0.6924 MB / 471.9 MB, free: 8.457 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.787e-05/0.2067, allocations: 0 / 471.9 MB, free: 8.457 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.87e-05/0.2068, allocations: 15.44 kB / 471.9 MB, free: 8.441 MB / 350.1 MB Notification: Performance of SimCode: time 8.11e-07/0.2068, allocations: 4.031 kB / 471.9 MB, free: 8.438 MB / 350.1 MB [CodegenCFunctions.tpl:5633:13-5633:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].