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: translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001744/0.001744, allocations: 114.7 kB / 16.51 MB, free: 6.66 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.001815/0.001815, allocations: 198.4 kB / 17.43 MB, free: 6.035 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.364/1.364, allocations: 222.9 MB / 241.1 MB, free: 15.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.173/0.173, allocations: 38.02 MB / 329.3 MB, free: 9.059 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001279/0.001279, allocations: 65.44 kB / 398.1 MB, free: 34.53 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1092, allocations: 58.06 MB / 456.1 MB, free: 8.555 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0): time 0.003361/0.1126, allocations: 2.128 MB / 458.3 MB, free: 6.402 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003271/0.1159, allocations: 2.18 MB / 460.5 MB, free: 4.211 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.014e-05/0.116, allocations: 0 / 460.5 MB, free: 4.211 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001681/0.1162, allocations: 15.92 kB / 460.5 MB, free: 4.195 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.49e-05/0.1163, allocations: 27.89 kB / 460.5 MB, free: 4.168 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001761/0.118, allocations: 0.6886 MB / 461.2 MB, free: 3.48 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001453/0.1182, allocations: 123.6 kB / 461.3 MB, free: 3.359 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.781e-05/0.1182, allocations: 4.188 kB / 461.3 MB, free: 3.355 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.342e-05/0.1183, allocations: 35.84 kB / 461.3 MB, free: 3.32 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.77e-05/0.1184, allocations: 43.83 kB / 461.4 MB, free: 3.277 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.135e-05/0.1185, allocations: 0 / 461.4 MB, free: 3.277 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001659/0.1201, allocations: 1.236 MB / 462.6 MB, free: 2.039 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.095e-05/0.1202, allocations: 23.86 kB / 462.6 MB, free: 2.016 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.821e-05/0.1202, allocations: 15.88 kB / 462.7 MB, free: 2 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001378/0.1216, allocations: 1.267 MB / 463.9 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.1216, allocations: 0 / 463.9 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.031e-06/0.1216, allocations: 0 / 463.9 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.156e-06/0.1216, allocations: 0 / 463.9 MB, free: 0.7305 MB / 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.0006141/0.1223, allocations: 0.4931 MB / 464.4 MB, free: 188 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.863e-05/0.1223, allocations: 12.03 kB / 464.4 MB, free: 176 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.225e-05/0.1224, allocations: 20.83 kB / 464.5 MB, free: 156 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001758/0.1226, allocations: 187.5 kB / 464.6 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.435e-06/0.1226, allocations: 0 / 464.6 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.146e-05/0.1226, allocations: 4 kB / 464.6 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001579/0.1228, allocations: 57.62 kB / 464.7 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.757e-06/0.1228, allocations: 0 / 464.7 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.079e-05/0.1228, allocations: 0 / 464.7 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.1228, allocations: 0 / 464.7 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.174e-05/0.1229, allocations: 19.98 kB / 464.7 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001455/0.123, allocations: 173.6 kB / 464.9 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.244e-05/0.1231, allocations: 42.56 kB / 464.9 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.702e-05/0.1231, allocations: 36.88 kB / 465 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.873e-06/0.1232, allocations: 0 / 465 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.528e-05/0.1232, allocations: 34.5 kB / 465 MB, free: 15.49 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 9.92e-07/0.1232, allocations: 0 / 465 MB, free: 15.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002729/0.1235, allocations: 155.2 kB / 465.2 MB, free: 15.33 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.389e-05/0.1235, allocations: 85.14 kB / 465.2 MB, free: 15.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.974e-05/0.1236, allocations: 125.8 kB / 465.4 MB, free: 15.09 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.405e-05/0.1237, allocations: 25.7 kB / 465.4 MB, free: 15.06 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.479e-05/0.1237, allocations: 88.14 kB / 465.5 MB, free: 14.97 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.414e-05/0.1238, allocations: 27.55 kB / 465.5 MB, free: 14.95 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.528e-05/0.1238, allocations: 17.72 kB / 465.5 MB, free: 14.92 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001453/0.124, allocations: 326.8 kB / 465.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.034e-05/0.124, allocations: 23.98 kB / 465.9 MB, free: 14.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.264e-05/0.1241, allocations: 28.08 kB / 465.9 MB, free: 14.54 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001189/0.1242, allocations: 124.2 kB / 466 MB, free: 14.41 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.1242, allocations: 0 / 466 MB, free: 14.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000145/0.1243, allocations: 127.3 kB / 466.1 MB, free: 14.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.524e-05/0.1244, allocations: 47.88 kB / 466.2 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.519e-06/0.1244, allocations: 0 / 466.2 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.31e-05/0.1244, allocations: 4 kB / 466.2 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.062e-06/0.1244, allocations: 0 / 466.2 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.45e-06/0.1244, allocations: 0 / 466.2 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.74e-05/0.1245, allocations: 0 / 466.2 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.109e-05/0.1245, allocations: 12 kB / 466.2 MB, free: 14.2 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.0001096/0.1246, allocations: 163.4 kB / 466.3 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.775e-05/0.1247, allocations: 7.906 kB / 466.4 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.51e-05/0.1247, allocations: 12.31 kB / 466.4 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.1247, allocations: 0 / 466.4 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.483e-06/0.1247, allocations: 11.94 kB / 466.4 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.763e-06/0.1247, allocations: 0 / 466.4 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001137/0.1248, allocations: 169.6 kB / 466.5 MB, free: 13.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.1248, allocations: 0 / 466.5 MB, free: 13.78 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.31e-07/0.1248, allocations: 4 kB / 466.6 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.262e-06/0.1248, allocations: 0 / 466.6 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.261e-05/0.1249, allocations: 4 kB / 466.6 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.42e-07/0.1249, allocations: 0 / 466.6 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.1249, allocations: 0 / 466.6 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002466/0.1251, allocations: 222.6 kB / 466.8 MB, free: 13.53 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.246e-05/0.1252, allocations: 89 kB / 466.9 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.829e-05/0.1252, allocations: 0 / 466.9 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.357e-05/0.1252, allocations: 4 kB / 466.9 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.623e-05/0.1253, allocations: 4.031 kB / 466.9 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.558e-06/0.1253, allocations: 4 kB / 466.9 MB, free: 13.41 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.119e-05/0.1253, allocations: 102.4 kB / 467 MB, free: 13.31 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1253, allocations: 0 / 467 MB, free: 13.31 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007396/0.1261, allocations: 319.9 kB / 467.3 MB, free: 13 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.0008764/0.127, allocations: 381.7 kB / 467.7 MB, free: 12.62 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002395/0.1272, allocations: 191.3 kB / 467.8 MB, free: 12.42 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.1272, allocations: 4 kB / 467.8 MB, free: 12.42 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001225/0.1273, allocations: 151.3 kB / 468 MB, free: 12.26 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002279/0.1276, allocations: 8 kB / 468 MB, free: 12.25 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003971/0.128, allocations: 254.1 kB / 468.3 MB, free: 11.98 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002301/0.1282, allocations: 0.6965 MB / 468.9 MB, free: 11.26 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.093e-05/0.1282, allocations: 0 / 468.9 MB, free: 11.26 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.416e-05/0.1283, allocations: 11.44 kB / 469 MB, free: 11.25 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1283, allocations: 0 / 469 MB, free: 11.25 MB / 350.1 MB [CodegenCFunctions.tpl:5622:13-5622:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].