Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3.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_matrixTrDat3,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3",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.001412/0.001412, allocations: 114.1 kB / 17.06 MB, free: 6.016 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.001398/0.001398, allocations: 189.4 kB / 18 MB, free: 5.098 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.447/1.447, allocations: 222.9 MB / 241.7 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1859/0.1859, allocations: 38.05 MB / 329.9 MB, free: 8.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002047/0.002047, allocations: 71.88 kB / 457.7 MB, free: 7.355 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3619/0.364, allocations: 58.05 MB / 0.5036 GB, free: 7.492 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3): time 0.00289/0.3669, allocations: 2.11 MB / 0.5057 GB, free: 6.016 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00254/0.3694, allocations: 2.039 MB / 0.5077 GB, free: 4.652 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.971e-05/0.3695, allocations: 0 / 0.5077 GB, free: 4.652 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001401/0.3697, allocations: 14.98 kB / 0.5077 GB, free: 4.645 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.258e-05/0.3698, allocations: 29.2 kB / 0.5077 GB, free: 4.629 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002045/0.3718, allocations: 0.8297 MB / 0.5085 GB, free: 4.352 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001259/0.372, allocations: 78.48 kB / 0.5086 GB, free: 4.324 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.2e-05/0.372, allocations: 7.062 kB / 0.5086 GB, free: 4.324 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.134e-05/0.3721, allocations: 36.34 kB / 0.5087 GB, free: 4.309 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.753e-05/0.3722, allocations: 47.95 kB / 0.5087 GB, free: 4.293 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.453e-05/0.3722, allocations: 2.344 kB / 0.5087 GB, free: 4.293 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002002/0.3742, allocations: 1.405 MB / 0.5101 GB, free: 3.859 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.208e-05/0.3743, allocations: 43.33 kB / 0.5101 GB, free: 3.848 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.024e-05/0.3744, allocations: 59.7 kB / 0.5102 GB, free: 3.805 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001729/0.3761, allocations: 1.379 MB / 0.5115 GB, free: 3.547 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.3761, allocations: 0 / 0.5115 GB, free: 3.547 MB / 382.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.3761, allocations: 0 / 0.5115 GB, free: 3.547 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.042e-06/0.3761, allocations: 1.031 kB / 0.5115 GB, free: 3.547 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.0006018/0.3767, allocations: 0.626 MB / 0.5121 GB, free: 2.992 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.502e-05/0.3768, allocations: 9.375 kB / 0.5121 GB, free: 2.992 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.28e-05/0.3768, allocations: 48.8 kB / 0.5122 GB, free: 2.945 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.465e-05/0.3769, allocations: 19.58 kB / 0.5122 GB, free: 2.934 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000137/0.377, allocations: 216.6 kB / 0.5124 GB, free: 2.703 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.638e-06/0.377, allocations: 1.156 kB / 0.5124 GB, free: 2.703 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.146e-05/0.377, allocations: 1.156 kB / 0.5124 GB, free: 2.703 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002111/0.3773, allocations: 139.5 kB / 0.5126 GB, free: 2.645 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.635e-06/0.3773, allocations: 0 / 0.5126 GB, free: 2.645 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.909e-06/0.3773, allocations: 1.75 kB / 0.5126 GB, free: 2.645 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.466e-06/0.3773, allocations: 0 / 0.5126 GB, free: 2.645 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001087/0.3774, allocations: 98.88 kB / 0.5126 GB, free: 2.625 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001311/0.3776, allocations: 219.4 kB / 0.5129 GB, free: 2.398 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001431/0.3777, allocations: 159.9 kB / 0.513 GB, free: 2.316 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001207/0.3778, allocations: 146.8 kB / 0.5131 GB, free: 2.25 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.668e-06/0.3778, allocations: 1.188 kB / 0.5131 GB, free: 2.25 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.598e-05/0.3779, allocations: 31.12 kB / 0.5132 GB, free: 2.211 MB / 382.1 MB Notification: Performance of pre-optimization done (n=40): time 1.002e-06/0.3779, allocations: 5.375 kB / 0.5132 GB, free: 2.207 MB / 382.1 MB Notification: Performance of matching and sorting (n=40): time 0.0005947/0.3785, allocations: 0.4899 MB / 0.5137 GB, free: 2.051 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.958e-05/0.3785, allocations: 105.1 kB / 0.5138 GB, free: 1.957 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001199/0.3787, allocations: 172.3 kB / 0.5139 GB, free: 1.836 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.017e-05/0.3787, allocations: 30.61 kB / 0.514 GB, free: 1.801 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.755e-05/0.3787, allocations: 104.2 kB / 0.5141 GB, free: 1.703 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.628e-05/0.3788, allocations: 139.6 kB / 0.5142 GB, free: 1.594 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.024e-05/0.3788, allocations: 33.83 kB / 0.5142 GB, free: 1.574 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.788e-05/0.3789, allocations: 341.8 kB / 0.5145 GB, free: 1.246 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001061/0.379, allocations: 99.03 kB / 0.5146 GB, free: 1.223 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.339e-05/0.3791, allocations: 99.89 kB / 0.5147 GB, free: 1.199 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003967/0.3795, allocations: 379.5 kB / 0.5151 GB, free: 1.066 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.3795, allocations: 0 / 0.5151 GB, free: 1.066 MB / 382.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004006/0.3799, allocations: 338.5 kB / 0.5154 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.652e-05/0.38, allocations: 86.22 kB / 0.5155 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.3801, allocations: 4 kB / 0.5155 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.346e-05/0.3801, allocations: 1.219 kB / 0.5155 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.32e-07/0.3801, allocations: 0.5625 kB / 0.5155 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.741e-06/0.3801, allocations: 4.562 kB / 0.5155 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.791e-05/0.3802, allocations: 24.73 kB / 0.5155 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.71e-05/0.3802, allocations: 8.531 kB / 0.5155 GB, free: 0.8789 MB / 382.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 0.0002076/0.3804, allocations: 238.2 kB / 0.5158 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.915e-05/0.3805, allocations: 25.98 kB / 0.5158 GB, free: 0.707 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.78e-05/0.3805, allocations: 13.75 kB / 0.5158 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.333e-06/0.3805, allocations: 0 / 0.5158 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.3805, allocations: 0.5 kB / 0.5158 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.923e-06/0.3805, allocations: 0 / 0.5158 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001298/0.3806, allocations: 245.8 kB / 0.516 GB, free: 484 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.3807, allocations: 4 kB / 0.516 GB, free: 480 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.01e-07/0.3807, allocations: 0 / 0.516 GB, free: 480 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.3807, allocations: 1.766 kB / 0.5161 GB, free: 480 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.092e-05/0.3807, allocations: 7.422 kB / 0.5161 GB, free: 480 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.3807, allocations: 0.9688 kB / 0.5161 GB, free: 480 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.3807, allocations: 0 / 0.5161 GB, free: 480 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000869/0.3816, allocations: 0.9171 MB / 0.517 GB, free: 220 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.673e-05/0.3816, allocations: 98.16 kB / 0.517 GB, free: 108 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.448e-05/0.3816, allocations: 10.72 kB / 0.5171 GB, free: 104 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.889e-05/0.3817, allocations: 6.438 kB / 0.5171 GB, free: 104 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.626e-05/0.3817, allocations: 11.05 kB / 0.5171 GB, free: 96 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.043e-05/0.3818, allocations: 10.06 kB / 0.5171 GB, free: 96 kB / 382.1 MB Notification: Performance of sorting global known variables: time 7.216e-05/0.3818, allocations: 129.8 kB / 0.5172 GB, free: 4 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3818, allocations: 1.375 kB / 0.5172 GB, free: 4 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.001069/0.3829, allocations: 362.3 kB / 0.5176 GB, free: 15.95 MB / 398.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.002241/0.3852, allocations: 1.728 MB / 0.5192 GB, free: 15.09 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001427/0.3866, allocations: 1.596 MB / 0.5208 GB, free: 14.27 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.3866, allocations: 3.938 kB / 0.5208 GB, free: 14.27 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001281/0.3879, allocations: 1.372 MB / 0.5221 GB, free: 13.49 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002548/0.3882, allocations: 20.81 kB / 0.5222 GB, free: 13.48 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00417/0.3924, allocations: 3.679 MB / 0.5258 GB, free: 11.71 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003891/0.3928, allocations: 0.7534 MB / 0.5265 GB, free: 11.02 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.119e-05/0.3928, allocations: 0 / 0.5265 GB, free: 11.02 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.971e-05/0.3928, allocations: 50.66 kB / 0.5265 GB, free: 10.98 MB / 398.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3929, allocations: 0 / 0.5265 GB, free: 10.98 MB / 398.1 MB [CodegenCFunctions.tpl:5632:13-5632:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].