Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0.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_matrixTrDat0,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000894/0.0008941, allocations: 95.34 kB / 16.3 MB, free: 5.992 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.0009058/0.000906, allocations: 181.3 kB / 17.19 MB, free: 5.906 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.494/1.494, 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.2051/0.2051, allocations: 38.03 MB / 309.7 MB, free: 6.148 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.0005236/0.0005236, allocations: 19.98 kB / 376.5 MB, free: 3.219 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2834/0.2839, allocations: 56.32 MB / 432.8 MB, free: 18.88 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0): time 0.002023/0.286, allocations: 1.765 MB / 434.6 MB, free: 17.09 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002278/0.2883, allocations: 1.928 MB / 436.5 MB, free: 15.15 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.651e-05/0.2884, allocations: 0 / 436.5 MB, free: 15.15 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002454/0.2886, allocations: 15.92 kB / 436.5 MB, free: 15.14 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.532e-05/0.2887, allocations: 19.91 kB / 436.5 MB, free: 15.12 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001301/0.29, allocations: 0.5891 MB / 437.1 MB, free: 14.52 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 6.749e-05/0.2901, allocations: 39.92 kB / 437.2 MB, free: 14.48 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.047e-05/0.2901, allocations: 8.188 kB / 437.2 MB, free: 14.48 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.485e-05/0.2902, allocations: 27.84 kB / 437.2 MB, free: 14.45 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.592e-05/0.2902, allocations: 27.91 kB / 437.2 MB, free: 14.42 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.033e-05/0.2903, allocations: 0 / 437.2 MB, free: 14.42 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001045/0.2913, allocations: 0.9788 MB / 438.2 MB, free: 13.44 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.917e-05/0.2914, allocations: 19.92 kB / 438.2 MB, free: 13.42 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.914e-05/0.2914, allocations: 29.7 kB / 438.2 MB, free: 13.39 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007514/0.2922, allocations: 0.9063 MB / 439.2 MB, free: 12.48 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.2922, allocations: 4 kB / 439.2 MB, free: 12.48 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.2922, allocations: 0 / 439.2 MB, free: 12.48 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.649e-06/0.2922, allocations: 0 / 439.2 MB, free: 12.48 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004588/0.2926, allocations: 0.4929 MB / 439.6 MB, free: 11.93 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.2927, allocations: 12.03 kB / 439.7 MB, free: 11.92 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.114e-05/0.2927, allocations: 7.906 kB / 439.7 MB, free: 11.91 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001502/0.2929, allocations: 192.8 kB / 439.9 MB, free: 11.68 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.556e-06/0.2929, allocations: 4 kB / 439.9 MB, free: 11.68 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.317e-05/0.2929, allocations: 0 / 439.9 MB, free: 11.68 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000122/0.2931, allocations: 53.67 kB / 439.9 MB, free: 11.62 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.115e-06/0.2931, allocations: 0 / 439.9 MB, free: 11.62 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.119e-05/0.2931, allocations: 0 / 439.9 MB, free: 11.62 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.162e-06/0.2931, allocations: 3.953 kB / 439.9 MB, free: 11.62 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.954e-05/0.2931, allocations: 23.98 kB / 439.9 MB, free: 11.59 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001226/0.2933, allocations: 169.7 kB / 440.1 MB, free: 11.38 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.702e-05/0.2933, allocations: 46.52 kB / 440.2 MB, free: 11.32 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.766e-06/0.2934, allocations: 0 / 440.2 MB, free: 11.32 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.588e-05/0.2934, allocations: 34.55 kB / 440.2 MB, free: 11.28 MB / 318.1 MB Notification: Performance of pre-optimization done (n=8): time 8.62e-07/0.2934, allocations: 0 / 440.2 MB, free: 11.28 MB / 318.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002607/0.2936, allocations: 232.4 kB / 440.4 MB, free: 11.02 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.512e-05/0.2937, allocations: 93.05 kB / 440.5 MB, free: 10.91 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.128e-05/0.2938, allocations: 125.8 kB / 440.6 MB, free: 10.78 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.003e-05/0.2938, allocations: 25.7 kB / 440.6 MB, free: 10.75 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.76e-05/0.2938, allocations: 92.14 kB / 440.7 MB, free: 10.66 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.202e-05/0.2939, allocations: 27.64 kB / 440.8 MB, free: 10.63 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.368e-06/0.2939, allocations: 0 / 440.8 MB, free: 10.63 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.257e-05/0.2939, allocations: 310.8 kB / 441.1 MB, free: 10.32 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.196e-05/0.294, allocations: 23.98 kB / 441.1 MB, free: 10.29 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.493e-05/0.294, allocations: 23.98 kB / 441.1 MB, free: 10.27 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.696e-05/0.2941, allocations: 65.72 kB / 441.2 MB, free: 10.2 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.2941, allocations: 0 / 441.2 MB, free: 10.2 MB / 318.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001111/0.2942, allocations: 127.4 kB / 441.3 MB, free: 10.06 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.817e-05/0.2942, allocations: 45.69 kB / 441.4 MB, free: 10.01 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.568e-06/0.2942, allocations: 0 / 441.4 MB, free: 10.01 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.379e-05/0.2943, allocations: 4 kB / 441.4 MB, free: 10.01 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.52e-07/0.2943, allocations: 0 / 441.4 MB, free: 10.01 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.05e-06/0.2943, allocations: 3.938 kB / 441.4 MB, free: 10 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.19e-05/0.2943, allocations: 11.86 kB / 441.4 MB, free: 9.992 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.882e-05/0.2944, allocations: 0 / 441.4 MB, free: 9.992 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.158e-05/0.2944, allocations: 159.5 kB / 441.5 MB, free: 9.82 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.363e-05/0.2945, allocations: 7.906 kB / 441.5 MB, free: 9.812 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.165e-05/0.2945, allocations: 20.25 kB / 441.6 MB, free: 9.797 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.2945, allocations: 3.984 kB / 441.6 MB, free: 9.793 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.2945, allocations: 0 / 441.6 MB, free: 9.793 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.2945, allocations: 3.984 kB / 441.6 MB, free: 9.789 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.849e-05/0.2946, allocations: 169.6 kB / 441.7 MB, free: 9.574 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.42e-07/0.2946, allocations: 0 / 441.7 MB, free: 9.574 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.2946, allocations: 0 / 441.7 MB, free: 9.574 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.142e-06/0.2946, allocations: 0 / 441.7 MB, free: 9.574 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.247e-06/0.2946, allocations: 8 kB / 441.7 MB, free: 9.566 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.71e-07/0.2946, allocations: 0 / 441.7 MB, free: 9.566 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.2946, allocations: 0 / 441.7 MB, free: 9.566 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001888/0.2948, allocations: 222.6 kB / 442 MB, free: 9.324 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.582e-05/0.2949, allocations: 84.95 kB / 442 MB, free: 9.223 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.863e-05/0.2949, allocations: 4 kB / 442 MB, free: 9.219 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.216e-05/0.2949, allocations: 0 / 442 MB, free: 9.219 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.512e-05/0.2949, allocations: 11.92 kB / 442 MB, free: 9.207 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.854e-06/0.2949, allocations: 8.031 kB / 442.1 MB, free: 9.199 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.714e-05/0.295, allocations: 94.52 kB / 442.2 MB, free: 9.109 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.295, allocations: 0 / 442.2 MB, free: 9.109 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005586/0.2956, allocations: 312 kB / 442.5 MB, free: 8.805 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.0007308/0.2963, allocations: 362.5 kB / 442.8 MB, free: 8.441 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002138/0.2965, allocations: 203.3 kB / 443 MB, free: 8.23 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.2965, allocations: 0 / 443 MB, free: 8.23 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 9.346e-05/0.2966, allocations: 147.4 kB / 443.2 MB, free: 8.074 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001697/0.2968, allocations: 7.953 kB / 443.2 MB, free: 8.066 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004173/0.2972, allocations: 270.7 kB / 443.4 MB, free: 7.777 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002127/0.2975, allocations: 0.7004 MB / 444.1 MB, free: 7.051 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.434e-05/0.2975, allocations: 0 / 444.1 MB, free: 7.051 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.432e-05/0.2975, allocations: 11.44 kB / 444.1 MB, free: 7.039 MB / 318.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2975, allocations: 0 / 444.1 MB, free: 7.039 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).