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.001258/0.001258, allocations: 108.9 kB / 17.06 MB, free: 5.949 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.001257/0.001257, allocations: 194.8 kB / 18 MB, free: 5.039 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.601/1.601, allocations: 205.1 MB / 223.9 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1867/0.1867, allocations: 37.98 MB / 309.2 MB, free: 5.938 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.001413/0.001413, allocations: 59.91 kB / 431.4 MB, free: 16.12 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.106, allocations: 55.25 MB / 486.6 MB, free: 8.816 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat): time 0.004279/0.1103, allocations: 2.149 MB / 488.8 MB, free: 6.645 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003396/0.1137, allocations: 2.089 MB / 490.9 MB, free: 4.543 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.634e-05/0.1138, allocations: 4 kB / 490.9 MB, free: 4.539 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001463/0.114, allocations: 7.922 kB / 490.9 MB, free: 4.531 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000136/0.1142, allocations: 47.75 kB / 490.9 MB, free: 4.484 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.002679/0.1169, allocations: 0.8135 MB / 491.7 MB, free: 3.672 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001831/0.1171, allocations: 99.61 kB / 491.8 MB, free: 3.574 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.431e-05/0.1171, allocations: 4 kB / 491.8 MB, free: 3.57 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.772e-05/0.1172, allocations: 43.83 kB / 491.9 MB, free: 3.527 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001032/0.1173, allocations: 51.77 kB / 491.9 MB, free: 3.477 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.592e-05/0.1174, allocations: 4 kB / 491.9 MB, free: 3.473 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002221/0.1196, allocations: 1.388 MB / 493.3 MB, free: 2.082 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.307e-05/0.1197, allocations: 35.89 kB / 493.4 MB, free: 2.047 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 5.847e-05/0.1197, allocations: 39.73 kB / 493.4 MB, free: 2.008 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002323/0.1221, allocations: 1.318 MB / 494.7 MB, free: 0.6875 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.1221, allocations: 3.938 kB / 494.7 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1221, allocations: 0 / 494.7 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.212e-06/0.1221, allocations: 0 / 494.7 MB, free: 0.6836 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.0009298/0.123, allocations: 0.5435 MB / 495.3 MB, free: 88 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.723e-05/0.1231, allocations: 19.83 kB / 495.3 MB, free: 68 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001044/0.1232, allocations: 66.44 kB / 495.3 MB, free: 15.99 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.148e-05/0.1233, allocations: 16.75 kB / 495.4 MB, free: 15.97 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002259/0.1235, allocations: 199.9 kB / 495.6 MB, free: 15.74 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.942e-05/0.1235, allocations: 11.88 kB / 495.6 MB, free: 15.73 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.135e-05/0.1236, allocations: 7.984 kB / 495.6 MB, free: 15.72 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002367/0.1238, allocations: 122.3 kB / 495.7 MB, free: 15.6 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.1238, allocations: 0 / 495.7 MB, free: 15.6 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.258e-05/0.1239, allocations: 4 kB / 495.7 MB, free: 15.59 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.1239, allocations: 0 / 495.7 MB, free: 15.59 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001193/0.124, allocations: 76.19 kB / 495.8 MB, free: 15.52 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004776/0.1245, allocations: 356.9 kB / 496.1 MB, free: 15.12 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001132/0.1246, allocations: 82.42 kB / 496.2 MB, free: 15.03 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.943e-05/0.1247, allocations: 64.86 kB / 496.3 MB, free: 14.96 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.498e-06/0.1247, allocations: 0 / 496.3 MB, free: 14.96 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.041e-05/0.1248, allocations: 34.56 kB / 496.3 MB, free: 14.92 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.082e-06/0.1248, allocations: 4 kB / 496.3 MB, free: 14.92 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004275/0.1252, allocations: 219.1 kB / 496.5 MB, free: 14.69 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.214e-05/0.1253, allocations: 89.09 kB / 496.6 MB, free: 14.59 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001882/0.1255, allocations: 158 kB / 496.8 MB, free: 14.42 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.686e-05/0.1255, allocations: 25.7 kB / 496.8 MB, free: 14.39 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001444/0.1256, allocations: 112 kB / 496.9 MB, free: 14.28 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.321e-05/0.1257, allocations: 43.27 kB / 496.9 MB, free: 14.23 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.248e-05/0.1257, allocations: 29.7 kB / 497 MB, free: 14.2 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001431/0.1259, allocations: 326.9 kB / 497.3 MB, free: 13.87 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.071e-05/0.126, allocations: 35.98 kB / 497.3 MB, free: 13.84 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001285/0.1261, allocations: 39.97 kB / 497.4 MB, free: 13.8 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000174/0.1263, allocations: 172.3 kB / 497.5 MB, free: 13.61 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.1263, allocations: 0 / 497.5 MB, free: 13.61 MB / 382.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002231/0.1265, allocations: 179.2 kB / 497.7 MB, free: 13.43 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.036e-05/0.1266, allocations: 49.67 kB / 497.7 MB, free: 13.37 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.079e-05/0.1266, allocations: 0 / 497.7 MB, free: 13.37 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.1266, allocations: 7.875 kB / 497.8 MB, free: 13.36 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.21e-07/0.1266, allocations: 4.062 kB / 497.8 MB, free: 13.36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.973e-06/0.1266, allocations: 4 kB / 497.8 MB, free: 13.36 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.214e-05/0.1267, allocations: 11.84 kB / 497.8 MB, free: 13.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.28e-05/0.1267, allocations: 4 kB / 497.8 MB, free: 13.34 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.0001333/0.1269, allocations: 175.4 kB / 498 MB, free: 13.15 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.215e-05/0.1269, allocations: 15.89 kB / 498 MB, free: 13.14 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.723e-05/0.127, allocations: 12.84 kB / 498 MB, free: 13.12 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.127, allocations: 0 / 498 MB, free: 13.12 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-06/0.127, allocations: 0 / 498 MB, free: 13.12 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.127, allocations: 7.938 kB / 498 MB, free: 13.12 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002298/0.1272, allocations: 213.5 kB / 498.2 MB, free: 12.86 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.1272, allocations: 0 / 498.2 MB, free: 12.86 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.91e-07/0.1273, allocations: 0 / 498.2 MB, free: 12.86 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.1273, allocations: 3.984 kB / 498.2 MB, free: 12.86 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.498e-05/0.1273, allocations: 7.984 kB / 498.2 MB, free: 12.85 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.1273, allocations: 0 / 498.2 MB, free: 12.85 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.1273, allocations: 4 kB / 498.2 MB, free: 12.84 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003829/0.1277, allocations: 369.4 kB / 498.6 MB, free: 12.46 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000113/0.1278, allocations: 88.86 kB / 498.7 MB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.974e-05/0.1278, allocations: 4 kB / 498.7 MB, free: 12.35 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.933e-05/0.1279, allocations: 7.984 kB / 498.7 MB, free: 12.34 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.487e-05/0.1279, allocations: 0 / 498.7 MB, free: 12.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.522e-05/0.128, allocations: 12 kB / 498.7 MB, free: 12.33 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.546e-05/0.128, allocations: 111.2 kB / 498.8 MB, free: 12.22 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.128, allocations: 0 / 498.8 MB, free: 12.22 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001076/0.1291, allocations: 327.9 kB / 499.1 MB, free: 11.9 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.001995/0.1311, allocations: 1.292 MB / 0.4887 GB, free: 10.58 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003962/0.1315, allocations: 339.2 kB / 0.489 GB, free: 10.23 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.071e-06/0.1316, allocations: 96 / 0.489 GB, free: 10.23 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002126/0.1318, allocations: 255.3 kB / 0.4892 GB, free: 9.973 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003789/0.1322, allocations: 23.89 kB / 0.4893 GB, free: 9.949 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003061/0.1352, allocations: 2.313 MB / 0.4915 GB, free: 7.551 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004268/0.1357, allocations: 0.7236 MB / 0.4922 GB, free: 6.801 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 2.781e-05/0.1357, allocations: 7.984 kB / 0.4922 GB, free: 6.793 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.691e-05/0.1358, allocations: 39.45 kB / 0.4923 GB, free: 6.754 MB / 382.1 MB Notification: Performance of SimCode: time 6.11e-07/0.1358, allocations: 0 / 0.4923 GB, free: 6.754 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].