Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1.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_matrixTrDat1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001257/0.001256, allocations: 93.23 kB / 16.3 MB, free: 6.133 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.001299/0.001299, allocations: 179.4 kB / 17.19 MB, free: 6.016 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.525/1.525, allocations: 205.4 MB / 223.4 MB, free: 13.17 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.179/0.179, allocations: 38.04 MB / 309.7 MB, free: 6.121 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.0006979/0.0006979, allocations: 12 kB / 376.5 MB, free: 3.211 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2883/0.289, allocations: 56.33 MB / 432.8 MB, free: 18.85 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1): time 0.002141/0.2912, allocations: 1.761 MB / 434.6 MB, free: 17.07 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002529/0.2937, allocations: 1.928 MB / 436.5 MB, free: 15.13 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.761e-05/0.2938, allocations: 3.938 kB / 436.5 MB, free: 15.13 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001665/0.294, allocations: 15.97 kB / 436.5 MB, free: 15.11 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.275e-05/0.294, allocations: 15.92 kB / 436.5 MB, free: 15.1 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001448/0.2955, allocations: 0.5954 MB / 437.1 MB, free: 14.5 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 6.614e-05/0.2956, allocations: 43.88 kB / 437.2 MB, free: 14.46 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.47e-05/0.2956, allocations: 4.172 kB / 437.2 MB, free: 14.45 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.348e-05/0.2957, allocations: 19.92 kB / 437.2 MB, free: 14.43 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.873e-05/0.2958, allocations: 27.91 kB / 437.2 MB, free: 14.41 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.102e-05/0.2958, allocations: 4 kB / 437.2 MB, free: 14.4 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001093/0.2969, allocations: 0.9827 MB / 438.2 MB, free: 13.42 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.219e-05/0.2969, allocations: 23.94 kB / 438.2 MB, free: 13.39 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.396e-05/0.297, allocations: 33.64 kB / 438.3 MB, free: 13.36 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007788/0.2977, allocations: 0.9102 MB / 439.2 MB, free: 12.45 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.345e-06/0.2978, allocations: 0 / 439.2 MB, free: 12.45 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2978, allocations: 0 / 439.2 MB, free: 12.45 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.499e-06/0.2978, allocations: 0 / 439.2 MB, free: 12.45 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0005145/0.2983, allocations: 0.5162 MB / 439.7 MB, free: 11.88 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.788e-05/0.2983, allocations: 8.031 kB / 439.7 MB, free: 11.87 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.019e-05/0.2984, allocations: 11.91 kB / 439.7 MB, free: 11.86 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001517/0.2985, allocations: 190.8 kB / 439.9 MB, free: 11.63 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.207e-06/0.2986, allocations: 4 kB / 439.9 MB, free: 11.62 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.473e-05/0.2986, allocations: 0 / 439.9 MB, free: 11.62 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001312/0.2987, allocations: 69.61 kB / 440 MB, free: 11.55 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.424e-06/0.2987, allocations: 0 / 440 MB, free: 11.55 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.134e-05/0.2988, allocations: 0 / 440 MB, free: 11.55 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.031e-06/0.2988, allocations: 3.953 kB / 440 MB, free: 11.55 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.758e-05/0.2988, allocations: 31.98 kB / 440 MB, free: 11.52 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001299/0.299, allocations: 173.7 kB / 440.2 MB, free: 11.3 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.011e-05/0.299, allocations: 54.56 kB / 440.2 MB, free: 11.23 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.006e-05/0.299, allocations: 3.984 kB / 440.2 MB, free: 11.23 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.134e-05/0.2991, allocations: 34.5 kB / 440.3 MB, free: 11.19 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 8.31e-07/0.2991, allocations: 4.031 kB / 440.3 MB, free: 11.18 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0002937/0.2994, allocations: 276.4 kB / 440.5 MB, free: 10.89 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.619e-05/0.2994, allocations: 89.11 kB / 440.6 MB, free: 10.78 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.943e-05/0.2995, allocations: 149 kB / 440.8 MB, free: 10.63 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.002e-05/0.2995, allocations: 25.7 kB / 440.8 MB, free: 10.6 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.008e-05/0.2996, allocations: 96.12 kB / 440.9 MB, free: 10.5 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.47e-05/0.2996, allocations: 35.45 kB / 440.9 MB, free: 10.46 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.058e-06/0.2996, allocations: 3.938 kB / 440.9 MB, free: 10.46 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.494e-05/0.2997, allocations: 322.8 kB / 441.2 MB, free: 10.14 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.691e-05/0.2997, allocations: 31.98 kB / 441.3 MB, free: 10.11 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.103e-05/0.2998, allocations: 27.98 kB / 441.3 MB, free: 10.08 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.012e-05/0.2998, allocations: 85.64 kB / 441.4 MB, free: 9.988 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.2998, allocations: 0 / 441.4 MB, free: 9.988 MB / 318.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.00013/0.3, allocations: 151.3 kB / 441.5 MB, free: 9.828 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.14e-05/0.3, allocations: 49.67 kB / 441.6 MB, free: 9.773 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.409e-06/0.3, allocations: 0 / 441.6 MB, free: 9.773 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.197e-05/0.3, allocations: 4 kB / 441.6 MB, free: 9.77 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.71e-07/0.3, allocations: 0 / 441.6 MB, free: 9.77 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/0.3001, allocations: 0 / 441.6 MB, free: 9.77 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.538e-05/0.3001, allocations: 15.83 kB / 441.6 MB, free: 9.754 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.104e-05/0.3001, allocations: 4 kB / 441.6 MB, free: 9.75 MB / 318.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 8.893e-05/0.3002, allocations: 167.5 kB / 441.8 MB, free: 9.57 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.532e-05/0.3002, allocations: 11.81 kB / 441.8 MB, free: 9.559 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.363e-05/0.3003, allocations: 12.7 kB / 441.8 MB, free: 9.551 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.21e-07/0.3003, allocations: 0 / 441.8 MB, free: 9.551 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.447e-06/0.3003, allocations: 0 / 441.8 MB, free: 9.551 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.844e-06/0.3003, allocations: 0 / 441.8 MB, free: 9.551 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.943e-05/0.3004, allocations: 177.6 kB / 442 MB, free: 9.328 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.3004, allocations: 0 / 442 MB, free: 9.328 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.3004, allocations: 4 kB / 442 MB, free: 9.324 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.3004, allocations: 0 / 442 MB, free: 9.324 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.18e-05/0.3004, allocations: 8 kB / 442 MB, free: 9.316 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.3004, allocations: 3.984 kB / 442 MB, free: 9.312 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.3004, allocations: 3.938 kB / 442 MB, free: 9.309 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002325/0.3007, allocations: 282.6 kB / 442.3 MB, free: 9.008 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.582e-05/0.3007, allocations: 88.95 kB / 442.3 MB, free: 8.902 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.965e-05/0.3007, allocations: 0 / 442.3 MB, free: 8.902 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.61e-05/0.3008, allocations: 4 kB / 442.3 MB, free: 8.898 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.374e-05/0.3008, allocations: 4 kB / 442.4 MB, free: 8.895 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.546e-06/0.3008, allocations: 8.031 kB / 442.4 MB, free: 8.887 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.225e-05/0.3008, allocations: 107.2 kB / 442.5 MB, free: 8.781 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3009, allocations: 3.938 kB / 442.5 MB, free: 8.777 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006068/0.3015, allocations: 316 kB / 442.8 MB, free: 8.469 MB / 318.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.0006906/0.3022, allocations: 353.4 kB / 443.1 MB, free: 8.113 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002592/0.3024, allocations: 303.2 kB / 443.4 MB, free: 7.805 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.3024, allocations: 3.938 kB / 443.4 MB, free: 7.801 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001286/0.3026, allocations: 227.3 kB / 443.6 MB, free: 7.566 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000168/0.3028, allocations: 15.45 kB / 443.7 MB, free: 7.555 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003976/0.3032, allocations: 331.1 kB / 444 MB, free: 7.207 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001442/0.3033, allocations: 0.7082 MB / 444.7 MB, free: 6.473 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.06e-05/0.3033, allocations: 0 / 444.7 MB, free: 6.473 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.708e-06/0.3033, allocations: 11.44 kB / 444.7 MB, free: 6.461 MB / 318.1 MB Notification: Performance of SimCode: time 2.11e-07/0.3034, allocations: 3.938 kB / 444.7 MB, free: 6.457 MB / 318.1 MB [CodegenCFunctions.tpl:5389:13-5389:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2]. [CodegenCFunctions.tpl:7266:14-7266:14:writable] Error: Template error: Code generation does not support multiple iterators: array(abs((v[:,fill(1, n)] - v[:,2:n + 1])[$i1, $i2]) for $i2 in 1:max(n + 1 - 2 + 1, 0), $i1 in 1:n).