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.0007522/0.0007521, allocations: 92.75 kB / 16.65 MB, free: 6.59 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.0007553/0.0007552, allocations: 184.2 kB / 17.57 MB, free: 6.199 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.256/1.256, allocations: 205.4 MB / 223.7 MB, free: 13 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1697/0.1697, allocations: 38.04 MB / 310.1 MB, free: 5.898 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.0004682/0.0004682, allocations: 16 kB / 377.3 MB, free: 2.598 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2071/0.2076, allocations: 56.33 MB / 433.6 MB, free: 18.64 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1): time 0.001805/0.2095, allocations: 1.802 MB / 435.4 MB, free: 16.82 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002246/0.2117, allocations: 2.168 MB / 437.6 MB, free: 14.64 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.435e-05/0.2118, allocations: 0 / 437.6 MB, free: 14.64 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001119/0.2119, allocations: 7.922 kB / 437.6 MB, free: 14.63 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.159e-05/0.212, allocations: 27.84 kB / 437.6 MB, free: 14.61 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00139/0.2134, allocations: 0.6866 MB / 438.3 MB, free: 13.92 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 9.6e-05/0.2135, allocations: 115.7 kB / 438.4 MB, free: 13.8 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.461e-05/0.2135, allocations: 4.172 kB / 438.4 MB, free: 13.8 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.618e-05/0.2136, allocations: 39.8 kB / 438.4 MB, free: 13.76 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.288e-05/0.2137, allocations: 43.88 kB / 438.5 MB, free: 13.72 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.868e-06/0.2137, allocations: 3.938 kB / 438.5 MB, free: 13.71 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001185/0.2149, allocations: 1.232 MB / 439.7 MB, free: 12.48 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.219e-05/0.2149, allocations: 19.92 kB / 439.7 MB, free: 12.46 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.519e-05/0.215, allocations: 53.45 kB / 439.8 MB, free: 12.4 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009229/0.2159, allocations: 1.285 MB / 441.1 MB, free: 11.12 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.297e-06/0.2159, allocations: 4 kB / 441.1 MB, free: 11.11 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2159, allocations: 0 / 441.1 MB, free: 11.11 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.356e-06/0.2159, allocations: 0 / 441.1 MB, free: 11.11 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.0004309/0.2164, allocations: 0.5124 MB / 441.6 MB, free: 10.55 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.399e-05/0.2164, allocations: 8.031 kB / 441.6 MB, free: 10.54 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.822e-05/0.2164, allocations: 34.75 kB / 441.6 MB, free: 10.5 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.651e-05/0.2165, allocations: 12.84 kB / 441.6 MB, free: 10.48 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001099/0.2166, allocations: 191.3 kB / 441.8 MB, free: 10.26 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.973e-05/0.2166, allocations: 0 / 441.8 MB, free: 10.26 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.658e-06/0.2166, allocations: 0 / 441.8 MB, free: 10.26 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001163/0.2167, allocations: 73.66 kB / 441.9 MB, free: 10.18 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.031e-06/0.2168, allocations: 0 / 441.9 MB, free: 10.18 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.937e-06/0.2168, allocations: 0 / 441.9 MB, free: 10.18 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.048e-06/0.2168, allocations: 0 / 441.9 MB, free: 10.18 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.126e-05/0.2168, allocations: 31.98 kB / 441.9 MB, free: 10.15 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.553e-05/0.2169, allocations: 177.5 kB / 442.1 MB, free: 9.926 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.09e-05/0.217, allocations: 58.5 kB / 442.2 MB, free: 9.859 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.269e-05/0.217, allocations: 52.88 kB / 442.2 MB, free: 9.805 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.798e-06/0.217, allocations: 0 / 442.2 MB, free: 9.805 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.31e-05/0.2171, allocations: 30.56 kB / 442.2 MB, free: 9.766 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 8.11e-07/0.2171, allocations: 0 / 442.2 MB, free: 9.766 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0002277/0.2173, allocations: 195.4 kB / 442.4 MB, free: 9.562 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.638e-05/0.2173, allocations: 89.05 kB / 442.5 MB, free: 9.457 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.853e-05/0.2174, allocations: 140.6 kB / 442.7 MB, free: 9.312 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.125e-06/0.2174, allocations: 25.7 kB / 442.7 MB, free: 9.281 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.235e-05/0.2175, allocations: 96.17 kB / 442.8 MB, free: 9.184 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.233e-05/0.2175, allocations: 35.36 kB / 442.8 MB, free: 9.148 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.167e-05/0.2175, allocations: 17.72 kB / 442.8 MB, free: 9.125 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.259e-05/0.2176, allocations: 326.8 kB / 443.2 MB, free: 8.797 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.632e-05/0.2176, allocations: 31.98 kB / 443.2 MB, free: 8.766 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.093e-05/0.2176, allocations: 27.98 kB / 443.2 MB, free: 8.738 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001003/0.2177, allocations: 160.2 kB / 443.4 MB, free: 8.566 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.2178, allocations: 0 / 443.4 MB, free: 8.566 MB / 318.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001276/0.2179, allocations: 159.1 kB / 443.5 MB, free: 8.398 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.192e-05/0.2179, allocations: 57.73 kB / 443.6 MB, free: 8.336 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.427e-06/0.2179, allocations: 0 / 443.6 MB, free: 8.336 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.252e-05/0.218, allocations: 0 / 443.6 MB, free: 8.336 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.22e-07/0.218, allocations: 0 / 443.6 MB, free: 8.336 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.449e-06/0.218, allocations: 0 / 443.6 MB, free: 8.336 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.053e-05/0.218, allocations: 7.938 kB / 443.6 MB, free: 8.328 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.767e-05/0.218, allocations: 7.938 kB / 443.6 MB, free: 8.32 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.368e-05/0.2181, allocations: 163.5 kB / 443.8 MB, free: 8.145 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.524e-05/0.2181, allocations: 11.91 kB / 443.8 MB, free: 8.133 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.205e-05/0.2182, allocations: 12.72 kB / 443.8 MB, free: 8.121 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-06/0.2182, allocations: 0 / 443.8 MB, free: 8.121 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.2182, allocations: 4 kB / 443.8 MB, free: 8.117 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.603e-06/0.2182, allocations: 0 / 443.8 MB, free: 8.117 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.872e-05/0.2182, allocations: 181.5 kB / 444 MB, free: 7.891 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.21e-07/0.2183, allocations: 0 / 444 MB, free: 7.891 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.102e-06/0.2183, allocations: 7.922 kB / 444 MB, free: 7.883 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.132e-06/0.2183, allocations: 0 / 444 MB, free: 7.883 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.849e-06/0.2183, allocations: 4 kB / 444 MB, free: 7.879 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.2183, allocations: 4 kB / 444 MB, free: 7.875 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.2183, allocations: 0 / 444 MB, free: 7.875 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002284/0.2185, allocations: 301.9 kB / 444.3 MB, free: 7.559 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.772e-05/0.2186, allocations: 88.95 kB / 444.4 MB, free: 7.453 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.644e-05/0.2186, allocations: 0 / 444.4 MB, free: 7.453 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.662e-05/0.2186, allocations: 4 kB / 444.4 MB, free: 7.449 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.786e-05/0.2186, allocations: 0 / 444.4 MB, free: 7.449 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.917e-06/0.2186, allocations: 4 kB / 444.4 MB, free: 7.445 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.592e-05/0.2187, allocations: 111.2 kB / 444.5 MB, free: 7.336 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2187, allocations: 4.031 kB / 444.5 MB, free: 7.332 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005941/0.2193, allocations: 320 kB / 444.8 MB, free: 7.02 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.001021/0.2203, allocations: 1.089 MB / 445.9 MB, free: 5.895 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002428/0.2206, allocations: 295.2 kB / 446.2 MB, free: 5.594 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.2206, allocations: 0 / 446.2 MB, free: 5.594 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001366/0.2207, allocations: 223.3 kB / 446.4 MB, free: 5.363 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001989/0.2209, allocations: 15.94 kB / 446.4 MB, free: 5.348 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00134/0.2223, allocations: 1.972 MB / 448.4 MB, free: 3.293 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001043/0.2224, allocations: 0.7082 MB / 449.1 MB, free: 2.559 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.157e-06/0.2224, allocations: 0 / 449.1 MB, free: 2.559 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.646e-05/0.2224, allocations: 23.44 kB / 449.1 MB, free: 2.535 MB / 318.1 MB Notification: Performance of SimCode: time 2.11e-07/0.2224, allocations: 0 / 449.1 MB, free: 2.535 MB / 318.1 MB [CodegenCFunctions.tpl:5473:13-5473:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].