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.00123/0.00123, allocations: 105.5 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.001321/0.001321, allocations: 195 kB / 18 MB, free: 5.094 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.456/1.456, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1941/0.1941, allocations: 38.05 MB / 329.9 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001432/0.001433, allocations: 63.91 kB / 457.7 MB, free: 7.348 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3934/0.3948, allocations: 58.05 MB / 0.5036 GB, free: 7.391 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3): time 0.003719/0.3986, allocations: 2.103 MB / 0.5057 GB, free: 5.922 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003157/0.4018, allocations: 2.033 MB / 0.5077 GB, free: 4.566 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.999e-05/0.4019, allocations: 1.062 kB / 0.5077 GB, free: 4.566 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001497/0.4021, allocations: 15.08 kB / 0.5077 GB, free: 4.559 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001122/0.4022, allocations: 29.91 kB / 0.5077 GB, free: 4.543 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002788/0.405, allocations: 0.8345 MB / 0.5085 GB, free: 4.262 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000216/0.4053, allocations: 86.17 kB / 0.5086 GB, free: 4.227 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.552e-05/0.4053, allocations: 3.266 kB / 0.5086 GB, free: 4.227 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.894e-05/0.4054, allocations: 32.47 kB / 0.5086 GB, free: 4.215 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001048/0.4055, allocations: 52.72 kB / 0.5087 GB, free: 4.195 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.924e-05/0.4056, allocations: 3.25 kB / 0.5087 GB, free: 4.195 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002628/0.4082, allocations: 1.408 MB / 0.5101 GB, free: 3.758 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.092e-05/0.4083, allocations: 44.17 kB / 0.5101 GB, free: 3.746 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.733e-05/0.4084, allocations: 55.14 kB / 0.5102 GB, free: 3.707 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00292/0.4113, allocations: 1.378 MB / 0.5115 GB, free: 3.449 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.4113, allocations: 1.062 kB / 0.5115 GB, free: 3.449 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.215e-06/0.4113, allocations: 0 / 0.5115 GB, free: 3.449 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.679e-05/0.4114, allocations: 0 / 0.5115 GB, free: 3.449 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.0009714/0.4123, allocations: 0.6031 MB / 0.5121 GB, free: 2.918 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.721e-05/0.4124, allocations: 13.55 kB / 0.5121 GB, free: 2.914 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.649e-05/0.4125, allocations: 50.09 kB / 0.5122 GB, free: 2.867 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.086e-05/0.4125, allocations: 18.94 kB / 0.5122 GB, free: 2.855 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002405/0.4128, allocations: 219.5 kB / 0.5124 GB, free: 2.621 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.643e-05/0.4128, allocations: 5.375 kB / 0.5124 GB, free: 2.617 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.849e-05/0.4128, allocations: 2 kB / 0.5124 GB, free: 2.617 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000287/0.4131, allocations: 139.2 kB / 0.5125 GB, free: 2.559 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-06/0.4131, allocations: 0 / 0.5125 GB, free: 2.559 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.13e-05/0.4132, allocations: 1 kB / 0.5125 GB, free: 2.559 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.641e-06/0.4132, allocations: 0.6562 kB / 0.5125 GB, free: 2.559 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001473/0.4133, allocations: 101 kB / 0.5126 GB, free: 2.535 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001744/0.4135, allocations: 214.6 kB / 0.5128 GB, free: 2.312 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001807/0.4137, allocations: 154 kB / 0.513 GB, free: 2.234 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001691/0.4139, allocations: 148.2 kB / 0.5131 GB, free: 2.168 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.129e-05/0.4139, allocations: 2.766 kB / 0.5131 GB, free: 2.168 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.238e-05/0.4139, allocations: 32.34 kB / 0.5132 GB, free: 2.129 MB / 382.1 MB Notification: Performance of pre-optimization done (n=40): time 1.142e-06/0.4139, allocations: 0 / 0.5132 GB, free: 2.129 MB / 382.1 MB Notification: Performance of matching and sorting (n=40): time 0.0007713/0.4147, allocations: 0.4947 MB / 0.5136 GB, free: 1.969 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.162e-05/0.4148, allocations: 103.7 kB / 0.5137 GB, free: 1.875 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001565/0.4149, allocations: 173.6 kB / 0.5139 GB, free: 1.754 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.331e-05/0.415, allocations: 29.7 kB / 0.5139 GB, free: 1.719 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.698e-05/0.415, allocations: 104.7 kB / 0.514 GB, free: 1.621 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001041/0.4151, allocations: 127 kB / 0.5142 GB, free: 1.523 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.338e-05/0.4152, allocations: 33.66 kB / 0.5142 GB, free: 1.504 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.681e-05/0.4153, allocations: 342 kB / 0.5145 GB, free: 1.176 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001277/0.4154, allocations: 98.89 kB / 0.5146 GB, free: 1.152 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001205/0.4155, allocations: 100.7 kB / 0.5147 GB, free: 1.129 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004658/0.416, allocations: 378.5 kB / 0.5151 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.416, allocations: 0.5938 kB / 0.5151 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004972/0.4165, allocations: 338.2 kB / 0.5154 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001201/0.4167, allocations: 85.97 kB / 0.5155 GB, free: 0.832 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.4167, allocations: 0.6562 kB / 0.5155 GB, free: 0.832 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.822e-05/0.4167, allocations: 0.5156 kB / 0.5155 GB, free: 0.832 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.22e-07/0.4167, allocations: 0.6562 kB / 0.5155 GB, free: 0.832 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.284e-06/0.4167, allocations: 5.719 kB / 0.5155 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.605e-05/0.4168, allocations: 23.47 kB / 0.5155 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.605e-05/0.4169, allocations: 8.812 kB / 0.5155 GB, free: 0.8125 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.0002524/0.4171, allocations: 237.3 kB / 0.5157 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.707e-05/0.4172, allocations: 26.38 kB / 0.5158 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.459e-05/0.4172, allocations: 13.19 kB / 0.5158 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.4172, allocations: 0.6562 kB / 0.5158 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.4172, allocations: 0 / 0.5158 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.4172, allocations: 1.547 kB / 0.5158 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000181/0.4174, allocations: 244.8 kB / 0.516 GB, free: 416 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.4174, allocations: 4.797 kB / 0.516 GB, free: 412 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.61e-07/0.4174, allocations: 0 / 0.516 GB, free: 412 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.956e-06/0.4174, allocations: 5.312 kB / 0.516 GB, free: 408 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.287e-05/0.4175, allocations: 7.109 kB / 0.516 GB, free: 408 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.4175, allocations: 1.281 kB / 0.516 GB, free: 408 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.4175, allocations: 0 / 0.516 GB, free: 408 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001066/0.4186, allocations: 0.9199 MB / 0.5169 GB, free: 144 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.843e-05/0.4186, allocations: 101.6 kB / 0.517 GB, free: 32 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.486e-05/0.4187, allocations: 11.19 kB / 0.517 GB, free: 28 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.562e-05/0.4187, allocations: 5.312 kB / 0.517 GB, free: 28 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.783e-05/0.4187, allocations: 6.688 kB / 0.517 GB, free: 24 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.306e-05/0.4188, allocations: 14.86 kB / 0.5171 GB, free: 20 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001317/0.4189, allocations: 124.9 kB / 0.5172 GB, free: 15.93 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4189, allocations: 0 / 0.5172 GB, free: 15.93 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001545/0.4205, allocations: 357.4 kB / 0.5175 GB, free: 15.89 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.002728/0.4232, allocations: 1.724 MB / 0.5192 GB, free: 15.04 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001572/0.4248, allocations: 1.594 MB / 0.5208 GB, free: 14.21 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.4248, allocations: 0 / 0.5208 GB, free: 14.21 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001106/0.4259, allocations: 1.372 MB / 0.5221 GB, free: 13.44 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002552/0.4262, allocations: 24.02 kB / 0.5221 GB, free: 13.43 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004388/0.4306, allocations: 3.669 MB / 0.5257 GB, free: 11.68 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003528/0.431, allocations: 0.7517 MB / 0.5264 GB, free: 10.98 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.694e-05/0.431, allocations: 2.609 kB / 0.5264 GB, free: 10.98 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.897e-05/0.4311, allocations: 46.75 kB / 0.5265 GB, free: 10.94 MB / 398.1 MB Notification: Performance of SimCode: time 6.41e-07/0.4311, allocations: 0 / 0.5265 GB, free: 10.94 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].