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: translateModel(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat") translateModel(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008343/0.0008343, allocations: 89.39 kB / 16.32 MB, free: 6.453 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.0008344/0.0008344, allocations: 176.2 kB / 17.21 MB, free: 6.328 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.311/1.311, allocations: 205.4 MB / 223.4 MB, free: 5.562 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.2845/0.2845, allocations: 38.05 MB / 309.7 MB, free: 8.941 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.0007508/0.0007509, allocations: 22.66 kB / 376.5 MB, free: 15.25 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.1182, allocations: 56.33 MB / 432.9 MB, free: 6.82 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat): time 0.002366/0.1206, allocations: 1.822 MB / 434.7 MB, free: 4.98 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002656/0.1233, allocations: 1.955 MB / 436.6 MB, free: 3.016 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.615e-05/0.1234, allocations: 0 / 436.6 MB, free: 3.016 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001083/0.1235, allocations: 15.91 kB / 436.6 MB, free: 3 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 9.979e-05/0.1236, allocations: 35.83 kB / 436.7 MB, free: 2.965 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001758/0.1254, allocations: 0.632 MB / 437.3 MB, free: 2.332 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001597/0.1255, allocations: 139.5 kB / 437.4 MB, free: 2.195 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.591e-05/0.1256, allocations: 7.984 kB / 437.5 MB, free: 2.188 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001154/0.1257, allocations: 39.84 kB / 437.5 MB, free: 2.148 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001094/0.1259, allocations: 63.75 kB / 437.6 MB, free: 2.086 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.249e-05/0.1259, allocations: 0 / 437.6 MB, free: 2.086 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001726/0.1276, allocations: 1.045 MB / 438.6 MB, free: 1.039 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.404e-05/0.1277, allocations: 31.89 kB / 438.6 MB, free: 1.008 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 4.431e-05/0.1277, allocations: 37.7 kB / 438.7 MB, free: 0.9648 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001018/0.1287, allocations: 0.9124 MB / 439.6 MB, free: 52 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.1288, allocations: 0 / 439.6 MB, free: 52 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1288, allocations: 4 kB / 439.6 MB, free: 48 kB / 366.1 MB Notification: Performance of Transformations before backend: time 3.677e-06/0.1288, allocations: 0 / 439.6 MB, free: 48 kB / 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.0006611/0.1294, allocations: 0.52 MB / 440.1 MB, free: 15.47 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.324e-05/0.1295, allocations: 12.03 kB / 440.1 MB, free: 15.46 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.664e-05/0.1295, allocations: 11.89 kB / 440.1 MB, free: 15.45 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001664/0.1297, allocations: 190.8 kB / 440.3 MB, free: 15.22 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.997e-06/0.1297, allocations: 0 / 440.3 MB, free: 15.22 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.208e-05/0.1297, allocations: 0 / 440.3 MB, free: 15.22 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001465/0.1299, allocations: 73.66 kB / 440.4 MB, free: 15.14 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.041e-05/0.1299, allocations: 3.953 kB / 440.4 MB, free: 15.14 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.073e-05/0.1299, allocations: 3.938 kB / 440.4 MB, free: 15.14 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.496e-06/0.1299, allocations: 0 / 440.4 MB, free: 15.14 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.124e-05/0.13, allocations: 47.97 kB / 440.4 MB, free: 15.09 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001554/0.1302, allocations: 177.5 kB / 440.6 MB, free: 14.87 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.402e-05/0.1303, allocations: 74.55 kB / 440.7 MB, free: 14.79 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.491e-05/0.1303, allocations: 56.86 kB / 440.7 MB, free: 14.73 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.626e-06/0.1303, allocations: 4 kB / 440.7 MB, free: 14.72 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.854e-05/0.1304, allocations: 30.56 kB / 440.8 MB, free: 14.68 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 3.426e-06/0.1304, allocations: 4 kB / 440.8 MB, free: 14.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0003561/0.1307, allocations: 227.4 kB / 441 MB, free: 14.45 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.359e-05/0.1308, allocations: 89.09 kB / 441.1 MB, free: 14.34 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001307/0.131, allocations: 154.1 kB / 441.2 MB, free: 14.18 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.353e-05/0.131, allocations: 25.7 kB / 441.3 MB, free: 14.15 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.771e-05/0.131, allocations: 96.38 kB / 441.4 MB, free: 14.05 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.957e-05/0.1311, allocations: 43.34 kB / 441.4 MB, free: 14.01 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.841e-06/0.1311, allocations: 7.938 kB / 441.4 MB, free: 14 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001188/0.1312, allocations: 322.8 kB / 441.7 MB, free: 13.68 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.683e-05/0.1313, allocations: 44 kB / 441.8 MB, free: 13.63 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.972e-05/0.1313, allocations: 39.97 kB / 441.8 MB, free: 13.59 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.775e-05/0.1314, allocations: 86.17 kB / 441.9 MB, free: 13.5 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.1315, allocations: 0 / 441.9 MB, free: 13.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001988/0.1317, allocations: 175.1 kB / 442.1 MB, free: 13.32 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.906e-05/0.1317, allocations: 53.59 kB / 442.1 MB, free: 13.26 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.369e-06/0.1317, allocations: 0 / 442.1 MB, free: 13.26 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.136e-05/0.1318, allocations: 0 / 442.1 MB, free: 13.26 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.126e-06/0.1318, allocations: 7.953 kB / 442.1 MB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.81e-06/0.1318, allocations: 0 / 442.1 MB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.351e-05/0.1318, allocations: 15.98 kB / 442.1 MB, free: 13.24 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.119e-05/0.1319, allocations: 4 kB / 442.1 MB, free: 13.23 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001217/0.132, allocations: 167.5 kB / 442.3 MB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.994e-05/0.132, allocations: 19.75 kB / 442.3 MB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.878e-05/0.132, allocations: 16.83 kB / 442.3 MB, free: 13.02 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-06/0.132, allocations: 0 / 442.3 MB, free: 13.02 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.1321, allocations: 3.953 kB / 442.3 MB, free: 13.02 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.1321, allocations: 0 / 442.3 MB, free: 13.02 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001285/0.1322, allocations: 181.6 kB / 442.5 MB, free: 12.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.1322, allocations: 4 kB / 442.5 MB, free: 12.79 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.91e-07/0.1322, allocations: 0 / 442.5 MB, free: 12.79 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.1322, allocations: 0 / 442.5 MB, free: 12.79 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.226e-05/0.1322, allocations: 4 kB / 442.5 MB, free: 12.78 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.1322, allocations: 0 / 442.5 MB, free: 12.78 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.1322, allocations: 4 kB / 442.5 MB, free: 12.78 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003476/0.1326, allocations: 306.4 kB / 442.8 MB, free: 12.45 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.528e-05/0.1327, allocations: 96.86 kB / 442.9 MB, free: 12.34 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.221e-05/0.1327, allocations: 8.031 kB / 442.9 MB, free: 12.33 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.394e-05/0.1327, allocations: 0 / 442.9 MB, free: 12.33 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.37e-05/0.1328, allocations: 4 kB / 442.9 MB, free: 12.33 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.234e-05/0.1328, allocations: 7.984 kB / 442.9 MB, free: 12.32 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.26e-05/0.1329, allocations: 111.2 kB / 443.1 MB, free: 12.21 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1329, allocations: 0 / 443.1 MB, free: 12.21 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000823/0.1337, allocations: 327.9 kB / 443.4 MB, free: 11.89 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008828/0.1346, allocations: 358.9 kB / 443.7 MB, free: 11.53 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003473/0.1349, allocations: 343.2 kB / 444.1 MB, free: 11.18 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.135, allocations: 3.938 kB / 444.1 MB, free: 11.18 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001972/0.1352, allocations: 255.3 kB / 444.3 MB, free: 10.92 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002216/0.1354, allocations: 15.98 kB / 444.3 MB, free: 10.9 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004908/0.1359, allocations: 377.4 kB / 444.7 MB, free: 10.51 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002717/0.1362, allocations: 0.716 MB / 445.4 MB, free: 9.766 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.924e-05/0.1362, allocations: 3.984 kB / 445.4 MB, free: 9.762 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.342e-05/0.1362, allocations: 11.44 kB / 445.4 MB, free: 9.75 MB / 382.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1362, allocations: 0 / 445.4 MB, free: 9.75 MB / 382.1 MB [CodegenCFunctions.tpl:5416:13-5416:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].