Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat.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.EqCircFromTransDat,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_EqCircFromTransDat",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_EqCircFromTransDat",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.001208/0.001208, allocations: 105.6 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.001176/0.001176, 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.473/1.473, 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.181/0.181, allocations: 37.98 MB / 309.2 MB, free: 5.973 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.001442/0.001442, allocations: 71.91 kB / 431.4 MB, free: 16.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1122, allocations: 55.24 MB / 486.6 MB, free: 8.844 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat): time 0.003832/0.1161, allocations: 2.141 MB / 488.8 MB, free: 6.68 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00279/0.1189, allocations: 2.089 MB / 490.9 MB, free: 4.578 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.637e-05/0.119, allocations: 0 / 490.9 MB, free: 4.578 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001389/0.1192, allocations: 15.86 kB / 490.9 MB, free: 4.562 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001043/0.1193, allocations: 47.8 kB / 490.9 MB, free: 4.516 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.002025/0.1213, allocations: 0.8175 MB / 491.7 MB, free: 3.699 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001502/0.1215, allocations: 95.61 kB / 491.8 MB, free: 3.605 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.015e-05/0.1215, allocations: 7.984 kB / 491.8 MB, free: 3.598 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.764e-05/0.1216, allocations: 43.84 kB / 491.9 MB, free: 3.555 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.63e-05/0.1217, allocations: 55.75 kB / 491.9 MB, free: 3.5 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.379e-05/0.1218, allocations: 7.938 kB / 491.9 MB, free: 3.492 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001854/0.1236, allocations: 1.388 MB / 493.3 MB, free: 2.102 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.152e-05/0.1237, allocations: 27.91 kB / 493.4 MB, free: 2.074 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 5.075e-05/0.1237, allocations: 39.73 kB / 493.4 MB, free: 2.035 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001408/0.1251, allocations: 1.322 MB / 494.7 MB, free: 0.7109 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.1252, allocations: 3.984 kB / 494.7 MB, free: 0.707 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1252, allocations: 0 / 494.7 MB, free: 0.707 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.269e-06/0.1252, allocations: 4 kB / 494.7 MB, free: 0.7031 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0006174/0.1258, allocations: 0.5357 MB / 495.3 MB, free: 116 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.63e-05/0.1259, allocations: 15.89 kB / 495.3 MB, free: 100 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.063e-05/0.1259, allocations: 66.38 kB / 495.3 MB, free: 24 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.974e-05/0.126, allocations: 16.75 kB / 495.4 MB, free: 8 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002673/0.1262, allocations: 211.9 kB / 495.6 MB, free: 15.76 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.65e-05/0.1263, allocations: 7.938 kB / 495.6 MB, free: 15.75 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.539e-05/0.1263, allocations: 8 kB / 495.6 MB, free: 15.75 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002193/0.1265, allocations: 122.3 kB / 495.7 MB, free: 15.62 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.977e-06/0.1265, allocations: 0 / 495.7 MB, free: 15.62 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.288e-05/0.1266, allocations: 0 / 495.7 MB, free: 15.62 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.52e-06/0.1266, allocations: 0 / 495.7 MB, free: 15.62 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001083/0.1267, allocations: 84.11 kB / 495.8 MB, free: 15.54 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004564/0.1271, allocations: 356.9 kB / 496.1 MB, free: 15.14 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001029/0.1273, allocations: 78.47 kB / 496.2 MB, free: 15.05 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.968e-05/0.1273, allocations: 56.83 kB / 496.3 MB, free: 15 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.495e-06/0.1274, allocations: 0 / 496.3 MB, free: 15 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.582e-05/0.1274, allocations: 34.56 kB / 496.3 MB, free: 14.95 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.001e-06/0.1274, allocations: 4 kB / 496.3 MB, free: 14.95 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.000372/0.1278, allocations: 223.1 kB / 496.5 MB, free: 14.72 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.514e-05/0.1278, allocations: 89.09 kB / 496.6 MB, free: 14.61 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001224/0.128, allocations: 154.1 kB / 496.8 MB, free: 14.45 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.784e-05/0.128, allocations: 25.7 kB / 496.8 MB, free: 14.42 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.571e-05/0.1281, allocations: 112 kB / 496.9 MB, free: 14.31 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.924e-05/0.1281, allocations: 47.27 kB / 496.9 MB, free: 14.26 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.261e-05/0.1282, allocations: 25.7 kB / 497 MB, free: 14.23 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001071/0.1283, allocations: 326.9 kB / 497.3 MB, free: 13.9 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.353e-05/0.1284, allocations: 39.97 kB / 497.3 MB, free: 13.86 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.514e-05/0.1284, allocations: 35.98 kB / 497.4 MB, free: 13.83 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001637/0.1286, allocations: 172.3 kB / 497.5 MB, free: 13.64 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.1286, allocations: 0 / 497.5 MB, free: 13.64 MB / 382.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002265/0.1288, allocations: 187.1 kB / 497.7 MB, free: 13.45 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.316e-05/0.1289, allocations: 53.59 kB / 497.8 MB, free: 13.39 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.1289, allocations: 0 / 497.8 MB, free: 13.39 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.606e-05/0.1289, allocations: 3.938 kB / 497.8 MB, free: 13.39 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.042e-06/0.1289, allocations: 8 kB / 497.8 MB, free: 13.38 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.61e-06/0.129, allocations: 0 / 497.8 MB, free: 13.38 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.852e-05/0.129, allocations: 11.84 kB / 497.8 MB, free: 13.37 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.553e-05/0.1291, allocations: 7.984 kB / 497.8 MB, free: 13.36 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.000134/0.1292, allocations: 171.4 kB / 498 MB, free: 13.18 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.738e-05/0.1292, allocations: 15.91 kB / 498 MB, free: 13.16 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.785e-05/0.1293, allocations: 8.844 kB / 498 MB, free: 13.15 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.303e-06/0.1293, allocations: 0 / 498 MB, free: 13.15 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.1293, allocations: 0 / 498 MB, free: 13.15 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.508e-05/0.1293, allocations: 8 kB / 498 MB, free: 13.14 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002052/0.1295, allocations: 217.4 kB / 498.2 MB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.1295, allocations: 0 / 498.2 MB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.924e-06/0.1295, allocations: 3.984 kB / 498.2 MB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.152e-06/0.1295, allocations: 0 / 498.2 MB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.262e-05/0.1296, allocations: 4 kB / 498.2 MB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.1296, allocations: 4 kB / 498.2 MB, free: 12.87 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1296, allocations: 0 / 498.2 MB, free: 12.87 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003747/0.1299, allocations: 373.4 kB / 498.6 MB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.387e-05/0.13, allocations: 96.84 kB / 498.7 MB, free: 12.37 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.989e-05/0.13, allocations: 0 / 498.7 MB, free: 12.37 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.665e-05/0.1301, allocations: 4 kB / 498.7 MB, free: 12.37 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.146e-05/0.1301, allocations: 8 kB / 498.7 MB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.117e-05/0.1302, allocations: 4 kB / 498.7 MB, free: 12.36 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.246e-05/0.1302, allocations: 111.2 kB / 498.8 MB, free: 12.25 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1302, allocations: 0 / 498.8 MB, free: 12.25 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008548/0.1311, allocations: 335.9 kB / 499.1 MB, free: 11.92 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.001544/0.1327, allocations: 1.28 MB / 0.4887 GB, free: 10.61 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004216/0.1331, allocations: 339.2 kB / 0.489 GB, free: 10.26 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.1331, allocations: 0 / 0.489 GB, free: 10.26 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001995/0.1333, allocations: 263.4 kB / 0.4892 GB, free: 9.992 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003345/0.1336, allocations: 11.98 kB / 0.4893 GB, free: 9.98 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002389/0.136, allocations: 2.313 MB / 0.4915 GB, free: 7.582 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003034/0.1364, allocations: 0.7313 MB / 0.4922 GB, free: 6.824 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 2.295e-05/0.1364, allocations: 4 kB / 0.4922 GB, free: 6.82 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.708e-05/0.1365, allocations: 39.45 kB / 0.4923 GB, free: 6.781 MB / 382.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1365, allocations: 0 / 0.4923 GB, free: 6.781 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].