Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat.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.EqCircFromTransDat,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat") translateModel(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00152/0.00152, allocations: 106.1 kB / 17.74 MB, free: 5.348 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.001999/0.001999, allocations: 186.4 kB / 18.67 MB, free: 4.43 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.371/1.371, 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.1715/0.1715, allocations: 37.99 MB / 309.9 MB, free: 5.953 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.001432/0.001432, allocations: 67.89 kB / 432.6 MB, free: 15.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09953/0.101, allocations: 55.24 MB / 487.8 MB, free: 8.336 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat): time 0.004126/0.1051, allocations: 2.145 MB / 489.9 MB, free: 6.168 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00327/0.1084, allocations: 2.097 MB / 492 MB, free: 4.059 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.545e-05/0.1085, allocations: 0 / 492 MB, free: 4.059 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001638/0.1087, allocations: 7.922 kB / 492.1 MB, free: 4.051 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001337/0.1089, allocations: 47.73 kB / 492.1 MB, free: 4.004 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.002432/0.1113, allocations: 0.8147 MB / 492.9 MB, free: 3.188 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002227/0.1115, allocations: 95.61 kB / 493 MB, free: 3.094 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.195e-05/0.1116, allocations: 11.98 kB / 493 MB, free: 3.082 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.781e-05/0.1117, allocations: 43.84 kB / 493.1 MB, free: 3.039 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.074e-05/0.1118, allocations: 55.8 kB / 493.1 MB, free: 2.984 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.745e-05/0.1118, allocations: 7.938 kB / 493.1 MB, free: 2.977 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002085/0.1139, allocations: 1.372 MB / 494.5 MB, free: 1.602 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.443e-05/0.114, allocations: 35.84 kB / 494.5 MB, free: 1.566 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 6.311e-05/0.1141, allocations: 39.73 kB / 494.6 MB, free: 1.527 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001427/0.1155, allocations: 1.321 MB / 495.9 MB, free: 208 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.428e-05/0.1155, allocations: 4 kB / 495.9 MB, free: 204 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1155, allocations: 3.938 kB / 495.9 MB, free: 200 kB / 366.1 MB Notification: Performance of Transformations before backend: time 6.402e-06/0.1155, allocations: 4 kB / 495.9 MB, free: 196 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0006859/0.1162, allocations: 0.5395 MB / 496.4 MB, free: 15.6 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.1163, allocations: 11.89 kB / 496.5 MB, free: 15.59 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.794e-05/0.1163, allocations: 16.75 kB / 496.5 MB, free: 15.57 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001786/0.1165, allocations: 192.1 kB / 496.7 MB, free: 15.34 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.022e-05/0.1165, allocations: 4.125 kB / 496.7 MB, free: 15.34 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.053e-05/0.1165, allocations: 0 / 496.7 MB, free: 15.34 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001531/0.1167, allocations: 85.64 kB / 496.7 MB, free: 15.25 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.351e-06/0.1167, allocations: 0 / 496.7 MB, free: 15.25 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.042e-05/0.1167, allocations: 0 / 496.7 MB, free: 15.25 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.1167, allocations: 0 / 496.7 MB, free: 15.25 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.324e-05/0.1168, allocations: 43.91 kB / 496.8 MB, free: 15.21 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001633/0.117, allocations: 177.5 kB / 497 MB, free: 14.98 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001023/0.1171, allocations: 78.48 kB / 497 MB, free: 14.9 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.665e-05/0.1172, allocations: 60.86 kB / 497.1 MB, free: 14.84 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.037e-06/0.1172, allocations: 4 kB / 497.1 MB, free: 14.83 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.434e-05/0.1172, allocations: 34.56 kB / 497.1 MB, free: 14.79 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.112e-06/0.1172, allocations: 0 / 497.1 MB, free: 14.79 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0003625/0.1176, allocations: 223.1 kB / 497.4 MB, free: 14.56 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.167e-05/0.1177, allocations: 93.09 kB / 497.4 MB, free: 14.45 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001261/0.1178, allocations: 150.1 kB / 497.6 MB, free: 14.29 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.62e-05/0.1178, allocations: 25.7 kB / 497.6 MB, free: 14.26 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.184e-05/0.1179, allocations: 96.41 kB / 497.7 MB, free: 14.16 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.603e-05/0.118, allocations: 47.36 kB / 497.8 MB, free: 14.12 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.38e-05/0.118, allocations: 25.7 kB / 497.8 MB, free: 14.09 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001215/0.1181, allocations: 322.8 kB / 498.1 MB, free: 13.76 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.127e-05/0.1182, allocations: 39.97 kB / 498.1 MB, free: 13.72 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.337e-05/0.1183, allocations: 36.23 kB / 498.2 MB, free: 13.69 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001832/0.1185, allocations: 176.2 kB / 498.3 MB, free: 13.5 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.1185, allocations: 3.938 kB / 498.3 MB, free: 13.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002207/0.1187, allocations: 179.7 kB / 498.5 MB, free: 13.31 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.494e-05/0.1187, allocations: 49.75 kB / 498.6 MB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.018e-06/0.1188, allocations: 0 / 498.6 MB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.102e-05/0.1188, allocations: 0 / 498.6 MB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.577e-06/0.1188, allocations: 3.984 kB / 498.6 MB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.234e-06/0.1188, allocations: 3.938 kB / 498.6 MB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.768e-05/0.1189, allocations: 11.84 kB / 498.6 MB, free: 13.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.282e-05/0.1189, allocations: 8 kB / 498.6 MB, free: 13.23 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.000125/0.119, allocations: 171.5 kB / 498.8 MB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.295e-05/0.119, allocations: 11.91 kB / 498.8 MB, free: 13.03 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.668e-05/0.1191, allocations: 16.83 kB / 498.8 MB, free: 13.02 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.964e-06/0.1191, allocations: 0 / 498.8 MB, free: 13.02 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.1191, allocations: 4 kB / 498.8 MB, free: 13.01 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.734e-05/0.1191, allocations: 88.86 kB / 498.9 MB, free: 12.91 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.267e-05/0.1192, allocations: 4 kB / 498.9 MB, free: 12.9 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.809e-05/0.1192, allocations: 4 kB / 498.9 MB, free: 12.9 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.91e-05/0.1192, allocations: 3.938 kB / 498.9 MB, free: 12.89 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0004202/0.1197, allocations: 433.8 kB / 499.3 MB, free: 12.45 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003837/0.1201, allocations: 436.3 kB / 499.7 MB, free: 12 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001722/0.1202, allocations: 167.9 kB / 499.9 MB, free: 11.83 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.929e-05/0.1203, allocations: 119.2 kB / 0.4883 GB, free: 11.71 MB / 382.1 MB Notification: Performance of Backend: time 5.81e-07/0.1203, allocations: 0 / 0.4883 GB, free: 11.71 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001294/0.1216, allocations: 0.599 MB / 0.4889 GB, free: 11.1 MB / 382.1 MB Notification: Performance of SimCode: time 0.0006917/0.1223, allocations: 0.7827 MB / 0.4897 GB, free: 10.25 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.EqCircFromTransDat could not be translated