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 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.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.001192/0.001192, allocations: 107.2 kB / 17.74 MB, free: 5.184 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.001208/0.001209, allocations: 194.5 kB / 18.67 MB, free: 4.262 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.4/1.4, allocations: 205.1 MB / 224.5 MB, free: 12.2 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.176/0.176, allocations: 37.98 MB / 309.9 MB, free: 5.941 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.001398/0.001398, allocations: 71.91 kB / 432.6 MB, free: 15.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.1071, allocations: 55.24 MB / 487.8 MB, free: 8.328 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc): time 0.003965/0.1111, allocations: 2.161 MB / 490 MB, free: 6.145 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001746/0.1129, allocations: 1.103 MB / 491.1 MB, free: 5.035 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.274e-05/0.1129, allocations: 7.875 kB / 491.1 MB, free: 5.027 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001419/0.1131, allocations: 15.92 kB / 491.1 MB, free: 5.012 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001544/0.1133, allocations: 47.8 kB / 491.1 MB, free: 4.965 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'. Notification: Performance of NFTyping.typeClassSections: time 0.0009784/0.1143, allocations: 287.2 kB / 491.4 MB, free: 4.684 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001858/0.1145, allocations: 119.6 kB / 491.5 MB, free: 4.566 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.552e-05/0.1145, allocations: 7.938 kB / 491.5 MB, free: 4.559 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001/0.1146, allocations: 47.83 kB / 491.6 MB, free: 4.512 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001105/0.1147, allocations: 71.72 kB / 491.7 MB, free: 4.441 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.36e-05/0.1148, allocations: 0 / 491.7 MB, free: 4.441 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006887/0.1155, allocations: 411.2 kB / 492.1 MB, free: 4.039 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.918e-05/0.1155, allocations: 39.89 kB / 492.1 MB, free: 4 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 4.986e-05/0.1156, allocations: 39.69 kB / 492.1 MB, free: 3.961 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000641/0.1162, allocations: 0.5144 MB / 492.6 MB, free: 3.445 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.1163, allocations: 4 kB / 492.7 MB, free: 3.441 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1163, allocations: 4 kB / 492.7 MB, free: 3.438 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.24e-06/0.1163, allocations: 0 / 492.7 MB, free: 3.438 MB / 366.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.0004656/0.1167, allocations: 460.7 kB / 493.1 MB, free: 2.934 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.87e-05/0.1168, allocations: 11.89 kB / 493.1 MB, free: 2.922 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.009e-05/0.1168, allocations: 12.75 kB / 493.1 MB, free: 2.91 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001724/0.117, allocations: 188.2 kB / 493.3 MB, free: 2.688 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.091e-06/0.117, allocations: 384 / 493.3 MB, free: 2.688 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.718e-05/0.1171, allocations: 8.125 kB / 493.3 MB, free: 2.68 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000152/0.1172, allocations: 97.64 kB / 493.4 MB, free: 2.578 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.228e-06/0.1172, allocations: 0 / 493.4 MB, free: 2.578 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.204e-05/0.1172, allocations: 3.938 kB / 493.4 MB, free: 2.574 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.997e-06/0.1173, allocations: 0 / 493.4 MB, free: 2.574 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.794e-05/0.1173, allocations: 63.91 kB / 493.5 MB, free: 2.512 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000147/0.1175, allocations: 177.5 kB / 493.7 MB, free: 2.289 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001544/0.1177, allocations: 130.5 kB / 493.8 MB, free: 2.152 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001152/0.1178, allocations: 124.8 kB / 493.9 MB, free: 2.027 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.264e-06/0.1178, allocations: 4 kB / 493.9 MB, free: 2.023 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.051e-05/0.1178, allocations: 30.56 kB / 493.9 MB, free: 1.984 MB / 366.1 MB Notification: Performance of pre-optimization done (n=20): time 1.372e-06/0.1178, allocations: 0 / 493.9 MB, free: 1.984 MB / 366.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004493/0.1183, allocations: 299.4 kB / 494.2 MB, free: 1.68 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.377e-05/0.1184, allocations: 89.09 kB / 494.3 MB, free: 1.574 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001004/0.1185, allocations: 137.7 kB / 494.5 MB, free: 1.43 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.699e-05/0.1185, allocations: 29.7 kB / 494.5 MB, free: 1.395 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.362e-05/0.1185, allocations: 96.48 kB / 494.6 MB, free: 1.297 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.41e-05/0.1186, allocations: 63 kB / 494.6 MB, free: 1.234 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.904e-05/0.1187, allocations: 29.7 kB / 494.7 MB, free: 1.199 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001232/0.1188, allocations: 330.8 kB / 495 MB, free: 0.8672 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.76e-05/0.1189, allocations: 55.97 kB / 495 MB, free: 0.8125 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.813e-05/0.119, allocations: 55.97 kB / 495.1 MB, free: 0.7578 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002173/0.1192, allocations: 232.2 kB / 495.3 MB, free: 0.5156 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.1192, allocations: 0 / 495.3 MB, free: 0.5156 MB / 366.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002815/0.1195, allocations: 227.7 kB / 495.5 MB, free: 288 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.281e-05/0.1195, allocations: 61.73 kB / 495.6 MB, free: 220 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.1196, allocations: 0 / 495.6 MB, free: 220 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.266e-05/0.1196, allocations: 0 / 495.6 MB, free: 220 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.022e-06/0.1196, allocations: 0 / 495.6 MB, free: 220 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.488e-06/0.1196, allocations: 0 / 495.6 MB, free: 220 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.272e-05/0.1196, allocations: 4 kB / 495.6 MB, free: 216 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.31e-05/0.1197, allocations: 8 kB / 495.6 MB, free: 208 kB / 366.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.0001319/0.1198, allocations: 179.5 kB / 495.8 MB, free: 12 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.16e-05/0.1199, allocations: 19.95 kB / 495.8 MB, free: 15.99 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.265e-05/0.1199, allocations: 21.17 kB / 495.8 MB, free: 15.97 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.1199, allocations: 0 / 495.8 MB, free: 15.97 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.1199, allocations: 0 / 495.8 MB, free: 15.97 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.067e-05/0.12, allocations: 88.95 kB / 495.9 MB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.433e-05/0.12, allocations: 7.984 kB / 495.9 MB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.124e-05/0.12, allocations: 7.938 kB / 495.9 MB, free: 15.85 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.042e-05/0.1201, allocations: 0 / 495.9 MB, free: 15.85 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0004943/0.1206, allocations: 0.5133 MB / 496.5 MB, free: 15.31 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0004745/0.121, allocations: 0.5158 MB / 497 MB, free: 14.77 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002981/0.1214, allocations: 371.9 kB / 497.3 MB, free: 14.41 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.691e-05/0.1214, allocations: 95.27 kB / 497.4 MB, free: 14.31 MB / 382.1 MB Notification: Performance of Backend: time 4.01e-07/0.1214, allocations: 0 / 497.4 MB, free: 14.31 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009832/0.1224, allocations: 0.6304 MB / 498.1 MB, free: 13.66 MB / 382.1 MB Notification: Performance of SimCode: time 0.0006887/0.1231, allocations: 0.7896 MB / 498.8 MB, free: 12.81 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.TransDatFromEqCirc could not be translated