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: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0",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.001105/0.001105, allocations: 109 kB / 16.51 MB, free: 6.707 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.001663/0.001663, 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.358/1.358, 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.98 MB / 308.6 MB, free: 6.254 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.001374/0.001374, allocations: 75.17 kB / 374.7 MB, free: 4.012 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1954/0.1968, allocations: 55.23 MB / 430 MB, free: 19.79 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0): time 0.002568/0.1994, allocations: 2.152 MB / 432.1 MB, free: 17.62 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002204/0.2016, allocations: 2.203 MB / 434.3 MB, free: 15.4 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.113e-05/0.2017, allocations: 0 / 434.3 MB, free: 15.4 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001401/0.2018, allocations: 15.91 kB / 434.3 MB, free: 15.39 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.101e-05/0.2019, allocations: 27.84 kB / 434.4 MB, free: 15.36 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001117/0.203, allocations: 0.6857 MB / 435 MB, free: 14.68 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 8.318e-05/0.2031, allocations: 123.6 kB / 435.2 MB, free: 14.55 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.839e-05/0.2031, allocations: 4.188 kB / 435.2 MB, free: 14.55 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.847e-05/0.2032, allocations: 31.86 kB / 435.2 MB, free: 14.52 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.471e-05/0.2033, allocations: 47.81 kB / 435.2 MB, free: 14.47 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.058e-05/0.2033, allocations: 4 kB / 435.3 MB, free: 14.47 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001145/0.2044, allocations: 1.236 MB / 436.5 MB, free: 13.23 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.845e-05/0.2045, allocations: 4 kB / 436.5 MB, free: 13.23 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.457e-05/0.2045, allocations: 27.8 kB / 436.5 MB, free: 13.2 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009438/0.2055, allocations: 1.269 MB / 437.8 MB, free: 11.93 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.2055, allocations: 0 / 437.8 MB, free: 11.93 MB / 318.1 MB Notification: Performance of FrontEnd: time 7.32e-07/0.2055, allocations: 3.938 kB / 437.8 MB, free: 11.93 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.978e-06/0.2055, allocations: 4 kB / 437.8 MB, free: 11.92 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.0004156/0.2059, allocations: 0.4969 MB / 438.3 MB, free: 11.37 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.386e-05/0.206, allocations: 16.02 kB / 438.3 MB, free: 11.36 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.313e-05/0.206, allocations: 38.75 kB / 438.3 MB, free: 11.31 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.194e-05/0.206, allocations: 12.83 kB / 438.4 MB, free: 11.3 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000106/0.2061, allocations: 187.4 kB / 438.5 MB, free: 11.07 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.561e-06/0.2061, allocations: 3.938 kB / 438.5 MB, free: 11.07 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.032e-05/0.2062, allocations: 0 / 438.5 MB, free: 11.07 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.485e-05/0.2063, allocations: 57.67 kB / 438.6 MB, free: 11.01 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.302e-06/0.2063, allocations: 4 kB / 438.6 MB, free: 11 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.484e-06/0.2063, allocations: 3.938 kB / 438.6 MB, free: 11 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.236e-06/0.2063, allocations: 0 / 438.6 MB, free: 11 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.566e-05/0.2063, allocations: 23.98 kB / 438.6 MB, free: 10.98 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.721e-05/0.2064, allocations: 161.6 kB / 438.8 MB, free: 10.77 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.023e-05/0.2065, allocations: 46.56 kB / 438.8 MB, free: 10.71 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.221e-05/0.2065, allocations: 32.88 kB / 438.9 MB, free: 10.68 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.871e-06/0.2065, allocations: 0 / 438.9 MB, free: 10.68 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.464e-05/0.2065, allocations: 38.56 kB / 438.9 MB, free: 10.63 MB / 318.1 MB Notification: Performance of pre-optimization done (n=8): time 7.71e-07/0.2065, allocations: 0 / 438.9 MB, free: 10.63 MB / 318.1 MB Notification: Performance of matching and sorting (n=8): time 0.0001838/0.2067, allocations: 155.3 kB / 439.1 MB, free: 10.47 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.654e-05/0.2068, allocations: 89.09 kB / 439.1 MB, free: 10.36 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.539e-05/0.2068, allocations: 117.8 kB / 439.3 MB, free: 10.24 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.113e-06/0.2068, allocations: 25.7 kB / 439.3 MB, free: 10.21 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.226e-05/0.2069, allocations: 92.12 kB / 439.4 MB, free: 10.11 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.721e-05/0.2069, allocations: 27.59 kB / 439.4 MB, free: 10.09 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.891e-05/0.2069, allocations: 29.64 kB / 439.4 MB, free: 10.05 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.227e-05/0.207, allocations: 318.8 kB / 439.7 MB, free: 9.73 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.962e-05/0.207, allocations: 23.98 kB / 439.8 MB, free: 9.707 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.436e-05/0.207, allocations: 23.98 kB / 439.8 MB, free: 9.684 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.807e-05/0.2071, allocations: 132.2 kB / 439.9 MB, free: 9.539 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.2071, allocations: 0 / 439.9 MB, free: 9.539 MB / 318.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001045/0.2072, allocations: 119.3 kB / 440 MB, free: 9.41 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.767e-05/0.2073, allocations: 45.69 kB / 440.1 MB, free: 9.359 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.276e-06/0.2073, allocations: 4.062 kB / 440.1 MB, free: 9.355 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.177e-06/0.2073, allocations: 0 / 440.1 MB, free: 9.355 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.51e-07/0.2073, allocations: 0 / 440.1 MB, free: 9.355 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.01e-06/0.2073, allocations: 3.984 kB / 440.1 MB, free: 9.352 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.927e-05/0.2074, allocations: 4 kB / 440.1 MB, free: 9.348 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.502e-05/0.2074, allocations: 0 / 440.1 MB, free: 9.348 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 6.849e-05/0.2074, allocations: 159.5 kB / 440.2 MB, free: 9.176 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.424e-05/0.2075, allocations: 7.906 kB / 440.3 MB, free: 9.168 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.194e-05/0.2075, allocations: 12.36 kB / 440.3 MB, free: 9.156 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.52e-07/0.2075, allocations: 7.938 kB / 440.3 MB, free: 9.148 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.2075, allocations: 0 / 440.3 MB, free: 9.148 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.354e-06/0.2075, allocations: 0 / 440.3 MB, free: 9.148 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.215e-05/0.2076, allocations: 165.6 kB / 440.4 MB, free: 8.938 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.71e-07/0.2076, allocations: 4 kB / 440.4 MB, free: 8.934 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.2e-07/0.2076, allocations: 0 / 440.4 MB, free: 8.934 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.022e-06/0.2076, allocations: 0 / 440.4 MB, free: 8.934 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.074e-05/0.2076, allocations: 11.98 kB / 440.5 MB, free: 8.922 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.2076, allocations: 7.938 kB / 440.5 MB, free: 8.914 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.2076, allocations: 0 / 440.5 MB, free: 8.914 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001678/0.2078, allocations: 226.9 kB / 440.7 MB, free: 8.668 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.769e-05/0.2078, allocations: 84.95 kB / 440.8 MB, free: 8.566 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.769e-05/0.2078, allocations: 4 kB / 440.8 MB, free: 8.562 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.041e-05/0.2079, allocations: 0 / 440.8 MB, free: 8.562 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.993e-05/0.2079, allocations: 7.984 kB / 440.8 MB, free: 8.555 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.444e-06/0.2079, allocations: 4 kB / 440.8 MB, free: 8.551 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.157e-05/0.2079, allocations: 93.64 kB / 440.9 MB, free: 8.461 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2079, allocations: 0 / 440.9 MB, free: 8.461 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005632/0.2085, allocations: 323.9 kB / 441.2 MB, free: 8.145 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.000949/0.2095, allocations: 1.015 MB / 442.2 MB, free: 7.094 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000166/0.2096, allocations: 199.4 kB / 442.4 MB, free: 6.887 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.2096, allocations: 0 / 442.4 MB, free: 6.887 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 8.38e-05/0.2097, allocations: 159.3 kB / 442.6 MB, free: 6.719 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000205/0.2099, allocations: 8 kB / 442.6 MB, free: 6.711 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001118/0.2111, allocations: 1.686 MB / 444.2 MB, free: 4.941 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001085/0.2112, allocations: 0.7005 MB / 444.9 MB, free: 4.215 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.069e-05/0.2112, allocations: 3.953 kB / 445 MB, free: 4.211 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.054e-05/0.2112, allocations: 19.44 kB / 445 MB, free: 4.191 MB / 318.1 MB Notification: Performance of SimCode: time 3.8e-07/0.2112, allocations: 0 / 445 MB, free: 4.191 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].