Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2.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_matrixTrDat2,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2",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.001363/0.001363, allocations: 113.3 kB / 17.06 MB, free: 5.965 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.001292/0.001292, allocations: 197.3 kB / 18.01 MB, free: 5.047 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.44/1.44, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.183/0.183, allocations: 38.03 MB / 329.9 MB, free: 8.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002179/0.002179, allocations: 60.05 kB / 457.6 MB, free: 7.309 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4156/0.4178, allocations: 58.07 MB / 0.5036 GB, free: 7.52 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2): time 0.003151/0.421, allocations: 2.105 MB / 0.5057 GB, free: 6.051 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002652/0.4237, allocations: 2.036 MB / 0.5077 GB, free: 4.688 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.254e-05/0.4237, allocations: 1.125 kB / 0.5077 GB, free: 4.688 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001419/0.4239, allocations: 9.703 kB / 0.5077 GB, free: 4.684 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001098/0.424, allocations: 32.72 kB / 0.5077 GB, free: 4.664 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002304/0.4263, allocations: 0.832 MB / 0.5085 GB, free: 4.383 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001441/0.4265, allocations: 80.92 kB / 0.5086 GB, free: 4.352 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.763e-05/0.4265, allocations: 6.953 kB / 0.5086 GB, free: 4.352 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.998e-05/0.4266, allocations: 28.67 kB / 0.5086 GB, free: 4.344 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.668e-05/0.4267, allocations: 48.73 kB / 0.5087 GB, free: 4.324 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.476e-05/0.4267, allocations: 2.312 kB / 0.5087 GB, free: 4.324 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002281/0.429, allocations: 1.4 MB / 0.5101 GB, free: 3.895 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.472e-05/0.4291, allocations: 34.45 kB / 0.5101 GB, free: 3.883 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.743e-05/0.4292, allocations: 36.11 kB / 0.5101 GB, free: 3.859 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002225/0.4314, allocations: 1.363 MB / 0.5115 GB, free: 3.602 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.906e-06/0.4314, allocations: 1 kB / 0.5115 GB, free: 3.602 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.4314, allocations: 0 / 0.5115 GB, free: 3.602 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.101e-06/0.4314, allocations: 3.938 kB / 0.5115 GB, free: 3.598 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0007719/0.4322, allocations: 0.5718 MB / 0.512 GB, free: 3.074 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.568e-05/0.4323, allocations: 13.38 kB / 0.512 GB, free: 3.07 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.982e-05/0.4323, allocations: 40.22 kB / 0.5121 GB, free: 3.027 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.179e-05/0.4324, allocations: 19.7 kB / 0.5121 GB, free: 3.016 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001861/0.4325, allocations: 205.9 kB / 0.5123 GB, free: 2.793 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.763e-06/0.4326, allocations: 1.5 kB / 0.5123 GB, free: 2.793 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.39e-05/0.4326, allocations: 0 / 0.5123 GB, free: 2.793 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000201/0.4328, allocations: 96.36 kB / 0.5124 GB, free: 2.75 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.4328, allocations: 0.7031 kB / 0.5124 GB, free: 2.75 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.889e-06/0.4328, allocations: 0 / 0.5124 GB, free: 2.75 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.967e-06/0.4328, allocations: 1.188 kB / 0.5124 GB, free: 2.75 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.603e-05/0.4329, allocations: 61.17 kB / 0.5124 GB, free: 2.738 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001538/0.4331, allocations: 200 kB / 0.5126 GB, free: 2.52 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001218/0.4332, allocations: 101.2 kB / 0.5127 GB, free: 2.465 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001059/0.4333, allocations: 91.73 kB / 0.5128 GB, free: 2.426 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.807e-06/0.4333, allocations: 0 / 0.5128 GB, free: 2.426 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.791e-05/0.4334, allocations: 31.81 kB / 0.5128 GB, free: 2.387 MB / 382.1 MB Notification: Performance of pre-optimization done (n=24): time 8.42e-07/0.4334, allocations: 3.938 kB / 0.5128 GB, free: 2.383 MB / 382.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005707/0.4339, allocations: 319.9 kB / 0.5131 GB, free: 2.273 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.998e-05/0.434, allocations: 106.9 kB / 0.5133 GB, free: 2.168 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001223/0.4341, allocations: 147.2 kB / 0.5134 GB, free: 2.059 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.698e-06/0.4341, allocations: 27.23 kB / 0.5134 GB, free: 2.027 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.673e-05/0.4342, allocations: 98.45 kB / 0.5135 GB, free: 1.934 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.455e-05/0.4343, allocations: 84.44 kB / 0.5136 GB, free: 1.867 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.711e-05/0.4343, allocations: 28.31 kB / 0.5136 GB, free: 1.848 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.488e-05/0.4344, allocations: 334.2 kB / 0.5139 GB, free: 1.523 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.702e-05/0.4345, allocations: 63.72 kB / 0.514 GB, free: 1.508 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.536e-05/0.4346, allocations: 60.62 kB / 0.5141 GB, free: 1.5 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002669/0.4349, allocations: 251.7 kB / 0.5143 GB, free: 1.398 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.4349, allocations: 1.094 kB / 0.5143 GB, free: 1.398 MB / 382.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002976/0.4352, allocations: 233.8 kB / 0.5145 GB, free: 1.301 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.582e-05/0.4353, allocations: 68.42 kB / 0.5146 GB, free: 1.262 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.4353, allocations: 0 / 0.5146 GB, free: 1.262 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2e-05/0.4353, allocations: 1.062 kB / 0.5146 GB, free: 1.262 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.703e-06/0.4353, allocations: 0.9375 kB / 0.5146 GB, free: 1.262 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.721e-06/0.4353, allocations: 1.219 kB / 0.5146 GB, free: 1.262 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.823e-05/0.4354, allocations: 20.55 kB / 0.5146 GB, free: 1.246 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.909e-05/0.4354, allocations: 7.422 kB / 0.5146 GB, free: 1.246 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.0001546/0.4356, allocations: 194.9 kB / 0.5148 GB, free: 1.094 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.94e-05/0.4356, allocations: 20.78 kB / 0.5148 GB, free: 1.086 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.801e-05/0.4356, allocations: 11.39 kB / 0.5148 GB, free: 1.078 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.4356, allocations: 3.938 kB / 0.5148 GB, free: 1.074 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.4356, allocations: 0.8438 kB / 0.5148 GB, free: 1.074 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.4357, allocations: 0.9688 kB / 0.5148 GB, free: 1.074 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000137/0.4358, allocations: 213.1 kB / 0.515 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.4358, allocations: 4 kB / 0.515 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.82e-07/0.4358, allocations: 0 / 0.515 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.4358, allocations: 1.125 kB / 0.515 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.776e-05/0.4358, allocations: 5.047 kB / 0.5151 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.794e-06/0.4358, allocations: 1 kB / 0.5151 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.4358, allocations: 0.7031 kB / 0.5151 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007444/0.4366, allocations: 0.5227 MB / 0.5156 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.985e-05/0.4366, allocations: 93.73 kB / 0.5157 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.375e-05/0.4367, allocations: 13.02 kB / 0.5157 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.169e-05/0.4367, allocations: 3.812 kB / 0.5157 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.401e-05/0.4368, allocations: 6.984 kB / 0.5157 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.375e-05/0.4368, allocations: 7.297 kB / 0.5157 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001001/0.4369, allocations: 113 kB / 0.5158 GB, free: 484 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4369, allocations: 0 / 0.5158 GB, free: 484 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.001839/0.4388, allocations: 341.2 kB / 0.5161 GB, free: 436 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.002167/0.4409, allocations: 1.326 MB / 0.5174 GB, free: 15.65 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009138/0.4419, allocations: 0.7131 MB / 0.5181 GB, free: 15.31 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.4419, allocations: 0 / 0.5181 GB, free: 15.31 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006092/0.4425, allocations: 0.5702 MB / 0.5187 GB, free: 15 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002477/0.4427, allocations: 18.3 kB / 0.5187 GB, free: 15 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003582/0.4463, allocations: 2.677 MB / 0.5213 GB, free: 13.46 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004157/0.4468, allocations: 0.726 MB / 0.522 GB, free: 12.77 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.681e-05/0.4468, allocations: 2.203 kB / 0.522 GB, free: 12.77 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.43e-05/0.4469, allocations: 32.91 kB / 0.522 GB, free: 12.74 MB / 398.1 MB Notification: Performance of SimCode: time 3.61e-07/0.4469, allocations: 0 / 0.522 GB, free: 12.74 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].