Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3.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.Z_matrixTrDat3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008824/0.0008822, allocations: 88.39 kB / 16.31 MB, free: 6.449 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.0008932/0.0008933, allocations: 183.1 kB / 17.21 MB, free: 6.316 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.337/1.337, allocations: 205.4 MB / 223.4 MB, free: 5.301 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.2994/0.2994, allocations: 38.06 MB / 309.7 MB, free: 9.039 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.0005088/0.0005088, allocations: 12 kB / 376.5 MB, free: 15.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09728/0.0978, allocations: 56.35 MB / 432.9 MB, free: 6.688 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3): time 0.002408/0.1003, allocations: 1.76 MB / 434.6 MB, free: 4.91 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002765/0.1031, allocations: 1.955 MB / 436.6 MB, free: 2.945 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.365e-05/0.1031, allocations: 0 / 436.6 MB, free: 2.945 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001179/0.1033, allocations: 11.92 kB / 436.6 MB, free: 2.934 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 8.697e-05/0.1034, allocations: 23.89 kB / 436.6 MB, free: 2.91 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001995/0.1054, allocations: 0.6514 MB / 437.3 MB, free: 2.258 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001542/0.1056, allocations: 107.6 kB / 437.4 MB, free: 2.152 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.683e-05/0.1056, allocations: 4.172 kB / 437.4 MB, free: 2.148 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001039/0.1057, allocations: 31.86 kB / 437.4 MB, free: 2.117 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001057/0.1059, allocations: 59.81 kB / 437.5 MB, free: 2.059 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.756e-05/0.1059, allocations: 3.938 kB / 437.5 MB, free: 2.055 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001904/0.1078, allocations: 1.057 MB / 438.5 MB, free: 0.9961 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.657e-05/0.1079, allocations: 43.89 kB / 438.6 MB, free: 0.9531 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 5.06e-05/0.1079, allocations: 41.58 kB / 438.6 MB, free: 0.9062 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001239/0.1092, allocations: 0.9398 MB / 439.5 MB, free: 15.96 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.157e-06/0.1092, allocations: 4 kB / 439.5 MB, free: 15.96 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1092, allocations: 0 / 439.5 MB, free: 15.96 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.801e-06/0.1092, allocations: 0 / 439.5 MB, free: 15.96 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.0008126/0.11, allocations: 0.5939 MB / 440.1 MB, free: 15.31 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.676e-05/0.1101, allocations: 11.97 kB / 440.2 MB, free: 15.3 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.978e-05/0.1101, allocations: 15.72 kB / 440.2 MB, free: 15.29 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002043/0.1104, allocations: 198.8 kB / 440.4 MB, free: 15.05 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.161e-05/0.1104, allocations: 4 kB / 440.4 MB, free: 15.05 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.169e-05/0.1104, allocations: 0 / 440.4 MB, free: 15.05 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002247/0.1106, allocations: 146.5 kB / 440.5 MB, free: 14.9 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/0.1106, allocations: 3.953 kB / 440.5 MB, free: 14.89 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.149e-05/0.1107, allocations: 0 / 440.5 MB, free: 14.89 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-06/0.1107, allocations: 0 / 440.5 MB, free: 14.89 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001098/0.1108, allocations: 96.28 kB / 440.6 MB, free: 14.8 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001902/0.111, allocations: 210 kB / 440.8 MB, free: 14.55 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001877/0.1112, allocations: 162.8 kB / 441 MB, free: 14.38 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001448/0.1113, allocations: 145.2 kB / 441.1 MB, free: 14.23 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.218e-05/0.1114, allocations: 7.984 kB / 441.1 MB, free: 14.23 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.762e-05/0.1114, allocations: 34.5 kB / 441.2 MB, free: 14.18 MB / 382.1 MB Notification: Performance of pre-optimization done (n=40): time 1.132e-06/0.1114, allocations: 0 / 441.2 MB, free: 14.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=40): time 0.0006296/0.112, allocations: 0.4919 MB / 441.6 MB, free: 13.68 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.801e-05/0.1121, allocations: 105.1 kB / 441.8 MB, free: 13.56 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001403/0.1123, allocations: 170.4 kB / 441.9 MB, free: 13.38 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.38e-05/0.1123, allocations: 25.7 kB / 441.9 MB, free: 13.35 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.684e-05/0.1124, allocations: 108.8 kB / 442 MB, free: 13.24 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001039/0.1125, allocations: 130.1 kB / 442.2 MB, free: 13.11 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.751e-06/0.1125, allocations: 0 / 442.2 MB, free: 13.11 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001222/0.1126, allocations: 330.8 kB / 442.5 MB, free: 12.78 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001016/0.1127, allocations: 99.95 kB / 442.6 MB, free: 12.68 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001085/0.1128, allocations: 95.95 kB / 442.7 MB, free: 12.59 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001688/0.113, allocations: 186.9 kB / 442.9 MB, free: 12.4 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.113, allocations: 4.031 kB / 442.9 MB, free: 12.4 MB / 382.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000365/0.1134, allocations: 338.9 kB / 443.2 MB, free: 12.05 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.398e-05/0.1135, allocations: 89.62 kB / 443.3 MB, free: 11.96 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.1135, allocations: 0 / 443.3 MB, free: 11.96 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.263e-05/0.1135, allocations: 0 / 443.3 MB, free: 11.96 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.455e-06/0.1135, allocations: 3.953 kB / 443.3 MB, free: 11.96 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.05e-06/0.1135, allocations: 0 / 443.3 MB, free: 11.96 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.709e-05/0.1136, allocations: 19.75 kB / 443.3 MB, free: 11.94 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.159e-05/0.1137, allocations: 8 kB / 443.3 MB, free: 11.93 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.0002042/0.1139, allocations: 239.5 kB / 443.6 MB, free: 11.68 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.307e-05/0.1139, allocations: 23.72 kB / 443.6 MB, free: 11.66 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.266e-05/0.114, allocations: 10.66 kB / 443.6 MB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.114, allocations: 4 kB / 443.6 MB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.947e-06/0.114, allocations: 11.94 kB / 443.6 MB, free: 11.63 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.114, allocations: 0 / 443.6 MB, free: 11.63 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002035/0.1142, allocations: 241.3 kB / 443.8 MB, free: 11.34 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.1142, allocations: 0 / 443.8 MB, free: 11.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.11e-07/0.1142, allocations: 0 / 443.8 MB, free: 11.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.1142, allocations: 0 / 443.8 MB, free: 11.34 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.314e-05/0.1143, allocations: 8 kB / 443.9 MB, free: 11.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.386e-06/0.1143, allocations: 7.938 kB / 443.9 MB, free: 11.33 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.1143, allocations: 3.938 kB / 443.9 MB, free: 11.32 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009801/0.1153, allocations: 0.9121 MB / 444.8 MB, free: 10.39 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.515e-05/0.1153, allocations: 96.77 kB / 444.9 MB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.324e-05/0.1154, allocations: 11.98 kB / 444.9 MB, free: 10.26 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.859e-05/0.1154, allocations: 4 kB / 444.9 MB, free: 10.26 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.666e-05/0.1155, allocations: 4 kB / 444.9 MB, free: 10.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.952e-05/0.1155, allocations: 8 kB / 444.9 MB, free: 10.25 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.803e-05/0.1156, allocations: 132.3 kB / 445 MB, free: 10.12 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1156, allocations: 0 / 445 MB, free: 10.12 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001067/0.1167, allocations: 355.9 kB / 445.4 MB, free: 9.77 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.001152/0.1178, allocations: 363 kB / 445.7 MB, free: 9.402 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001302/0.1191, allocations: 1.604 MB / 447.3 MB, free: 7.785 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.1191, allocations: 0 / 447.3 MB, free: 7.785 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009644/0.1201, allocations: 1.37 MB / 448.7 MB, free: 6.402 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002428/0.1204, allocations: 16 kB / 448.7 MB, free: 6.387 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009299/0.1213, allocations: 0.731 MB / 449.5 MB, free: 5.633 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003214/0.1216, allocations: 0.7559 MB / 450.2 MB, free: 4.852 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.204e-05/0.1217, allocations: 0 / 450.2 MB, free: 4.852 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.467e-05/0.1217, allocations: 11.44 kB / 450.2 MB, free: 4.84 MB / 382.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1217, allocations: 0 / 450.2 MB, free: 4.84 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].