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.001394/0.001394, allocations: 110.6 kB / 17.68 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.001572/0.001572, allocations: 190.9 kB / 18.62 MB, free: 4.41 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.597/1.597, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1876/0.1876, allocations: 37.98 MB / 309.8 MB, free: 5.969 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.001524/0.001524, allocations: 63.91 kB / 376.8 MB, free: 2.91 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2846/0.2862, allocations: 55.24 MB / 432 MB, free: 19.64 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1): time 0.00385/0.2901, allocations: 2.106 MB / 434.1 MB, free: 17.52 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003553/0.2937, allocations: 2.078 MB / 436.2 MB, free: 15.43 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.615e-05/0.2938, allocations: 0 / 436.2 MB, free: 15.43 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000202/0.294, allocations: 15.86 kB / 436.2 MB, free: 15.42 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001166/0.2942, allocations: 27.83 kB / 436.2 MB, free: 15.39 MB / 318.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.002583/0.2968, allocations: 0.8243 MB / 437.1 MB, free: 14.57 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000138/0.2969, allocations: 67.77 kB / 437.1 MB, free: 14.5 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.142e-05/0.297, allocations: 8.172 kB / 437.1 MB, free: 14.49 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.683e-05/0.2971, allocations: 43.78 kB / 437.2 MB, free: 14.45 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.627e-05/0.2972, allocations: 35.89 kB / 437.2 MB, free: 14.41 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.45e-05/0.2972, allocations: 4 kB / 437.2 MB, free: 14.41 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001734/0.299, allocations: 1.404 MB / 438.6 MB, free: 13 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.27e-05/0.299, allocations: 15.92 kB / 438.6 MB, free: 12.99 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.547e-05/0.2991, allocations: 23.81 kB / 438.7 MB, free: 12.96 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00134/0.3004, allocations: 1.333 MB / 440 MB, free: 11.63 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.3005, allocations: 4 kB / 440 MB, free: 11.62 MB / 318.1 MB Notification: Performance of FrontEnd: time 5.29e-06/0.3005, allocations: 4 kB / 440 MB, free: 11.62 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.504e-06/0.3005, allocations: 0 / 440 MB, free: 11.62 MB / 318.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.000635/0.3011, allocations: 0.5025 MB / 440.5 MB, free: 11.07 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.732e-05/0.3012, allocations: 15.89 kB / 440.5 MB, free: 11.05 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.273e-05/0.3012, allocations: 16.73 kB / 440.5 MB, free: 11.04 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000169/0.3014, allocations: 195.5 kB / 440.7 MB, free: 10.8 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.37e-05/0.3014, allocations: 0 / 440.7 MB, free: 10.8 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.329e-05/0.3015, allocations: 3.938 kB / 440.7 MB, free: 10.8 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001526/0.3016, allocations: 69.67 kB / 440.8 MB, free: 10.73 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.3016, allocations: 0 / 440.8 MB, free: 10.73 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.405e-05/0.3017, allocations: 0 / 440.8 MB, free: 10.73 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.3017, allocations: 3.938 kB / 440.8 MB, free: 10.72 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.779e-05/0.3017, allocations: 31.98 kB / 440.8 MB, free: 10.69 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001619/0.3019, allocations: 177.4 kB / 441 MB, free: 10.47 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.29e-05/0.302, allocations: 58.56 kB / 441.1 MB, free: 10.4 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.641e-05/0.302, allocations: 52.8 kB / 441.1 MB, free: 10.35 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.047e-05/0.3021, allocations: 4 kB / 441.1 MB, free: 10.34 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.446e-05/0.3021, allocations: 38.56 kB / 441.2 MB, free: 10.3 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.042e-06/0.3021, allocations: 0 / 441.2 MB, free: 10.3 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003073/0.3024, allocations: 191.4 kB / 441.3 MB, free: 10.1 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.204e-05/0.3025, allocations: 89.09 kB / 441.4 MB, free: 9.992 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001161/0.3026, allocations: 133.8 kB / 441.6 MB, free: 9.852 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.329e-05/0.3026, allocations: 25.7 kB / 441.6 MB, free: 9.82 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.768e-05/0.3027, allocations: 96.17 kB / 441.7 MB, free: 9.723 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.763e-05/0.3027, allocations: 31.45 kB / 441.7 MB, free: 9.691 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.621e-05/0.3027, allocations: 25.7 kB / 441.7 MB, free: 9.66 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.698e-05/0.3028, allocations: 326.8 kB / 442.1 MB, free: 9.332 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.24e-05/0.3029, allocations: 31.92 kB / 442.1 MB, free: 9.301 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.485e-05/0.3029, allocations: 31.98 kB / 442.1 MB, free: 9.27 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001147/0.303, allocations: 160.2 kB / 442.3 MB, free: 9.098 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.045e-06/0.3031, allocations: 4 kB / 442.3 MB, free: 9.094 MB / 318.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001367/0.3032, allocations: 155.2 kB / 442.4 MB, free: 8.93 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.298e-05/0.3033, allocations: 57.73 kB / 442.5 MB, free: 8.867 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.3033, allocations: 0 / 442.5 MB, free: 8.867 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.779e-05/0.3033, allocations: 0 / 442.5 MB, free: 8.867 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.212e-06/0.3033, allocations: 0 / 442.5 MB, free: 8.867 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.285e-06/0.3033, allocations: 3.984 kB / 442.5 MB, free: 8.863 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.145e-05/0.3034, allocations: 7.906 kB / 442.5 MB, free: 8.855 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.792e-05/0.3034, allocations: 4 kB / 442.5 MB, free: 8.852 MB / 318.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.3035, allocations: 175.3 kB / 442.7 MB, free: 8.664 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.703e-05/0.3035, allocations: 7.906 kB / 442.7 MB, free: 8.656 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.827e-05/0.3036, allocations: 16.7 kB / 442.7 MB, free: 8.641 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.3036, allocations: 0 / 442.7 MB, free: 8.641 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.3036, allocations: 0 / 442.7 MB, free: 8.641 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.658e-06/0.3036, allocations: 0 / 442.7 MB, free: 8.641 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001268/0.3037, allocations: 185.5 kB / 442.9 MB, free: 8.41 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.92e-07/0.3037, allocations: 0 / 442.9 MB, free: 8.41 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.92e-07/0.3037, allocations: 0 / 442.9 MB, free: 8.41 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.203e-06/0.3038, allocations: 0 / 442.9 MB, free: 8.41 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.373e-05/0.3038, allocations: 4 kB / 442.9 MB, free: 8.406 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.01e-07/0.3038, allocations: 0 / 442.9 MB, free: 8.406 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.3038, allocations: 0 / 442.9 MB, free: 8.406 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002731/0.3041, allocations: 298.1 kB / 443.2 MB, free: 8.094 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.888e-05/0.3041, allocations: 96.86 kB / 443.3 MB, free: 7.98 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.556e-05/0.3041, allocations: 4 kB / 443.3 MB, free: 7.977 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.672e-05/0.3042, allocations: 0 / 443.3 MB, free: 7.977 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.297e-05/0.3042, allocations: 4 kB / 443.3 MB, free: 7.973 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.358e-06/0.3042, allocations: 7.938 kB / 443.3 MB, free: 7.965 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.302e-05/0.3043, allocations: 110.5 kB / 443.4 MB, free: 7.859 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3043, allocations: 4.031 kB / 443.4 MB, free: 7.855 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007608/0.3051, allocations: 323.8 kB / 443.7 MB, free: 7.539 MB / 318.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.0008143/0.3059, allocations: 361.7 kB / 444.1 MB, free: 7.176 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003022/0.3062, allocations: 303.2 kB / 444.4 MB, free: 6.867 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.3062, allocations: 0 / 444.4 MB, free: 6.867 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001361/0.3063, allocations: 223.4 kB / 444.6 MB, free: 6.637 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002726/0.3066, allocations: 15.98 kB / 444.6 MB, free: 6.621 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004373/0.3071, allocations: 292.7 kB / 444.9 MB, free: 6.309 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000152/0.3072, allocations: 0.7041 MB / 445.6 MB, free: 5.578 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.427e-05/0.3072, allocations: 7.938 kB / 445.6 MB, free: 5.57 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.445e-05/0.3073, allocations: 11.5 kB / 445.6 MB, free: 5.559 MB / 318.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3073, allocations: 4 kB / 445.6 MB, free: 5.555 MB / 318.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].