Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_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 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.Z_matrixTrDat1,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1",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.0008926/0.0008927, allocations: 95.77 kB / 16.3 MB, free: 5.996 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.001003/0.001003, allocations: 183.9 kB / 17.2 MB, free: 5.914 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.297/1.297, allocations: 223.2 MB / 241.1 MB, free: 5.465 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2975/0.2975, allocations: 38.06 MB / 330.3 MB, free: 14.28 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002927/0.0002928, allocations: 8 kB / 400.1 MB, free: 9.207 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2693/0.2696, allocations: 59.16 MB / 459.2 MB, free: 30.08 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1): time 0.002004/0.2716, allocations: 1.757 MB / 461 MB, free: 28.79 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002774/0.2744, allocations: 1.898 MB / 462.9 MB, free: 27.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.325e-05/0.2745, allocations: 0 / 462.9 MB, free: 27.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001488/0.2747, allocations: 15.69 kB / 462.9 MB, free: 27.51 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.666e-05/0.2747, allocations: 13.91 kB / 462.9 MB, free: 27.5 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001928/0.2766, allocations: 0.5935 MB / 463.5 MB, free: 27.29 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.011e-05/0.2767, allocations: 36.22 kB / 463.5 MB, free: 27.27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.109e-05/0.2768, allocations: 8.844 kB / 463.5 MB, free: 27.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.557e-05/0.2769, allocations: 27.03 kB / 463.6 MB, free: 27.26 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.227e-05/0.2769, allocations: 31 kB / 463.6 MB, free: 27.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.183e-05/0.277, allocations: 1.469 kB / 463.6 MB, free: 27.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001761/0.2787, allocations: 0.979 MB / 464.6 MB, free: 27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.738e-05/0.2788, allocations: 16.23 kB / 464.6 MB, free: 27 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.4e-05/0.2788, allocations: 32.95 kB / 464.6 MB, free: 26.96 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001512/0.2803, allocations: 0.9183 MB / 465.5 MB, free: 26.86 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.225e-06/0.2804, allocations: 0 / 465.5 MB, free: 26.86 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.2804, allocations: 0.75 kB / 465.5 MB, free: 26.86 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.669e-06/0.2804, allocations: 1 kB / 465.5 MB, free: 26.86 MB / 350.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.000585/0.281, allocations: 0.5093 MB / 466.1 MB, free: 26.37 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.451e-05/0.281, allocations: 8.844 kB / 466.1 MB, free: 26.37 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.165e-05/0.2811, allocations: 42.19 kB / 466.1 MB, free: 26.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.955e-05/0.2811, allocations: 11.19 kB / 466.1 MB, free: 26.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00014/0.2812, allocations: 189 kB / 466.3 MB, free: 26.11 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.095e-06/0.2813, allocations: 0 / 466.3 MB, free: 26.11 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.049e-05/0.2813, allocations: 1.844 kB / 466.3 MB, free: 26.11 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001325/0.2814, allocations: 65.31 kB / 466.4 MB, free: 26.07 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.601e-06/0.2814, allocations: 0 / 466.4 MB, free: 26.07 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.827e-06/0.2814, allocations: 0 / 466.4 MB, free: 26.07 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.2814, allocations: 1.031 kB / 466.4 MB, free: 26.07 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.688e-05/0.2815, allocations: 36.67 kB / 466.4 MB, free: 26.06 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001133/0.2816, allocations: 179 kB / 466.6 MB, free: 25.86 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.649e-05/0.2817, allocations: 61.31 kB / 466.6 MB, free: 25.82 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.384e-06/0.2817, allocations: 0.6562 kB / 466.6 MB, free: 25.82 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.788e-05/0.2817, allocations: 35.56 kB / 466.7 MB, free: 25.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 8.72e-07/0.2818, allocations: 0 / 466.7 MB, free: 25.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003316/0.2821, allocations: 281.4 kB / 466.9 MB, free: 25.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.991e-05/0.2821, allocations: 90.12 kB / 467 MB, free: 25.49 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.071e-05/0.2822, allocations: 134.9 kB / 467.2 MB, free: 25.38 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.178e-05/0.2823, allocations: 26.95 kB / 467.2 MB, free: 25.35 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.065e-05/0.2823, allocations: 92.94 kB / 467.3 MB, free: 25.26 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.045e-05/0.2823, allocations: 36.36 kB / 467.3 MB, free: 25.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.759e-06/0.2823, allocations: 0 / 467.3 MB, free: 25.23 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.251e-05/0.2824, allocations: 324.9 kB / 467.6 MB, free: 24.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.987e-05/0.2825, allocations: 31.47 kB / 467.7 MB, free: 24.91 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.404e-05/0.2825, allocations: 32.44 kB / 467.7 MB, free: 24.91 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.405e-05/0.2826, allocations: 75.17 kB / 467.8 MB, free: 24.87 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.2826, allocations: 4.031 kB / 467.8 MB, free: 24.87 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001704/0.2828, allocations: 164.4 kB / 467.9 MB, free: 24.78 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.802e-05/0.2828, allocations: 51.05 kB / 468 MB, free: 24.74 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.067e-06/0.2829, allocations: 0 / 468 MB, free: 24.74 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.074e-05/0.2829, allocations: 0 / 468 MB, free: 24.74 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.613e-06/0.2829, allocations: 1.656 kB / 468 MB, free: 24.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.598e-06/0.2829, allocations: 0 / 468 MB, free: 24.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.023e-05/0.2829, allocations: 10.94 kB / 468 MB, free: 24.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.012e-05/0.283, allocations: 4.094 kB / 468 MB, free: 24.73 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001034/0.2831, allocations: 168.8 kB / 468.2 MB, free: 24.58 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.763e-05/0.2831, allocations: 14.36 kB / 468.2 MB, free: 24.57 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.347e-05/0.2831, allocations: 8.672 kB / 468.2 MB, free: 24.57 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.2831, allocations: 1.375 kB / 468.2 MB, free: 24.57 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.616e-06/0.2831, allocations: 0 / 468.2 MB, free: 24.57 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.2831, allocations: 0.5156 kB / 468.2 MB, free: 24.57 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001011/0.2832, allocations: 176.4 kB / 468.4 MB, free: 24.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.2833, allocations: 4 kB / 468.4 MB, free: 24.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.112e-06/0.2833, allocations: 0.7031 kB / 468.4 MB, free: 24.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.2833, allocations: 5.328 kB / 468.4 MB, free: 24.37 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.256e-05/0.2833, allocations: 3.484 kB / 468.4 MB, free: 24.37 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/0.2833, allocations: 5.25 kB / 468.4 MB, free: 24.36 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.2833, allocations: 0 / 468.4 MB, free: 24.36 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003224/0.2836, allocations: 289 kB / 468.7 MB, free: 24.23 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.447e-05/0.2837, allocations: 87.88 kB / 468.7 MB, free: 24.12 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.225e-05/0.2837, allocations: 6.516 kB / 468.8 MB, free: 24.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.822e-05/0.2837, allocations: 2.172 kB / 468.8 MB, free: 24.12 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.956e-05/0.2837, allocations: 3.156 kB / 468.8 MB, free: 24.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.111e-05/0.2838, allocations: 11.56 kB / 468.8 MB, free: 24.11 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.662e-05/0.2838, allocations: 103.2 kB / 468.9 MB, free: 24.04 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2838, allocations: 0 / 468.9 MB, free: 24.04 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001193/0.285, allocations: 320.3 kB / 469.2 MB, free: 23.99 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 (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.001343/0.2864, allocations: 1.083 MB / 470.3 MB, free: 23.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003639/0.2867, allocations: 300.6 kB / 470.6 MB, free: 23.11 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.2868, allocations: 0 / 470.6 MB, free: 23.11 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001879/0.287, allocations: 225.8 kB / 470.8 MB, free: 22.99 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001763/0.2871, allocations: 8.297 kB / 470.8 MB, free: 22.98 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001307/0.2884, allocations: 0.9671 MB / 471.8 MB, free: 22.47 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001655/0.2886, allocations: 0.7111 MB / 472.5 MB, free: 21.77 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.397e-05/0.2886, allocations: 1.094 kB / 472.5 MB, free: 21.77 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.632e-05/0.2887, allocations: 23.17 kB / 472.5 MB, free: 21.75 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2887, allocations: 0 / 472.5 MB, free: 21.75 MB / 350.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).