Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3,fileNamePrefix="PowerSystems_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.001618/0.001618, allocations: 109.8 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.001784/0.001784, allocations: 189.4 kB / 18 MB, free: 5.102 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.461/1.461, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1756/0.1756, allocations: 38.04 MB / 329.9 MB, free: 8.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001878/0.001878, allocations: 67.89 kB / 457.7 MB, free: 7.316 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3474/0.3493, allocations: 58.05 MB / 0.5036 GB, free: 7.566 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3): time 0.00352/0.3528, allocations: 2.107 MB / 0.5057 GB, free: 6.094 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002974/0.3558, allocations: 2.039 MB / 0.5077 GB, free: 4.73 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.585e-05/0.356, allocations: 0 / 0.5077 GB, free: 4.73 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001349/0.3561, allocations: 19.92 kB / 0.5077 GB, free: 4.719 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001037/0.3563, allocations: 28.83 kB / 0.5077 GB, free: 4.703 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002674/0.359, allocations: 0.8265 MB / 0.5085 GB, free: 4.426 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001581/0.3591, allocations: 74.27 kB / 0.5086 GB, free: 4.402 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.434e-05/0.3592, allocations: 7.734 kB / 0.5086 GB, free: 4.402 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.442e-05/0.3593, allocations: 39.52 kB / 0.5086 GB, free: 4.383 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.875e-05/0.3594, allocations: 48.69 kB / 0.5087 GB, free: 4.367 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.715e-05/0.3594, allocations: 2.094 kB / 0.5087 GB, free: 4.367 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002812/0.3622, allocations: 1.405 MB / 0.5101 GB, free: 3.934 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.345e-05/0.3623, allocations: 44 kB / 0.5101 GB, free: 3.922 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.522e-05/0.3624, allocations: 55.16 kB / 0.5102 GB, free: 3.883 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003159/0.3656, allocations: 1.383 MB / 0.5115 GB, free: 3.621 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.3656, allocations: 0.9375 kB / 0.5115 GB, free: 3.621 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.3656, allocations: 0 / 0.5115 GB, free: 3.621 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.476e-05/0.3657, allocations: 0 / 0.5115 GB, free: 3.621 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.001012/0.3667, allocations: 0.6259 MB / 0.5121 GB, free: 3.066 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.028e-05/0.3667, allocations: 13.27 kB / 0.5121 GB, free: 3.062 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.268e-05/0.3668, allocations: 49.5 kB / 0.5122 GB, free: 3.016 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.568e-05/0.3668, allocations: 22.3 kB / 0.5122 GB, free: 3 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001618/0.367, allocations: 212.9 kB / 0.5124 GB, free: 2.773 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.108e-05/0.367, allocations: 1.375 kB / 0.5124 GB, free: 2.773 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.611e-05/0.367, allocations: 2.078 kB / 0.5124 GB, free: 2.773 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000226/0.3673, allocations: 138.4 kB / 0.5125 GB, free: 2.715 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.295e-06/0.3673, allocations: 0.9844 kB / 0.5125 GB, free: 2.715 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.025e-05/0.3673, allocations: 5.031 kB / 0.5125 GB, free: 2.711 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.248e-06/0.3673, allocations: 2.812 kB / 0.5125 GB, free: 2.711 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001118/0.3674, allocations: 95.81 kB / 0.5126 GB, free: 2.691 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001564/0.3676, allocations: 215.2 kB / 0.5128 GB, free: 2.469 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001645/0.3678, allocations: 163.2 kB / 0.513 GB, free: 2.383 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001338/0.3679, allocations: 147.1 kB / 0.5131 GB, free: 2.316 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.987e-06/0.3679, allocations: 0 / 0.5131 GB, free: 2.316 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.882e-05/0.3679, allocations: 36.3 kB / 0.5132 GB, free: 2.273 MB / 382.1 MB Notification: Performance of pre-optimization done (n=40): time 8.42e-07/0.368, allocations: 1.125 kB / 0.5132 GB, free: 2.273 MB / 382.1 MB Notification: Performance of matching and sorting (n=40): time 0.0006755/0.3686, allocations: 497.8 kB / 0.5136 GB, free: 2.121 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.425e-05/0.3687, allocations: 105.4 kB / 0.5138 GB, free: 2.027 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00014/0.3688, allocations: 176.7 kB / 0.5139 GB, free: 1.902 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.092e-05/0.3689, allocations: 25.7 kB / 0.5139 GB, free: 1.871 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.984e-05/0.3689, allocations: 105.2 kB / 0.514 GB, free: 1.773 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.125e-05/0.369, allocations: 135.5 kB / 0.5142 GB, free: 1.668 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.666e-05/0.3691, allocations: 33.94 kB / 0.5142 GB, free: 1.648 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.763e-05/0.3691, allocations: 346.1 kB / 0.5145 GB, free: 1.316 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001192/0.3693, allocations: 102.6 kB / 0.5146 GB, free: 1.289 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001266/0.3694, allocations: 99.91 kB / 0.5147 GB, free: 1.266 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005256/0.3699, allocations: 379.7 kB / 0.5151 GB, free: 1.133 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.3699, allocations: 0 / 0.5151 GB, free: 1.133 MB / 382.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000523/0.3705, allocations: 338.1 kB / 0.5154 GB, free: 1.008 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001242/0.3706, allocations: 88.38 kB / 0.5155 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.3706, allocations: 0 / 0.5155 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.964e-05/0.3706, allocations: 0.7188 kB / 0.5155 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.184e-06/0.3706, allocations: 8.562 kB / 0.5155 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/0.3707, allocations: 0 / 0.5155 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.35e-05/0.3708, allocations: 20.47 kB / 0.5155 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.456e-05/0.3708, allocations: 8.688 kB / 0.5155 GB, free: 0.9492 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.0002357/0.371, allocations: 238 kB / 0.5158 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.729e-05/0.3711, allocations: 25.67 kB / 0.5158 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.385e-05/0.3711, allocations: 13.62 kB / 0.5158 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.407e-06/0.3711, allocations: 1.281 kB / 0.5158 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.012e-06/0.3711, allocations: 4 kB / 0.5158 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.3711, allocations: 0 / 0.5158 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001703/0.3713, allocations: 243.6 kB / 0.516 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.3713, allocations: 1.844 kB / 0.516 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.61e-07/0.3713, allocations: 0 / 0.516 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-06/0.3713, allocations: 0 / 0.516 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.385e-05/0.3714, allocations: 8.109 kB / 0.516 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.3714, allocations: 0.9375 kB / 0.516 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.3714, allocations: 0 / 0.516 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001035/0.3724, allocations: 0.9198 MB / 0.5169 GB, free: 288 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.316e-05/0.3725, allocations: 103.3 kB / 0.517 GB, free: 172 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.56e-05/0.3725, allocations: 8.062 kB / 0.5171 GB, free: 172 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.344e-05/0.3726, allocations: 4.781 kB / 0.5171 GB, free: 172 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.866e-05/0.3726, allocations: 14.12 kB / 0.5171 GB, free: 164 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.148e-05/0.3726, allocations: 8.5 kB / 0.5171 GB, free: 164 kB / 382.1 MB Notification: Performance of sorting global known variables: time 8.205e-05/0.3727, allocations: 125 kB / 0.5172 GB, free: 76 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3727, allocations: 1.469 kB / 0.5172 GB, free: 76 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.001706/0.3744, allocations: 364 kB / 0.5175 GB, free: 24 kB / 382.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.002826/0.3773, allocations: 1.731 MB / 0.5192 GB, free: 15.16 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001786/0.3791, allocations: 1.599 MB / 0.5208 GB, free: 14.34 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.3791, allocations: 4.094 kB / 0.5208 GB, free: 14.34 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001191/0.3803, allocations: 1.372 MB / 0.5221 GB, free: 13.56 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002698/0.3806, allocations: 20.81 kB / 0.5222 GB, free: 13.55 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004801/0.3854, allocations: 3.678 MB / 0.5258 GB, free: 11.79 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004524/0.3859, allocations: 0.7525 MB / 0.5265 GB, free: 11.09 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.894e-05/0.3859, allocations: 1.938 kB / 0.5265 GB, free: 11.09 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.182e-05/0.386, allocations: 49.78 kB / 0.5265 GB, free: 11.05 MB / 398.1 MB Notification: Performance of SimCode: time 8.32e-07/0.386, allocations: 0 / 0.5265 GB, free: 11.05 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].