Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2.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_matrixTrDat2,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2",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.001306/0.001306, allocations: 106.1 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.001344/0.001345, allocations: 195 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.369/1.369, 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.1847/0.1847, allocations: 37.99 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.00164/0.00164, allocations: 67.89 kB / 431.4 MB, free: 16.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09977/0.1014, allocations: 55.24 MB / 486.6 MB, free: 8.832 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2): time 0.003505/0.105, allocations: 2.099 MB / 488.7 MB, free: 6.711 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003051/0.108, allocations: 2.078 MB / 490.8 MB, free: 4.621 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.754e-05/0.1081, allocations: 0 / 490.8 MB, free: 4.621 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001361/0.1083, allocations: 19.91 kB / 490.8 MB, free: 4.602 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 9.21e-05/0.1084, allocations: 31.84 kB / 490.8 MB, free: 4.57 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.002285/0.1107, allocations: 0.8291 MB / 491.7 MB, free: 3.742 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001371/0.1108, allocations: 79.69 kB / 491.8 MB, free: 3.664 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.265e-05/0.1109, allocations: 4.188 kB / 491.8 MB, free: 3.66 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.181e-05/0.111, allocations: 31.84 kB / 491.8 MB, free: 3.629 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.457e-05/0.1111, allocations: 47.81 kB / 491.8 MB, free: 3.582 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.19e-05/0.1111, allocations: 4 kB / 491.8 MB, free: 3.578 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002063/0.1132, allocations: 1.411 MB / 493.3 MB, free: 2.164 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.162e-05/0.1133, allocations: 27.91 kB / 493.3 MB, free: 2.137 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 5.044e-05/0.1133, allocations: 47.61 kB / 493.3 MB, free: 2.09 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001896/0.1152, allocations: 1.345 MB / 494.7 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.1153, allocations: 0 / 494.7 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.1153, allocations: 3.938 kB / 494.7 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.302e-06/0.1153, allocations: 0 / 494.7 MB, free: 0.7383 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0008756/0.1162, allocations: 0.5553 MB / 495.2 MB, free: 132 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.293e-05/0.1162, allocations: 15.89 kB / 495.2 MB, free: 116 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.663e-05/0.1163, allocations: 42.73 kB / 495.3 MB, free: 64 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.882e-05/0.1163, allocations: 12.75 kB / 495.3 MB, free: 52 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002389/0.1165, allocations: 203.4 kB / 495.5 MB, free: 15.81 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.903e-06/0.1166, allocations: 0 / 495.5 MB, free: 15.81 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.414e-05/0.1166, allocations: 4 kB / 495.5 MB, free: 15.81 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001794/0.1168, allocations: 97.52 kB / 495.6 MB, free: 15.71 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.1168, allocations: 3.938 kB / 495.6 MB, free: 15.7 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.313e-05/0.1168, allocations: 0 / 495.6 MB, free: 15.7 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.06e-06/0.1168, allocations: 7.938 kB / 495.6 MB, free: 15.7 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.796e-05/0.1169, allocations: 63.97 kB / 495.7 MB, free: 15.63 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001881/0.1171, allocations: 193.4 kB / 495.9 MB, free: 15.39 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001262/0.1172, allocations: 102.5 kB / 496 MB, free: 15.29 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.791e-05/0.1173, allocations: 84.86 kB / 496 MB, free: 15.2 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.855e-06/0.1174, allocations: 0 / 496 MB, free: 15.2 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.115e-05/0.1174, allocations: 30.56 kB / 496.1 MB, free: 15.16 MB / 382.1 MB Notification: Performance of pre-optimization done (n=24): time 8.11e-07/0.1174, allocations: 4 kB / 496.1 MB, free: 15.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005124/0.1179, allocations: 331.2 kB / 496.4 MB, free: 14.82 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.119e-05/0.118, allocations: 93.09 kB / 496.5 MB, free: 14.71 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001414/0.1181, allocations: 150.2 kB / 496.6 MB, free: 14.55 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.71e-05/0.1182, allocations: 25.7 kB / 496.7 MB, free: 14.52 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.61e-05/0.1182, allocations: 104.6 kB / 496.8 MB, free: 14.42 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.091e-05/0.1183, allocations: 70.81 kB / 496.8 MB, free: 14.35 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.024e-05/0.1184, allocations: 29.7 kB / 496.9 MB, free: 14.31 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.1185, allocations: 334.8 kB / 497.2 MB, free: 13.98 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.155e-05/0.1186, allocations: 63.97 kB / 497.3 MB, free: 13.91 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.747e-05/0.1187, allocations: 59.97 kB / 497.3 MB, free: 13.86 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002569/0.1189, allocations: 249.7 kB / 497.6 MB, free: 13.6 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.658e-06/0.119, allocations: 8 kB / 497.6 MB, free: 13.59 MB / 382.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002872/0.1193, allocations: 242.8 kB / 497.8 MB, free: 13.34 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.352e-05/0.1193, allocations: 65.58 kB / 497.9 MB, free: 13.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.591e-06/0.1193, allocations: 0 / 497.9 MB, free: 13.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.34e-05/0.1194, allocations: 0 / 497.9 MB, free: 13.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.555e-06/0.1194, allocations: 4.047 kB / 497.9 MB, free: 13.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.641e-06/0.1194, allocations: 4 kB / 497.9 MB, free: 13.26 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.906e-05/0.1195, allocations: 15.84 kB / 497.9 MB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.632e-05/0.1195, allocations: 4 kB / 497.9 MB, free: 13.24 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.0001627/0.1197, allocations: 195.4 kB / 498.1 MB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.974e-05/0.1197, allocations: 15.81 kB / 498.1 MB, free: 13.02 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.876e-05/0.1197, allocations: 17.12 kB / 498.1 MB, free: 13 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-06/0.1197, allocations: 3.984 kB / 498.1 MB, free: 13 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.1197, allocations: 0 / 498.1 MB, free: 13 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.375e-06/0.1198, allocations: 4 kB / 498.1 MB, free: 13 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001501/0.1199, allocations: 209.4 kB / 498.3 MB, free: 12.74 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.1199, allocations: 0 / 498.3 MB, free: 12.74 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.002e-06/0.1199, allocations: 3.938 kB / 498.3 MB, free: 12.74 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.237e-06/0.1199, allocations: 0 / 498.3 MB, free: 12.74 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.645e-05/0.12, allocations: 7.938 kB / 498.3 MB, free: 12.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.12, allocations: 0 / 498.3 MB, free: 12.73 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.12, allocations: 4 kB / 498.3 MB, free: 12.73 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005865/0.1206, allocations: 0.51 MB / 498.9 MB, free: 12.19 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.87e-05/0.1206, allocations: 96.89 kB / 498.9 MB, free: 12.08 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.306e-05/0.1206, allocations: 4 kB / 499 MB, free: 12.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.36e-05/0.1207, allocations: 7.984 kB / 499 MB, free: 12.07 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.741e-05/0.1207, allocations: 11.98 kB / 499 MB, free: 12.05 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.523e-05/0.1207, allocations: 8 kB / 499 MB, free: 12.05 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.234e-05/0.1208, allocations: 115.1 kB / 499.1 MB, free: 11.93 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1208, allocations: 0 / 499.1 MB, free: 11.93 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009251/0.1218, allocations: 335.9 kB / 499.4 MB, free: 11.61 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.001947/0.1237, allocations: 1.324 MB / 0.489 GB, free: 10.25 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009226/0.1247, allocations: 0.7062 MB / 0.4897 GB, free: 9.527 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.1247, allocations: 0 / 0.4897 GB, free: 9.527 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006489/0.1253, allocations: 0.5736 MB / 0.4903 GB, free: 8.941 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002476/0.1256, allocations: 15.94 kB / 0.4903 GB, free: 8.926 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002886/0.1285, allocations: 2.657 MB / 0.4929 GB, free: 6.18 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003239/0.1288, allocations: 0.7238 MB / 0.4936 GB, free: 5.43 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.735e-05/0.1289, allocations: 4 kB / 0.4936 GB, free: 5.426 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.709e-05/0.1289, allocations: 31.42 kB / 0.4936 GB, free: 5.395 MB / 382.1 MB Notification: Performance of SimCode: time 2e-07/0.1289, allocations: 0 / 0.4936 GB, free: 5.395 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].