Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1.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_matrixTrDat1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001149/0.001149, allocations: 110.5 kB / 17.75 MB, free: 5.332 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.001166/0.001166, allocations: 187 kB / 18.68 MB, free: 4.406 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.329/1.329, allocations: 205.1 MB / 224.5 MB, free: 12.28 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1743/0.1743, allocations: 37.99 MB / 309.9 MB, free: 5.945 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.001593/0.001593, allocations: 75.88 kB / 432.6 MB, free: 15.62 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09172/0.09333, allocations: 55.24 MB / 487.8 MB, free: 8.312 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1): time 0.003401/0.09676, allocations: 2.099 MB / 489.9 MB, free: 6.195 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003052/0.09984, allocations: 2.085 MB / 492 MB, free: 4.098 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.85e-05/0.09994, allocations: 4 kB / 492 MB, free: 4.094 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001427/0.1001, allocations: 7.922 kB / 492 MB, free: 4.086 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001085/0.1002, allocations: 31.83 kB / 492 MB, free: 4.055 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.00234/0.1026, allocations: 0.8185 MB / 492.8 MB, free: 3.234 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001408/0.1027, allocations: 71.7 kB / 492.9 MB, free: 3.164 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.987e-05/0.1028, allocations: 12.17 kB / 492.9 MB, free: 3.152 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.195e-05/0.1029, allocations: 31.84 kB / 493 MB, free: 3.121 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.997e-05/0.103, allocations: 43.77 kB / 493 MB, free: 3.078 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.521e-05/0.103, allocations: 4 kB / 493 MB, free: 3.074 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002205/0.1052, allocations: 1.407 MB / 494.4 MB, free: 1.664 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 4.34e-05/0.1053, allocations: 19.92 kB / 494.4 MB, free: 1.645 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 4.468e-05/0.1053, allocations: 23.8 kB / 494.5 MB, free: 1.621 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001781/0.1071, allocations: 1.333 MB / 495.8 MB, free: 292 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.1071, allocations: 0 / 495.8 MB, free: 292 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1071, allocations: 0 / 495.8 MB, free: 292 kB / 366.1 MB Notification: Performance of Transformations before backend: time 1.011e-05/0.1071, allocations: 0 / 495.8 MB, free: 292 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0008634/0.108, allocations: 0.5124 MB / 496.3 MB, free: 15.72 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.042e-05/0.1081, allocations: 15.89 kB / 496.3 MB, free: 15.7 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.269e-05/0.1081, allocations: 8.844 kB / 496.3 MB, free: 15.7 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001851/0.1083, allocations: 191.3 kB / 496.5 MB, free: 15.47 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.939e-06/0.1083, allocations: 0 / 496.5 MB, free: 15.47 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.069e-05/0.1083, allocations: 4 kB / 496.5 MB, free: 15.46 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001395/0.1085, allocations: 69.67 kB / 496.6 MB, free: 15.39 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.404e-06/0.1085, allocations: 0 / 496.6 MB, free: 15.39 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.226e-05/0.1085, allocations: 3.984 kB / 496.6 MB, free: 15.39 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.1085, allocations: 0 / 496.6 MB, free: 15.39 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.84e-05/0.1086, allocations: 31.98 kB / 496.6 MB, free: 15.36 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001666/0.1088, allocations: 173.5 kB / 496.8 MB, free: 15.14 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.689e-05/0.1089, allocations: 62.5 kB / 496.9 MB, free: 15.07 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.759e-05/0.1089, allocations: 48.86 kB / 496.9 MB, free: 15.02 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.696e-06/0.1089, allocations: 4 kB / 496.9 MB, free: 15.01 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.354e-05/0.109, allocations: 34.56 kB / 496.9 MB, free: 14.97 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.372e-06/0.109, allocations: 0 / 496.9 MB, free: 14.97 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.0002956/0.1093, allocations: 191.3 kB / 497.1 MB, free: 14.77 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.343e-05/0.1093, allocations: 93.09 kB / 497.2 MB, free: 14.66 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001065/0.1094, allocations: 133.7 kB / 497.3 MB, free: 14.52 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.388e-05/0.1095, allocations: 25.7 kB / 497.4 MB, free: 14.49 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.171e-05/0.1095, allocations: 96.17 kB / 497.5 MB, free: 14.39 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.323e-05/0.1096, allocations: 39.39 kB / 497.5 MB, free: 14.35 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.898e-05/0.1096, allocations: 21.7 kB / 497.5 MB, free: 14.32 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001514/0.1098, allocations: 326.8 kB / 497.8 MB, free: 14 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.215e-05/0.1098, allocations: 35.98 kB / 497.9 MB, free: 13.96 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.453e-05/0.1099, allocations: 31.98 kB / 497.9 MB, free: 13.93 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001564/0.1101, allocations: 160.6 kB / 498.1 MB, free: 13.76 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.1101, allocations: 0 / 498.1 MB, free: 13.76 MB / 382.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001956/0.1103, allocations: 167 kB / 498.2 MB, free: 13.58 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.5e-05/0.1103, allocations: 49.69 kB / 498.3 MB, free: 13.53 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.163e-05/0.1103, allocations: 7.969 kB / 498.3 MB, free: 13.52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.677e-05/0.1104, allocations: 0 / 498.3 MB, free: 13.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.403e-06/0.1104, allocations: 3.938 kB / 498.3 MB, free: 13.52 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.468e-06/0.1104, allocations: 0 / 498.3 MB, free: 13.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.551e-05/0.1105, allocations: 4 kB / 498.3 MB, free: 13.51 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.65e-05/0.1105, allocations: 4 kB / 498.3 MB, free: 13.51 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.0001236/0.1106, allocations: 167.5 kB / 498.5 MB, free: 13.33 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.327e-05/0.1106, allocations: 15.94 kB / 498.5 MB, free: 13.31 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.555e-05/0.1107, allocations: 8.703 kB / 498.5 MB, free: 13.3 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.1107, allocations: 0 / 498.5 MB, free: 13.3 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.1107, allocations: 0 / 498.5 MB, free: 13.3 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.559e-05/0.1107, allocations: 85.02 kB / 498.6 MB, free: 13.2 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.2e-05/0.1108, allocations: 7.938 kB / 498.6 MB, free: 13.2 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.975e-05/0.1108, allocations: 0 / 498.6 MB, free: 13.2 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.664e-05/0.1108, allocations: 8 kB / 498.6 MB, free: 13.19 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003993/0.1112, allocations: 421.9 kB / 499 MB, free: 12.75 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0004639/0.1117, allocations: 440.2 kB / 499.4 MB, free: 12.3 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001591/0.1119, allocations: 135.9 kB / 499.6 MB, free: 12.16 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.696e-05/0.1119, allocations: 99.27 kB / 499.7 MB, free: 12.07 MB / 382.1 MB Notification: Performance of Backend: time 1.71e-07/0.112, allocations: 0 / 499.7 MB, free: 12.07 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001683/0.1136, allocations: 0.5639 MB / 0.4885 GB, free: 11.48 MB / 382.1 MB Notification: Performance of SimCode: time 0.0007401/0.1144, allocations: 0.7507 MB / 0.4892 GB, free: 10.67 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_matrixTrDat1 could not be translated