Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc.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.TransDatFromEqCirc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc") translateModel(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001612/0.001612, allocations: 111.6 kB / 16.63 MB, free: 6.953 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.002033/0.002033, allocations: 193.9 kB / 17.55 MB, free: 6.043 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.38/1.38, allocations: 222.9 MB / 241.2 MB, free: 13.73 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1763/0.1763, allocations: 38.02 MB / 329.4 MB, free: 8.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001329/0.001329, allocations: 61.95 kB / 398.3 MB, free: 34.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1/0.1014, allocations: 58.06 MB / 456.3 MB, free: 8.387 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc): time 0.003352/0.1048, allocations: 2.189 MB / 458.5 MB, free: 6.176 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001409/0.1062, allocations: 1.064 MB / 459.6 MB, free: 5.109 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.064e-05/0.1062, allocations: 0 / 459.6 MB, free: 5.109 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001256/0.1064, allocations: 15.92 kB / 459.6 MB, free: 5.094 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000114/0.1065, allocations: 55.8 kB / 459.7 MB, free: 5.039 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007435/0.1073, allocations: 270.9 kB / 459.9 MB, free: 4.777 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001506/0.1074, allocations: 123.5 kB / 460 MB, free: 4.656 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.636e-05/0.1075, allocations: 0 / 460 MB, free: 4.656 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.158e-05/0.1076, allocations: 51.83 kB / 460.1 MB, free: 4.605 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001148/0.1077, allocations: 79.7 kB / 460.2 MB, free: 4.527 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.355e-05/0.1077, allocations: 4 kB / 460.2 MB, free: 4.523 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005349/0.1082, allocations: 407.2 kB / 460.6 MB, free: 4.125 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.174e-05/0.1083, allocations: 35.89 kB / 460.6 MB, free: 4.09 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.86e-05/0.1084, allocations: 47.67 kB / 460.7 MB, free: 4.043 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005193/0.1089, allocations: 0.5029 MB / 461.2 MB, free: 3.539 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.1089, allocations: 0 / 461.2 MB, free: 3.539 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1089, allocations: 0 / 461.2 MB, free: 3.539 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.102e-06/0.1089, allocations: 0 / 461.2 MB, free: 3.539 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0005199/0.1094, allocations: 460.8 kB / 461.6 MB, free: 3.035 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.418e-05/0.1095, allocations: 15.89 kB / 461.6 MB, free: 3.02 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.37e-05/0.1095, allocations: 12.75 kB / 461.6 MB, free: 3.008 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001804/0.1097, allocations: 200.1 kB / 461.8 MB, free: 2.773 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.004e-05/0.1098, allocations: 4.375 kB / 461.8 MB, free: 2.77 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.717e-05/0.1098, allocations: 4.125 kB / 461.8 MB, free: 2.766 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001731/0.11, allocations: 93.66 kB / 461.9 MB, free: 2.668 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/0.11, allocations: 4 kB / 461.9 MB, free: 2.664 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.247e-05/0.11, allocations: 0 / 461.9 MB, free: 2.664 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.354e-06/0.11, allocations: 0 / 461.9 MB, free: 2.664 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.28e-05/0.1101, allocations: 63.89 kB / 462 MB, free: 2.602 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001693/0.1103, allocations: 181.5 kB / 462.2 MB, free: 2.375 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001497/0.1104, allocations: 130.5 kB / 462.3 MB, free: 2.238 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001244/0.1106, allocations: 131.4 kB / 462.4 MB, free: 2.109 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.067e-06/0.1106, allocations: 3.984 kB / 462.4 MB, free: 2.105 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.384e-05/0.1106, allocations: 30.56 kB / 462.5 MB, free: 2.066 MB / 334.1 MB Notification: Performance of pre-optimization done (n=20): time 1.202e-06/0.1106, allocations: 0 / 462.5 MB, free: 2.066 MB / 334.1 MB Notification: Performance of matching and sorting (n=20): time 0.000452/0.1111, allocations: 291.4 kB / 462.8 MB, free: 1.77 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.207e-05/0.1111, allocations: 93.09 kB / 462.8 MB, free: 1.66 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001034/0.1112, allocations: 136.4 kB / 463 MB, free: 1.52 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.662e-05/0.1113, allocations: 29.7 kB / 463 MB, free: 1.484 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.506e-05/0.1113, allocations: 92.45 kB / 463.1 MB, free: 1.391 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.685e-05/0.1114, allocations: 63.02 kB / 463.2 MB, free: 1.328 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.652e-05/0.1115, allocations: 29.7 kB / 463.2 MB, free: 1.293 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001171/0.1116, allocations: 322.8 kB / 463.5 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.493e-05/0.1117, allocations: 55.97 kB / 463.6 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.617e-05/0.1117, allocations: 55.97 kB / 463.6 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002218/0.112, allocations: 231 kB / 463.8 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.112, allocations: 4 kB / 463.8 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000281/0.1123, allocations: 234.9 kB / 464.1 MB, free: 384 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.822e-05/0.1123, allocations: 57.67 kB / 464.1 MB, free: 320 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.05e-06/0.1123, allocations: 0 / 464.1 MB, free: 320 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.142e-05/0.1124, allocations: 0 / 464.1 MB, free: 320 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.363e-06/0.1124, allocations: 0 / 464.1 MB, free: 320 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.641e-06/0.1124, allocations: 0 / 464.1 MB, free: 320 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.66e-05/0.1124, allocations: 7.938 kB / 464.1 MB, free: 312 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.605e-05/0.1125, allocations: 8 kB / 464.1 MB, free: 304 kB / 334.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.0001474/0.1126, allocations: 187.5 kB / 464.3 MB, free: 100 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.697e-05/0.1127, allocations: 19.8 kB / 464.3 MB, free: 80 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.402e-05/0.1127, allocations: 13.12 kB / 464.4 MB, free: 68 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.163e-06/0.1127, allocations: 0 / 464.4 MB, free: 68 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.1127, allocations: 0 / 464.4 MB, free: 68 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.814e-06/0.1127, allocations: 0 / 464.4 MB, free: 68 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00016/0.1129, allocations: 201.4 kB / 464.6 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.1129, allocations: 0 / 464.6 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.064e-06/0.1129, allocations: 4 kB / 464.6 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.312e-06/0.1129, allocations: 0 / 464.6 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.359e-05/0.1129, allocations: 8 kB / 464.6 MB, free: 15.81 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.1129, allocations: 0 / 464.6 MB, free: 15.81 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.1129, allocations: 0 / 464.6 MB, free: 15.81 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004378/0.1133, allocations: 389.3 kB / 464.9 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.269e-05/0.1134, allocations: 92.86 kB / 465 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.283e-05/0.1134, allocations: 4 kB / 465 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.867e-05/0.1135, allocations: 8 kB / 465 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.18e-05/0.1135, allocations: 4 kB / 465 MB, free: 15.28 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.246e-05/0.1135, allocations: 8.031 kB / 465.1 MB, free: 15.27 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.025e-05/0.1136, allocations: 107.2 kB / 465.2 MB, free: 15.17 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1136, allocations: 0 / 465.2 MB, free: 15.17 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003831/0.114, allocations: 124 kB / 465.3 MB, free: 15.05 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.0003819/0.1144, allocations: 191.1 kB / 465.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005279/0.1149, allocations: 0.5656 MB / 466 MB, free: 14.27 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1149, allocations: 4.062 kB / 466 MB, free: 14.27 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000351/0.1153, allocations: 475.2 kB / 466.5 MB, free: 13.79 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000221/0.1155, allocations: 15.94 kB / 466.5 MB, free: 13.78 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006147/0.1161, allocations: 420.8 kB / 466.9 MB, free: 13.34 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002792/0.1164, allocations: 0.7235 MB / 467.7 MB, free: 12.59 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.785e-05/0.1164, allocations: 0 / 467.7 MB, free: 12.59 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.404e-05/0.1165, allocations: 19.31 kB / 467.7 MB, free: 12.57 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1165, allocations: 0 / 467.7 MB, free: 12.57 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].