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: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1,fileNamePrefix="PowerSystems_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.001007/0.001007, allocations: 110.4 kB / 16.51 MB, free: 6.715 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.001134/0.001134, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.324/1.324, allocations: 205.1 MB / 223.3 MB, free: 12.49 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1657/0.1657, allocations: 37.99 MB / 308.6 MB, free: 6.234 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.001328/0.001328, allocations: 71.03 kB / 374.7 MB, free: 4.008 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1959/0.1973, allocations: 55.24 MB / 430 MB, free: 19.76 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1): time 0.002515/0.1998, allocations: 2.144 MB / 432.1 MB, free: 17.59 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002164/0.202, allocations: 2.211 MB / 434.3 MB, free: 15.37 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.598e-05/0.202, allocations: 0 / 434.3 MB, free: 15.37 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001176/0.2022, allocations: 15.92 kB / 434.3 MB, free: 15.36 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.609e-05/0.2022, allocations: 19.89 kB / 434.4 MB, free: 15.34 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001253/0.2035, allocations: 0.6859 MB / 435 MB, free: 14.65 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 9.156e-05/0.2036, allocations: 131.5 kB / 435.2 MB, free: 14.52 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.431e-05/0.2037, allocations: 8.188 kB / 435.2 MB, free: 14.52 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.103e-05/0.2037, allocations: 27.84 kB / 435.2 MB, free: 14.49 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.842e-05/0.2038, allocations: 43.83 kB / 435.2 MB, free: 14.45 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.159e-05/0.2038, allocations: 4 kB / 435.3 MB, free: 14.44 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001154/0.205, allocations: 1.232 MB / 436.5 MB, free: 13.21 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.321e-05/0.205, allocations: 15.92 kB / 436.5 MB, free: 13.19 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.628e-05/0.2051, allocations: 31.78 kB / 436.5 MB, free: 13.16 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009047/0.206, allocations: 1.285 MB / 437.8 MB, free: 11.88 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.206, allocations: 0 / 437.8 MB, free: 11.88 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.206, allocations: 0 / 437.8 MB, free: 11.88 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.063e-06/0.206, allocations: 0 / 437.8 MB, free: 11.88 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.0004072/0.2064, allocations: 0.5163 MB / 438.3 MB, free: 11.3 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.539e-05/0.2064, allocations: 8.031 kB / 438.3 MB, free: 11.3 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.234e-05/0.2065, allocations: 42.73 kB / 438.4 MB, free: 11.25 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.617e-05/0.2065, allocations: 8.844 kB / 438.4 MB, free: 11.24 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001104/0.2066, allocations: 187.4 kB / 438.6 MB, free: 11.02 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.783e-06/0.2066, allocations: 4 kB / 438.6 MB, free: 11.01 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.777e-06/0.2066, allocations: 0 / 438.6 MB, free: 11.01 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001022/0.2068, allocations: 73.61 kB / 438.6 MB, free: 10.93 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.129e-06/0.2068, allocations: 0 / 438.6 MB, free: 10.93 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.704e-06/0.2068, allocations: 0 / 438.6 MB, free: 10.93 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.527e-06/0.2068, allocations: 0 / 438.6 MB, free: 10.93 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.24e-05/0.2068, allocations: 31.98 kB / 438.7 MB, free: 10.9 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.848e-05/0.2069, allocations: 185.5 kB / 438.9 MB, free: 10.67 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.245e-05/0.207, allocations: 62.55 kB / 438.9 MB, free: 10.6 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.14e-05/0.207, allocations: 52.81 kB / 439 MB, free: 10.55 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.35e-06/0.2071, allocations: 0 / 439 MB, free: 10.55 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.172e-05/0.2071, allocations: 30.56 kB / 439 MB, free: 10.51 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 9.01e-07/0.2071, allocations: 224 / 439 MB, free: 10.51 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0002243/0.2073, allocations: 187.2 kB / 439.2 MB, free: 10.31 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.794e-05/0.2073, allocations: 93.09 kB / 439.3 MB, free: 10.2 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.412e-05/0.2074, allocations: 130.9 kB / 439.4 MB, free: 10.07 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.905e-06/0.2074, allocations: 29.73 kB / 439.4 MB, free: 10.03 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.288e-05/0.2075, allocations: 96.12 kB / 439.5 MB, free: 9.934 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.024e-05/0.2075, allocations: 31.47 kB / 439.6 MB, free: 9.902 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.967e-05/0.2075, allocations: 21.7 kB / 439.6 MB, free: 9.875 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.58e-05/0.2076, allocations: 330.8 kB / 439.9 MB, free: 9.543 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.704e-05/0.2076, allocations: 35.92 kB / 439.9 MB, free: 9.508 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.122e-05/0.2076, allocations: 27.98 kB / 440 MB, free: 9.48 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001011/0.2078, allocations: 163.7 kB / 440.1 MB, free: 9.309 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.2078, allocations: 4.031 kB / 440.1 MB, free: 9.305 MB / 318.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001271/0.2079, allocations: 155.1 kB / 440.3 MB, free: 9.141 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.937e-05/0.2079, allocations: 53.67 kB / 440.3 MB, free: 9.082 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/0.208, allocations: 0 / 440.3 MB, free: 9.082 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.133e-05/0.208, allocations: 0 / 440.3 MB, free: 9.082 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.61e-07/0.208, allocations: 0 / 440.3 MB, free: 9.082 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.32e-06/0.208, allocations: 0 / 440.3 MB, free: 9.082 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.812e-05/0.208, allocations: 11.84 kB / 440.3 MB, free: 9.07 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.914e-05/0.2081, allocations: 7.938 kB / 440.4 MB, free: 9.062 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.525e-05/0.2081, allocations: 171.5 kB / 440.5 MB, free: 8.879 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.698e-05/0.2082, allocations: 11.91 kB / 440.5 MB, free: 8.867 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.296e-05/0.2082, allocations: 8.703 kB / 440.5 MB, free: 8.859 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-06/0.2082, allocations: 0 / 440.5 MB, free: 8.859 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.2082, allocations: 0 / 440.5 MB, free: 8.859 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-06/0.2082, allocations: 7.984 kB / 440.5 MB, free: 8.852 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.018e-05/0.2083, allocations: 177.6 kB / 440.7 MB, free: 8.629 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.2083, allocations: 0 / 440.7 MB, free: 8.629 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.11e-07/0.2083, allocations: 0 / 440.7 MB, free: 8.629 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.022e-06/0.2083, allocations: 0 / 440.7 MB, free: 8.629 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.117e-05/0.2083, allocations: 7.984 kB / 440.7 MB, free: 8.621 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.2083, allocations: 4 kB / 440.7 MB, free: 8.617 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.2083, allocations: 0 / 440.7 MB, free: 8.617 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002349/0.2086, allocations: 294.4 kB / 441 MB, free: 8.305 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.018e-05/0.2086, allocations: 88.95 kB / 441.1 MB, free: 8.199 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.882e-05/0.2086, allocations: 4 kB / 441.1 MB, free: 8.195 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.604e-05/0.2086, allocations: 4 kB / 441.1 MB, free: 8.191 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.089e-05/0.2087, allocations: 0 / 441.1 MB, free: 8.191 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.238e-06/0.2087, allocations: 8 kB / 441.1 MB, free: 8.184 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.368e-05/0.2087, allocations: 118.3 kB / 441.2 MB, free: 8.07 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2087, allocations: 0 / 441.2 MB, free: 8.07 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005722/0.2093, allocations: 320 kB / 441.6 MB, free: 7.758 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001017/0.2103, allocations: 1.075 MB / 442.6 MB, free: 6.645 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002266/0.2106, allocations: 295.3 kB / 442.9 MB, free: 6.344 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.2106, allocations: 0 / 442.9 MB, free: 6.344 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001159/0.2107, allocations: 227.3 kB / 443.1 MB, free: 6.109 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002221/0.2109, allocations: 11.94 kB / 443.1 MB, free: 6.098 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001323/0.2123, allocations: 1.958 MB / 445.1 MB, free: 4.059 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001093/0.2124, allocations: 0.7043 MB / 445.8 MB, free: 3.328 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.978e-06/0.2124, allocations: 0 / 445.8 MB, free: 3.328 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.626e-05/0.2124, allocations: 27.42 kB / 445.8 MB, free: 3.301 MB / 318.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2124, allocations: 3.938 kB / 445.8 MB, free: 3.297 MB / 318.1 MB [CodegenCFunctions.tpl:5622:13-5622:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].