Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0.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_matrixTrDat0,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0",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.001359/0.001359, allocations: 104.7 kB / 17.06 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.001458/0.001458, 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.371/1.371, 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.1764/0.1764, allocations: 37.98 MB / 309.2 MB, free: 5.965 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.001562/0.001563, allocations: 67.91 kB / 431.4 MB, free: 16.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1059, allocations: 55.25 MB / 486.6 MB, free: 8.836 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0): time 0.003479/0.1094, allocations: 2.083 MB / 488.7 MB, free: 6.734 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003069/0.1125, allocations: 2.078 MB / 490.8 MB, free: 4.645 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.582e-05/0.1125, allocations: 4 kB / 490.8 MB, free: 4.641 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001796/0.1128, allocations: 15.92 kB / 490.8 MB, free: 4.625 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 9.963e-05/0.1129, allocations: 31.81 kB / 490.8 MB, free: 4.594 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.002329/0.1152, allocations: 0.8369 MB / 491.7 MB, free: 3.758 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001419/0.1154, allocations: 79.69 kB / 491.8 MB, free: 3.68 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.355e-05/0.1154, allocations: 4.188 kB / 491.8 MB, free: 3.676 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.563e-05/0.1155, allocations: 39.84 kB / 491.8 MB, free: 3.637 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.919e-05/0.1156, allocations: 39.77 kB / 491.8 MB, free: 3.598 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.789e-06/0.1156, allocations: 0 / 491.8 MB, free: 3.598 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002048/0.1177, allocations: 1.407 MB / 493.2 MB, free: 2.188 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 4.393e-05/0.1177, allocations: 15.98 kB / 493.3 MB, free: 2.172 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 3.543e-05/0.1178, allocations: 19.8 kB / 493.3 MB, free: 2.152 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001715/0.1195, allocations: 1.318 MB / 494.6 MB, free: 0.832 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.1195, allocations: 0 / 494.6 MB, free: 0.832 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.1195, allocations: 3.938 kB / 494.6 MB, free: 0.8281 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.791e-06/0.1195, allocations: 3.938 kB / 494.6 MB, free: 0.8242 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0007581/0.1203, allocations: 0.4931 MB / 495.1 MB, free: 284 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.784e-05/0.1203, allocations: 11.89 kB / 495.1 MB, free: 272 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.004e-05/0.1204, allocations: 46.73 kB / 495.2 MB, free: 216 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.717e-05/0.1204, allocations: 8.844 kB / 495.2 MB, free: 208 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001893/0.1206, allocations: 183.2 kB / 495.3 MB, free: 15.98 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.941e-06/0.1206, allocations: 3.938 kB / 495.3 MB, free: 15.98 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.23e-05/0.1207, allocations: 0 / 495.3 MB, free: 15.98 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001267/0.1208, allocations: 53.69 kB / 495.4 MB, free: 15.92 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.306e-06/0.1208, allocations: 0 / 495.4 MB, free: 15.92 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.966e-06/0.1208, allocations: 3.938 kB / 495.4 MB, free: 15.92 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.708e-06/0.1208, allocations: 0 / 495.4 MB, free: 15.92 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.681e-05/0.1209, allocations: 23.98 kB / 495.4 MB, free: 15.89 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001539/0.1211, allocations: 173.5 kB / 495.6 MB, free: 15.68 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.345e-05/0.1211, allocations: 46.56 kB / 495.6 MB, free: 15.62 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.549e-05/0.1212, allocations: 32.88 kB / 495.7 MB, free: 15.59 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.365e-06/0.1212, allocations: 0 / 495.7 MB, free: 15.59 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.989e-05/0.1212, allocations: 30.56 kB / 495.7 MB, free: 15.55 MB / 382.1 MB Notification: Performance of pre-optimization done (n=8): time 8.32e-07/0.1212, allocations: 4 kB / 495.7 MB, free: 15.54 MB / 382.1 MB Notification: Performance of matching and sorting (n=8): time 0.00027/0.1215, allocations: 151.5 kB / 495.9 MB, free: 15.38 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.836e-05/0.1216, allocations: 85.11 kB / 495.9 MB, free: 15.28 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.298e-05/0.1217, allocations: 121.8 kB / 496.1 MB, free: 15.15 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.485e-05/0.1217, allocations: 25.7 kB / 496.1 MB, free: 15.12 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.001e-05/0.1218, allocations: 96.11 kB / 496.2 MB, free: 15.02 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.592e-05/0.1218, allocations: 27.56 kB / 496.2 MB, free: 15 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.032e-05/0.1218, allocations: 17.7 kB / 496.2 MB, free: 14.97 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001076/0.122, allocations: 322.8 kB / 496.5 MB, free: 14.65 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.097e-05/0.122, allocations: 28.02 kB / 496.6 MB, free: 14.62 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.218e-05/0.122, allocations: 23.98 kB / 496.6 MB, free: 14.6 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000123/0.1222, allocations: 124.2 kB / 496.7 MB, free: 14.46 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.1222, allocations: 7.984 kB / 496.7 MB, free: 14.45 MB / 382.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001552/0.1223, allocations: 119.3 kB / 496.8 MB, free: 14.32 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.445e-05/0.1224, allocations: 49.59 kB / 496.9 MB, free: 14.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.1224, allocations: 0 / 496.9 MB, free: 14.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.316e-05/0.1224, allocations: 0 / 496.9 MB, free: 14.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.32e-07/0.1224, allocations: 0 / 496.9 MB, free: 14.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.278e-06/0.1224, allocations: 320 / 496.9 MB, free: 14.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.158e-05/0.1225, allocations: 12 kB / 496.9 MB, free: 14.26 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.014e-05/0.1225, allocations: 3.938 kB / 496.9 MB, free: 14.25 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.0001113/0.1226, allocations: 159.5 kB / 497.1 MB, free: 14.08 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.76e-05/0.1227, allocations: 7.906 kB / 497.1 MB, free: 14.07 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.805e-05/0.1227, allocations: 8.375 kB / 497.1 MB, free: 14.07 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.1227, allocations: 7.875 kB / 497.1 MB, free: 14.06 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.1227, allocations: 4 kB / 497.1 MB, free: 14.05 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.1227, allocations: 3.984 kB / 497.1 MB, free: 14.05 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001322/0.1228, allocations: 165.6 kB / 497.2 MB, free: 13.84 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.1229, allocations: 7.984 kB / 497.3 MB, free: 13.83 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.11e-07/0.1229, allocations: 4 kB / 497.3 MB, free: 13.83 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.1229, allocations: 0 / 497.3 MB, free: 13.83 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.271e-05/0.1229, allocations: 0 / 497.3 MB, free: 13.83 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.1229, allocations: 11.92 kB / 497.3 MB, free: 13.82 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.1229, allocations: 0 / 497.3 MB, free: 13.82 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002499/0.1232, allocations: 222.6 kB / 497.5 MB, free: 13.57 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.682e-05/0.1232, allocations: 81.02 kB / 497.6 MB, free: 13.48 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.862e-05/0.1232, allocations: 8.031 kB / 497.6 MB, free: 13.47 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.437e-05/0.1233, allocations: 0 / 497.6 MB, free: 13.47 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.995e-05/0.1233, allocations: 4 kB / 497.6 MB, free: 13.46 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.139e-05/0.1233, allocations: 3.984 kB / 497.6 MB, free: 13.46 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.006e-05/0.1234, allocations: 99.2 kB / 497.7 MB, free: 13.36 MB / 382.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1234, allocations: 0 / 497.7 MB, free: 13.36 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008844/0.1243, allocations: 315.9 kB / 498 MB, free: 13.05 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.001571/0.1259, allocations: 1.021 MB / 499 MB, free: 12 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002517/0.1261, allocations: 199.3 kB / 499.2 MB, free: 11.79 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.1261, allocations: 0 / 499.2 MB, free: 11.79 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001333/0.1263, allocations: 151.4 kB / 499.3 MB, free: 11.63 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002623/0.1265, allocations: 12.16 kB / 499.4 MB, free: 11.62 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001816/0.1284, allocations: 1.688 MB / 0.4893 GB, free: 9.844 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002549/0.1286, allocations: 0.6961 MB / 0.49 GB, free: 9.121 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.108e-05/0.1287, allocations: 0 / 0.49 GB, free: 9.121 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.203e-05/0.1287, allocations: 19.42 kB / 0.49 GB, free: 9.102 MB / 382.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1287, allocations: 0 / 0.49 GB, free: 9.102 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].