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: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001482/0.001482, allocations: 105.1 kB / 17.05 MB, free: 6.027 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.001734/0.001734, allocations: 196 kB / 18 MB, free: 5.105 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.392/1.392, allocations: 205.1 MB / 223.9 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.1754/0.1754, allocations: 37.98 MB / 309.2 MB, free: 5.957 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.001409/0.001409, allocations: 67.89 kB / 431.4 MB, free: 16.13 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1041, allocations: 55.24 MB / 486.6 MB, free: 8.836 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1): time 0.003923/0.1081, allocations: 2.099 MB / 488.7 MB, free: 6.719 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003154/0.1113, allocations: 2.078 MB / 490.8 MB, free: 4.629 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.477e-05/0.1113, allocations: 0 / 490.8 MB, free: 4.629 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001207/0.1115, allocations: 11.92 kB / 490.8 MB, free: 4.617 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 9.573e-05/0.1116, allocations: 31.83 kB / 490.8 MB, free: 4.586 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.002254/0.1139, allocations: 0.8369 MB / 491.7 MB, free: 3.75 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001372/0.114, allocations: 75.64 kB / 491.7 MB, free: 3.676 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.144e-05/0.1141, allocations: 8.172 kB / 491.8 MB, free: 3.668 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.725e-05/0.1141, allocations: 27.91 kB / 491.8 MB, free: 3.641 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.625e-05/0.1142, allocations: 43.77 kB / 491.8 MB, free: 3.598 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.323e-05/0.1142, allocations: 4 kB / 491.8 MB, free: 3.594 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002027/0.1163, allocations: 1.411 MB / 493.2 MB, free: 2.18 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 4.061e-05/0.1163, allocations: 15.92 kB / 493.3 MB, free: 2.164 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 4.222e-05/0.1164, allocations: 27.8 kB / 493.3 MB, free: 2.137 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001584/0.118, allocations: 1.326 MB / 494.6 MB, free: 0.8086 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.596e-06/0.118, allocations: 0 / 494.6 MB, free: 0.8086 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.118, allocations: 7.938 kB / 494.6 MB, free: 0.8008 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.661e-06/0.118, allocations: 0 / 494.6 MB, free: 0.8008 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.000743/0.1188, allocations: 0.5124 MB / 495.1 MB, free: 240 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.028e-05/0.1188, allocations: 15.89 kB / 495.1 MB, free: 224 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.284e-05/0.1188, allocations: 38.73 kB / 495.2 MB, free: 176 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.245e-05/0.1189, allocations: 8.844 kB / 495.2 MB, free: 168 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001945/0.1191, allocations: 195 kB / 495.4 MB, free: 15.93 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.939e-06/0.1191, allocations: 0 / 495.4 MB, free: 15.93 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.059e-05/0.1191, allocations: 4 kB / 495.4 MB, free: 15.93 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001305/0.1193, allocations: 69.55 kB / 495.5 MB, free: 15.86 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.354e-06/0.1193, allocations: 0 / 495.5 MB, free: 15.86 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.226e-06/0.1193, allocations: 4 kB / 495.5 MB, free: 15.85 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.888e-06/0.1193, allocations: 0 / 495.5 MB, free: 15.85 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.442e-05/0.1194, allocations: 35.97 kB / 495.5 MB, free: 15.82 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001488/0.1195, allocations: 173.6 kB / 495.7 MB, free: 15.6 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.747e-05/0.1196, allocations: 58.56 kB / 495.7 MB, free: 15.53 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.422e-05/0.1197, allocations: 44.88 kB / 495.8 MB, free: 15.48 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.765e-06/0.1197, allocations: 0 / 495.8 MB, free: 15.48 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.431e-05/0.1197, allocations: 34.5 kB / 495.8 MB, free: 15.44 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 8.51e-07/0.1197, allocations: 224 / 495.8 MB, free: 15.44 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003015/0.12, allocations: 203.2 kB / 496 MB, free: 15.23 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.043e-05/0.1201, allocations: 85.11 kB / 496.1 MB, free: 15.13 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001027/0.1202, allocations: 125.8 kB / 496.2 MB, free: 15 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.542e-05/0.1202, allocations: 25.7 kB / 496.2 MB, free: 14.96 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.864e-05/0.1203, allocations: 96.12 kB / 496.3 MB, free: 14.87 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.319e-05/0.1203, allocations: 43.3 kB / 496.4 MB, free: 14.82 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.974e-05/0.1204, allocations: 21.72 kB / 496.4 MB, free: 14.8 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001154/0.1205, allocations: 326.8 kB / 496.7 MB, free: 14.47 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.954e-05/0.1206, allocations: 36.02 kB / 496.7 MB, free: 14.43 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.14e-05/0.1206, allocations: 31.98 kB / 496.8 MB, free: 14.4 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001503/0.1208, allocations: 160.1 kB / 496.9 MB, free: 14.23 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.1208, allocations: 0 / 496.9 MB, free: 14.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002276/0.121, allocations: 159.2 kB / 497.1 MB, free: 14.06 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.475e-05/0.1211, allocations: 45.67 kB / 497.1 MB, free: 14.01 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.1211, allocations: 0 / 497.1 MB, free: 14.01 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.124e-05/0.1211, allocations: 0 / 497.1 MB, free: 14.01 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.144e-06/0.1211, allocations: 8 kB / 497.1 MB, free: 14 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.278e-06/0.1211, allocations: 0 / 497.1 MB, free: 14 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.848e-05/0.1211, allocations: 8 kB / 497.1 MB, free: 14 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.083e-05/0.1212, allocations: 4 kB / 497.1 MB, free: 13.99 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.0001218/0.1213, allocations: 171.5 kB / 497.3 MB, free: 13.81 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.965e-05/0.1213, allocations: 7.906 kB / 497.3 MB, free: 13.8 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.614e-05/0.1214, allocations: 16.66 kB / 497.3 MB, free: 13.79 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-06/0.1214, allocations: 0 / 497.3 MB, free: 13.79 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.1214, allocations: 0 / 497.3 MB, free: 13.79 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.267e-06/0.1214, allocations: 3.938 kB / 497.3 MB, free: 13.78 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001345/0.1215, allocations: 177.5 kB / 497.5 MB, free: 13.56 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.1215, allocations: 7.938 kB / 497.5 MB, free: 13.55 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.41e-07/0.1215, allocations: 0 / 497.5 MB, free: 13.55 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.1215, allocations: 7.984 kB / 497.5 MB, free: 13.54 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.063e-05/0.1216, allocations: 0 / 497.5 MB, free: 13.54 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.617e-06/0.1216, allocations: 4 kB / 497.5 MB, free: 13.54 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1216, allocations: 0 / 497.5 MB, free: 13.54 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003438/0.1219, allocations: 286.9 kB / 497.8 MB, free: 13.23 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.733e-05/0.122, allocations: 88.95 kB / 497.9 MB, free: 13.13 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.835e-05/0.122, allocations: 8.031 kB / 497.9 MB, free: 13.12 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.752e-05/0.122, allocations: 0 / 497.9 MB, free: 13.12 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.865e-05/0.1221, allocations: 7.984 kB / 497.9 MB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.16e-05/0.1221, allocations: 7.938 kB / 497.9 MB, free: 13.11 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.987e-05/0.1221, allocations: 103.2 kB / 498 MB, free: 13 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1221, allocations: 0 / 498 MB, free: 13 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007803/0.1229, allocations: 319.9 kB / 498.3 MB, free: 12.69 MB / 382.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.00156/0.1245, allocations: 1.086 MB / 499.4 MB, free: 11.57 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003259/0.1248, allocations: 295.3 kB / 499.7 MB, free: 11.27 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.1249, allocations: 0 / 499.7 MB, free: 11.27 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001838/0.125, allocations: 223.3 kB / 499.9 MB, free: 11.04 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002351/0.1253, allocations: 20.03 kB / 499.9 MB, free: 11.02 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002108/0.1274, allocations: 1.935 MB / 0.4901 GB, free: 8.996 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002599/0.1277, allocations: 0.7041 MB / 0.4908 GB, free: 8.266 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.163e-05/0.1277, allocations: 3.938 kB / 0.4908 GB, free: 8.262 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.529e-05/0.1277, allocations: 23.42 kB / 0.4908 GB, free: 8.238 MB / 382.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1277, allocations: 0 / 0.4908 GB, free: 8.238 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].