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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 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.001434/0.001434, allocations: 110.3 kB / 17.75 MB, free: 5.355 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.001665/0.001665, allocations: 185.4 kB / 18.68 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.418/1.418, allocations: 205.1 MB / 224.6 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1736/0.1736, allocations: 37.99 MB / 309.9 MB, free: 5.961 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001544/0.001544, allocations: 72.45 kB / 432.6 MB, free: 15.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09656/0.09811, allocations: 55.24 MB / 487.8 MB, free: 8.332 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0): time 0.003615/0.1018, allocations: 2.099 MB / 489.9 MB, free: 6.215 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003533/0.1053, allocations: 2.085 MB / 492 MB, free: 4.117 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.734e-05/0.1054, allocations: 4 kB / 492 MB, free: 4.113 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001905/0.1057, allocations: 15.84 kB / 492 MB, free: 4.098 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001042/0.1058, allocations: 23.84 kB / 492 MB, free: 4.074 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1895:3-1973:18:writable] Warning: Pure function 'Modelica.Math.Matrices.eigenValues' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgeev_eigenValues'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:2829:3-2870:10:writable] Warning: Pure function 'Modelica.Math.Matrices.inv' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgetrf'. Notification: Performance of NFTyping.typeClassSections: time 0.002443/0.1082, allocations: 0.8225 MB / 492.8 MB, free: 3.25 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001331/0.1084, allocations: 83.62 kB / 492.9 MB, free: 3.168 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.242e-05/0.1084, allocations: 12.17 kB / 492.9 MB, free: 3.156 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.377e-05/0.1085, allocations: 31.91 kB / 493 MB, free: 3.125 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.026e-05/0.1086, allocations: 47.77 kB / 493 MB, free: 3.078 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.252e-05/0.1086, allocations: 3.938 kB / 493 MB, free: 3.074 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002341/0.111, allocations: 1.404 MB / 494.4 MB, free: 1.668 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 3.894e-05/0.111, allocations: 11.98 kB / 494.4 MB, free: 1.656 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 3.818e-05/0.1111, allocations: 19.81 kB / 494.5 MB, free: 1.637 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001799/0.1129, allocations: 1.317 MB / 495.8 MB, free: 324 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.1129, allocations: 0 / 495.8 MB, free: 324 kB / 366.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.1129, allocations: 4 kB / 495.8 MB, free: 320 kB / 366.1 MB Notification: Performance of Transformations before backend: time 1.043e-05/0.1129, allocations: 0 / 495.8 MB, free: 320 kB / 366.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.001409/0.1143, allocations: 0.5008 MB / 496.3 MB, free: 15.76 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.418e-05/0.1144, allocations: 11.89 kB / 496.3 MB, free: 15.75 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.682e-05/0.1145, allocations: 8.844 kB / 496.3 MB, free: 15.74 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002465/0.1148, allocations: 183.4 kB / 496.5 MB, free: 15.52 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.37e-05/0.1148, allocations: 0 / 496.5 MB, free: 15.52 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.41e-05/0.1148, allocations: 3.984 kB / 496.5 MB, free: 15.52 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000187/0.115, allocations: 61.62 kB / 496.5 MB, free: 15.45 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.145e-05/0.115, allocations: 3.938 kB / 496.5 MB, free: 15.45 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.346e-05/0.115, allocations: 0 / 496.5 MB, free: 15.45 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/0.115, allocations: 3.984 kB / 496.6 MB, free: 15.44 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.397e-05/0.1151, allocations: 20 kB / 496.6 MB, free: 15.42 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001952/0.1153, allocations: 169.6 kB / 496.7 MB, free: 15.21 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.534e-05/0.1154, allocations: 46.56 kB / 496.8 MB, free: 15.15 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.266e-05/0.1155, allocations: 32.88 kB / 496.8 MB, free: 15.12 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.709e-05/0.1155, allocations: 8 kB / 496.8 MB, free: 15.11 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.958e-05/0.1155, allocations: 34.5 kB / 496.9 MB, free: 15.07 MB / 382.1 MB Notification: Performance of pre-optimization done (n=8): time 1.392e-06/0.1155, allocations: 0 / 496.9 MB, free: 15.07 MB / 382.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003073/0.1158, allocations: 147.3 kB / 497 MB, free: 14.91 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.523e-05/0.1159, allocations: 89.09 kB / 497.1 MB, free: 14.8 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001089/0.116, allocations: 117.8 kB / 497.2 MB, free: 14.68 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.523e-05/0.116, allocations: 25.7 kB / 497.2 MB, free: 14.65 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.274e-05/0.1161, allocations: 92.12 kB / 497.3 MB, free: 14.55 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.351e-05/0.1161, allocations: 31.59 kB / 497.3 MB, free: 14.52 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.022e-05/0.1162, allocations: 21.7 kB / 497.4 MB, free: 14.5 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001216/0.1163, allocations: 318.8 kB / 497.7 MB, free: 14.18 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.891e-05/0.1164, allocations: 23.98 kB / 497.7 MB, free: 14.15 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.454e-05/0.1164, allocations: 23.92 kB / 497.7 MB, free: 14.13 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001274/0.1165, allocations: 132.2 kB / 497.9 MB, free: 13.98 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.1165, allocations: 4 kB / 497.9 MB, free: 13.98 MB / 382.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.00015/0.1167, allocations: 119.4 kB / 498 MB, free: 13.85 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.455e-05/0.1167, allocations: 45.75 kB / 498 MB, free: 13.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.1168, allocations: 4 kB / 498 MB, free: 13.8 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.152e-05/0.1168, allocations: 0 / 498 MB, free: 13.8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.41e-07/0.1168, allocations: 0 / 498 MB, free: 13.8 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.684e-06/0.1168, allocations: 3.938 kB / 498 MB, free: 13.79 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.067e-05/0.1168, allocations: 4 kB / 498 MB, free: 13.79 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.882e-05/0.1169, allocations: 7.984 kB / 498 MB, free: 13.78 MB / 382.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.0001095/0.117, allocations: 151.5 kB / 498.2 MB, free: 13.62 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.962e-05/0.117, allocations: 11.91 kB / 498.2 MB, free: 13.61 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.551e-05/0.117, allocations: 12.38 kB / 498.2 MB, free: 13.59 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.117, allocations: 0 / 498.2 MB, free: 13.59 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.117, allocations: 7.922 kB / 498.2 MB, free: 13.59 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.127e-05/0.1171, allocations: 88.95 kB / 498.3 MB, free: 13.48 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.861e-05/0.1171, allocations: 7.875 kB / 498.3 MB, free: 13.47 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.444e-05/0.1172, allocations: 4 kB / 498.3 MB, free: 13.47 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.558e-05/0.1172, allocations: 0 / 498.3 MB, free: 13.47 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002879/0.1175, allocations: 342.3 kB / 498.7 MB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002926/0.1178, allocations: 368.3 kB / 499 MB, free: 12.73 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 8.964e-05/0.1179, allocations: 75.97 kB / 499.1 MB, free: 12.65 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.701e-05/0.1179, allocations: 99.2 kB / 499.2 MB, free: 12.55 MB / 382.1 MB Notification: Performance of Backend: time 3.81e-07/0.118, allocations: 0 / 499.2 MB, free: 12.55 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001636/0.1196, allocations: 0.4906 MB / 499.7 MB, free: 12.05 MB / 382.1 MB Notification: Performance of SimCode: time 0.0006329/0.1202, allocations: 0.6921 MB / 0.4886 GB, free: 11.29 MB / 382.1 MB [CodegenCFunctions.tpl:5632:13-5632:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2]. Error: Internal error SimCode DAEmode: The model PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0 could not be translated