Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_latest_PowerSystems_Examples_AC3ph_Precalculation_EqCircFromTransDat",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat,fileNamePrefix="PowerSystems_latest_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.001431/0.001431, allocations: 102.8 kB / 16.92 MB, free: 6.191 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.00178/0.00178, allocations: 191.3 kB / 17.85 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.395/1.395, allocations: 222.9 MB / 241.5 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1736/0.1736, allocations: 38.04 MB / 329.7 MB, free: 8.859 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001302/0.001302, allocations: 67.22 kB / 398.9 MB, free: 34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1107, allocations: 58.06 MB / 457 MB, free: 7.992 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat): time 0.004365/0.1152, allocations: 2.137 MB / 459.1 MB, free: 5.832 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00355/0.1187, allocations: 2.053 MB / 461.2 MB, free: 3.77 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.898e-05/0.1189, allocations: 0 / 461.2 MB, free: 3.77 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001477/0.119, allocations: 11.92 kB / 461.2 MB, free: 3.758 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001278/0.1192, allocations: 43.75 kB / 461.2 MB, free: 3.715 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002242/0.1214, allocations: 0.8305 MB / 462.1 MB, free: 2.883 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001777/0.1216, allocations: 103.6 kB / 462.2 MB, free: 2.781 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.163e-05/0.1217, allocations: 0 / 462.2 MB, free: 2.781 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001069/0.1218, allocations: 39.78 kB / 462.2 MB, free: 2.742 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.733e-05/0.1219, allocations: 59.8 kB / 462.2 MB, free: 2.684 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.374e-05/0.1219, allocations: 0 / 462.2 MB, free: 2.684 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001679/0.1236, allocations: 1.232 MB / 463.5 MB, free: 1.449 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.124e-05/0.1237, allocations: 35.91 kB / 463.5 MB, free: 1.414 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.479e-05/0.1237, allocations: 35.73 kB / 463.6 MB, free: 1.379 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00134/0.1251, allocations: 1.329 MB / 464.9 MB, free: 48 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.1251, allocations: 0 / 464.9 MB, free: 48 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.1251, allocations: 0 / 464.9 MB, free: 48 kB / 334.1 MB Notification: Performance of Transformations before backend: time 5.47e-06/0.1251, allocations: 0 / 464.9 MB, free: 48 kB / 334.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.0006684/0.1258, allocations: 0.5357 MB / 465.4 MB, free: 15.46 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.285e-05/0.1258, allocations: 11.89 kB / 465.4 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.994e-05/0.1259, allocations: 70.44 kB / 465.5 MB, free: 15.37 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.723e-05/0.126, allocations: 16.75 kB / 465.5 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001989/0.1262, allocations: 204 kB / 465.7 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.639e-05/0.1262, allocations: 11.94 kB / 465.7 MB, free: 15.1 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.524e-05/0.1262, allocations: 4 kB / 465.7 MB, free: 15.1 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002201/0.1265, allocations: 114.3 kB / 465.8 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.1265, allocations: 4 kB / 465.8 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.578e-05/0.1265, allocations: 4 kB / 465.8 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/0.1265, allocations: 0 / 465.8 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001183/0.1266, allocations: 80.11 kB / 465.9 MB, free: 14.89 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000406/0.1271, allocations: 360.9 kB / 466.3 MB, free: 14.49 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001029/0.1272, allocations: 74.48 kB / 466.3 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.114e-05/0.1273, allocations: 60.86 kB / 466.4 MB, free: 14.35 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.765e-06/0.1273, allocations: 4 kB / 466.4 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.454e-05/0.1273, allocations: 34.56 kB / 466.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.252e-06/0.1273, allocations: 0 / 466.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0003611/0.1277, allocations: 230.2 kB / 466.7 MB, free: 14.07 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.373e-05/0.1277, allocations: 93.03 kB / 466.8 MB, free: 13.96 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001191/0.1279, allocations: 153 kB / 466.9 MB, free: 13.8 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.44e-05/0.1279, allocations: 29.7 kB / 466.9 MB, free: 13.77 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.285e-05/0.128, allocations: 116 kB / 467.1 MB, free: 13.65 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.269e-05/0.128, allocations: 51.2 kB / 467.1 MB, free: 13.6 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.507e-05/0.1281, allocations: 25.7 kB / 467.1 MB, free: 13.57 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.1282, allocations: 322.8 kB / 467.4 MB, free: 13.24 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.766e-05/0.1282, allocations: 31.98 kB / 467.5 MB, free: 13.21 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.786e-05/0.1283, allocations: 47.97 kB / 467.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000171/0.1285, allocations: 176.1 kB / 467.7 MB, free: 12.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.616e-06/0.1285, allocations: 0 / 467.7 MB, free: 12.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002117/0.1287, allocations: 179.2 kB / 467.9 MB, free: 12.79 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.887e-05/0.1288, allocations: 53.69 kB / 467.9 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.1288, allocations: 0 / 467.9 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.264e-05/0.1288, allocations: 0 / 467.9 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.11e-07/0.1288, allocations: 0 / 467.9 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-06/0.1288, allocations: 0 / 467.9 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.694e-05/0.1289, allocations: 7.906 kB / 467.9 MB, free: 12.72 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.334e-05/0.1289, allocations: 4 kB / 467.9 MB, free: 12.72 MB / 350.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.0001433/0.129, allocations: 187.4 kB / 468.1 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.55e-05/0.1291, allocations: 7.906 kB / 468.1 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.804e-05/0.1291, allocations: 16.84 kB / 468.1 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.312e-06/0.1291, allocations: 0 / 468.1 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.1291, allocations: 4 kB / 468.1 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.1291, allocations: 3.984 kB / 468.1 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001924/0.1293, allocations: 205.5 kB / 468.3 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.1293, allocations: 0 / 468.3 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.1294, allocations: 0 / 468.3 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.212e-06/0.1294, allocations: 4 kB / 468.4 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.373e-05/0.1294, allocations: 7.984 kB / 468.4 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.1294, allocations: 0 / 468.4 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.1294, allocations: 0 / 468.4 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003853/0.1298, allocations: 380.2 kB / 468.7 MB, free: 11.83 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.098e-05/0.1298, allocations: 92.86 kB / 468.8 MB, free: 11.72 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.414e-05/0.1299, allocations: 3.984 kB / 468.8 MB, free: 11.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.794e-05/0.1299, allocations: 4 kB / 468.8 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.348e-05/0.13, allocations: 4 kB / 468.8 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.125e-05/0.13, allocations: 4 kB / 468.8 MB, free: 11.71 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.922e-05/0.1301, allocations: 113.7 kB / 468.9 MB, free: 11.6 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1301, allocations: 4.031 kB / 469 MB, free: 11.59 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008597/0.1309, allocations: 335.9 kB / 469.3 MB, free: 11.27 MB / 350.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.001573/0.1325, allocations: 1.289 MB / 470.6 MB, free: 9.945 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003595/0.1329, allocations: 339.3 kB / 470.9 MB, free: 9.602 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.1329, allocations: 0 / 470.9 MB, free: 9.602 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002051/0.1331, allocations: 251.3 kB / 471.1 MB, free: 9.344 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003573/0.1335, allocations: 20.92 kB / 471.2 MB, free: 9.324 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002283/0.1358, allocations: 2.297 MB / 473.5 MB, free: 6.945 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002612/0.1361, allocations: 0.7353 MB / 474.2 MB, free: 6.184 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.602e-05/0.1361, allocations: 0 / 474.2 MB, free: 6.184 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.249e-05/0.1361, allocations: 35.42 kB / 474.2 MB, free: 6.148 MB / 350.1 MB Notification: Performance of SimCode: time 3.8e-07/0.1361, allocations: 0 / 474.2 MB, free: 6.148 MB / 350.1 MB [CodegenCFunctions.tpl:5633:13-5633:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].