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.001273/0.001273, allocations: 112.6 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.001337/0.001337, allocations: 191.9 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.392/1.392, allocations: 222.9 MB / 241.7 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1795/0.1795, allocations: 38.03 MB / 329.9 MB, free: 8.703 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001457/0.001457, allocations: 63.91 kB / 457.7 MB, free: 7.34 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4052/0.4067, allocations: 58.06 MB / 0.5036 GB, free: 7.531 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3): time 0.003175/0.4099, allocations: 2.096 MB / 0.5057 GB, free: 6.07 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002633/0.4126, allocations: 2.041 MB / 0.5077 GB, free: 4.703 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.482e-05/0.4126, allocations: 5.125 kB / 0.5077 GB, free: 4.699 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001418/0.4128, allocations: 15.27 kB / 0.5077 GB, free: 4.691 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.993e-05/0.4129, allocations: 28.84 kB / 0.5077 GB, free: 4.676 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002265/0.4152, allocations: 0.8332 MB / 0.5085 GB, free: 4.395 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001567/0.4153, allocations: 74.08 kB / 0.5086 GB, free: 4.371 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.106e-05/0.4154, allocations: 8 kB / 0.5086 GB, free: 4.367 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.228e-05/0.4155, allocations: 36.45 kB / 0.5086 GB, free: 4.352 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001011/0.4156, allocations: 51.92 kB / 0.5087 GB, free: 4.332 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.494e-05/0.4156, allocations: 3.281 kB / 0.5087 GB, free: 4.332 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002468/0.4181, allocations: 1.404 MB / 0.5101 GB, free: 3.898 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.775e-05/0.4182, allocations: 44.22 kB / 0.5101 GB, free: 3.887 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.245e-05/0.4183, allocations: 46.95 kB / 0.5102 GB, free: 3.855 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002217/0.4205, allocations: 1.393 MB / 0.5115 GB, free: 3.586 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.4205, allocations: 0 / 0.5115 GB, free: 3.586 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.522e-06/0.4205, allocations: 1.094 kB / 0.5115 GB, free: 3.586 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.031e-06/0.4205, allocations: 0 / 0.5115 GB, free: 3.586 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.0007741/0.4213, allocations: 0.6254 MB / 0.5121 GB, free: 3.031 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.747e-05/0.4214, allocations: 14.05 kB / 0.5121 GB, free: 3.027 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.444e-05/0.4214, allocations: 45 kB / 0.5122 GB, free: 2.984 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.637e-05/0.4215, allocations: 23.05 kB / 0.5122 GB, free: 2.969 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001667/0.4216, allocations: 217.1 kB / 0.5124 GB, free: 2.738 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.959e-06/0.4217, allocations: 4 kB / 0.5124 GB, free: 2.734 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.229e-05/0.4217, allocations: 1.25 kB / 0.5124 GB, free: 2.734 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002074/0.4219, allocations: 136.2 kB / 0.5125 GB, free: 2.68 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.766e-06/0.4219, allocations: 5.031 kB / 0.5125 GB, free: 2.676 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.198e-05/0.4219, allocations: 0 / 0.5125 GB, free: 2.676 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.74e-06/0.4219, allocations: 0.7812 kB / 0.5125 GB, free: 2.676 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001215/0.4221, allocations: 99.92 kB / 0.5126 GB, free: 2.652 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001712/0.4222, allocations: 211.5 kB / 0.5128 GB, free: 2.434 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001763/0.4224, allocations: 163.1 kB / 0.513 GB, free: 2.348 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001456/0.4226, allocations: 147.7 kB / 0.5131 GB, free: 2.281 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.045e-06/0.4226, allocations: 0 / 0.5131 GB, free: 2.281 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.804e-05/0.4226, allocations: 36.25 kB / 0.5132 GB, free: 2.238 MB / 382.1 MB Notification: Performance of pre-optimization done (n=40): time 8.92e-07/0.4226, allocations: 1.125 kB / 0.5132 GB, free: 2.238 MB / 382.1 MB Notification: Performance of matching and sorting (n=40): time 0.0007369/0.4234, allocations: 494 kB / 0.5136 GB, free: 2.09 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.663e-05/0.4234, allocations: 108.8 kB / 0.5138 GB, free: 1.992 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001373/0.4236, allocations: 167.7 kB / 0.5139 GB, free: 1.875 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.298e-05/0.4236, allocations: 31.72 kB / 0.5139 GB, free: 1.84 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.347e-05/0.4236, allocations: 104.2 kB / 0.514 GB, free: 1.742 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.11e-05/0.4237, allocations: 140 kB / 0.5142 GB, free: 1.633 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.345e-05/0.4238, allocations: 37.95 kB / 0.5142 GB, free: 1.609 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.533e-05/0.4239, allocations: 336.8 kB / 0.5145 GB, free: 1.285 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001185/0.424, allocations: 102.4 kB / 0.5146 GB, free: 1.258 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000109/0.4241, allocations: 97.75 kB / 0.5147 GB, free: 1.238 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004329/0.4246, allocations: 378.2 kB / 0.5151 GB, free: 1.105 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.4246, allocations: 0 / 0.5151 GB, free: 1.105 MB / 382.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004872/0.4251, allocations: 338.8 kB / 0.5154 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001119/0.4252, allocations: 89.72 kB / 0.5155 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.678e-06/0.4252, allocations: 0.5625 kB / 0.5155 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.56e-05/0.4252, allocations: 5.594 kB / 0.5155 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.455e-06/0.4252, allocations: 6.703 kB / 0.5155 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.02e-06/0.4252, allocations: 0.5 kB / 0.5155 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.549e-05/0.4253, allocations: 20.38 kB / 0.5155 GB, free: 0.918 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.875e-05/0.4254, allocations: 9.234 kB / 0.5155 GB, free: 0.918 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.0002306/0.4256, allocations: 242.1 kB / 0.5158 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.754e-05/0.4257, allocations: 25.67 kB / 0.5158 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.065e-05/0.4257, allocations: 12.34 kB / 0.5158 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.235e-06/0.4257, allocations: 5.156 kB / 0.5158 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/0.4257, allocations: 0.5312 kB / 0.5158 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.806e-06/0.4257, allocations: 0.5938 kB / 0.5158 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001691/0.4259, allocations: 245.8 kB / 0.516 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.4259, allocations: 0 / 0.516 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.61e-07/0.4259, allocations: 1.406 kB / 0.516 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.152e-06/0.4259, allocations: 0 / 0.516 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.293e-05/0.4259, allocations: 8.422 kB / 0.5161 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.113e-06/0.4259, allocations: 0 / 0.5161 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.4259, allocations: 1.312 kB / 0.5161 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001033/0.427, allocations: 0.9154 MB / 0.5169 GB, free: 256 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.446e-05/0.427, allocations: 103.1 kB / 0.517 GB, free: 140 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.828e-05/0.4271, allocations: 14.38 kB / 0.5171 GB, free: 132 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.321e-05/0.4271, allocations: 5.219 kB / 0.5171 GB, free: 132 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.07e-05/0.4272, allocations: 4.672 kB / 0.5171 GB, free: 132 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.061e-05/0.4272, allocations: 9.578 kB / 0.5171 GB, free: 132 kB / 382.1 MB Notification: Performance of sorting global known variables: time 7.893e-05/0.4273, allocations: 130.4 kB / 0.5172 GB, free: 40 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4273, allocations: 1.094 kB / 0.5172 GB, free: 40 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.001415/0.4287, allocations: 362.2 kB / 0.5175 GB, free: 15.98 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.00255/0.4313, allocations: 1.721 MB / 0.5192 GB, free: 15.13 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001633/0.4329, allocations: 1.607 MB / 0.5208 GB, free: 14.3 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.4329, allocations: 0.8438 kB / 0.5208 GB, free: 14.3 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001183/0.4341, allocations: 1.372 MB / 0.5221 GB, free: 13.52 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003592/0.4345, allocations: 19.75 kB / 0.5222 GB, free: 13.52 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004638/0.4391, allocations: 3.686 MB / 0.5258 GB, free: 11.75 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000346/0.4395, allocations: 0.7531 MB / 0.5265 GB, free: 11.05 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.717e-05/0.4395, allocations: 0.5625 kB / 0.5265 GB, free: 11.05 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.325e-05/0.4396, allocations: 49.81 kB / 0.5265 GB, free: 11.01 MB / 398.1 MB Notification: Performance of SimCode: time 5.71e-07/0.4396, allocations: 0 / 0.5265 GB, free: 11.01 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].