Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc.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.TransDatFromEqCirc,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_TransDatFromEqCirc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_TransDatFromEqCirc",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.001626/0.001626, allocations: 112.1 kB / 17.07 MB, free: 5.992 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.001866/0.001867, allocations: 198.8 kB / 18.01 MB, free: 5.074 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.468/1.468, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1787/0.1787, allocations: 38.05 MB / 329.9 MB, free: 8.719 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001463/0.001463, allocations: 67.89 kB / 457.7 MB, free: 7.32 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4018/0.4033, allocations: 58.06 MB / 0.5036 GB, free: 7.531 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc): time 0.00313/0.4065, allocations: 2.159 MB / 0.5057 GB, free: 6.02 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001409/0.4079, allocations: 1.063 MB / 0.5068 GB, free: 5.305 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.594e-05/0.4079, allocations: 1.125 kB / 0.5068 GB, free: 5.305 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001408/0.4081, allocations: 11.02 kB / 0.5068 GB, free: 5.301 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001183/0.4082, allocations: 50.44 kB / 0.5068 GB, free: 5.277 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000845/0.4091, allocations: 286.5 kB / 0.5071 GB, free: 5.176 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001736/0.4093, allocations: 121.8 kB / 0.5072 GB, free: 5.133 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.553e-05/0.4093, allocations: 4.594 kB / 0.5072 GB, free: 5.133 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.489e-05/0.4094, allocations: 52.06 kB / 0.5073 GB, free: 5.113 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001133/0.4095, allocations: 67.84 kB / 0.5074 GB, free: 5.09 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.361e-05/0.4096, allocations: 2.656 kB / 0.5074 GB, free: 5.09 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000642/0.4102, allocations: 418 kB / 0.5078 GB, free: 4.953 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.191e-05/0.4103, allocations: 38.05 kB / 0.5078 GB, free: 4.945 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.265e-05/0.4103, allocations: 39.83 kB / 0.5078 GB, free: 4.922 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007351/0.4111, allocations: 0.5137 MB / 0.5083 GB, free: 4.828 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.4111, allocations: 1.438 kB / 0.5083 GB, free: 4.828 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.4111, allocations: 0 / 0.5083 GB, free: 4.828 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.919e-06/0.4111, allocations: 0 / 0.5083 GB, free: 4.828 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0004167/0.4115, allocations: 470.3 kB / 0.5088 GB, free: 4.375 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.105e-05/0.4116, allocations: 13.8 kB / 0.5088 GB, free: 4.371 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.493e-05/0.4117, allocations: 63.33 kB / 0.5089 GB, free: 4.312 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.764e-05/0.4117, allocations: 15.75 kB / 0.5089 GB, free: 4.305 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001608/0.4119, allocations: 205.8 kB / 0.5091 GB, free: 4.086 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.4e-05/0.4119, allocations: 7.375 kB / 0.5091 GB, free: 4.082 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.749e-05/0.4119, allocations: 9 kB / 0.5091 GB, free: 4.078 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00023/0.4121, allocations: 136.9 kB / 0.5092 GB, free: 4.023 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.657e-06/0.4122, allocations: 0 / 0.5092 GB, free: 4.023 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.335e-05/0.4122, allocations: 1.75 kB / 0.5092 GB, free: 4.023 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-06/0.4122, allocations: 6.406 kB / 0.5092 GB, free: 4.02 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001273/0.4123, allocations: 86.53 kB / 0.5093 GB, free: 4 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003837/0.4127, allocations: 356.8 kB / 0.5096 GB, free: 3.688 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001354/0.4129, allocations: 134 kB / 0.5098 GB, free: 3.605 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001067/0.413, allocations: 122.4 kB / 0.5099 GB, free: 3.539 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.345e-06/0.413, allocations: 0 / 0.5099 GB, free: 3.539 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.005e-05/0.413, allocations: 39.66 kB / 0.5099 GB, free: 3.492 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 9.52e-07/0.413, allocations: 1.156 kB / 0.5099 GB, free: 3.492 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004833/0.4135, allocations: 287.5 kB / 0.5102 GB, free: 3.387 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.65e-05/0.4136, allocations: 95.2 kB / 0.5103 GB, free: 3.289 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.965e-05/0.4137, allocations: 141.1 kB / 0.5104 GB, free: 3.176 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.084e-05/0.4137, allocations: 27.3 kB / 0.5105 GB, free: 3.145 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.345e-05/0.4137, allocations: 108.8 kB / 0.5106 GB, free: 3.043 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.37e-05/0.4138, allocations: 69.09 kB / 0.5106 GB, free: 2.988 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.517e-05/0.4138, allocations: 26.84 kB / 0.5106 GB, free: 2.969 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.114e-05/0.4139, allocations: 323.4 kB / 0.511 GB, free: 2.652 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.324e-05/0.414, allocations: 57.61 kB / 0.511 GB, free: 2.641 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.426e-05/0.4141, allocations: 60.42 kB / 0.5111 GB, free: 2.625 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002164/0.4143, allocations: 232.8 kB / 0.5113 GB, free: 2.52 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.4143, allocations: 0 / 0.5113 GB, free: 2.52 MB / 382.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002646/0.4146, allocations: 222.5 kB / 0.5115 GB, free: 2.418 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.709e-05/0.4146, allocations: 56.03 kB / 0.5116 GB, free: 2.383 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.4146, allocations: 1.797 kB / 0.5116 GB, free: 2.383 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.431e-05/0.4147, allocations: 0 / 0.5116 GB, free: 2.383 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.473e-06/0.4147, allocations: 5 kB / 0.5116 GB, free: 2.379 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.239e-06/0.4147, allocations: 3.984 kB / 0.5116 GB, free: 2.375 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.783e-05/0.4147, allocations: 13.88 kB / 0.5116 GB, free: 2.367 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.43e-05/0.4148, allocations: 6.062 kB / 0.5116 GB, free: 2.367 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.0001278/0.4149, allocations: 186.2 kB / 0.5118 GB, free: 2.215 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.829e-05/0.4149, allocations: 15.95 kB / 0.5118 GB, free: 2.207 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.925e-05/0.415, allocations: 9.688 kB / 0.5118 GB, free: 2.199 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.834e-06/0.415, allocations: 0 / 0.5118 GB, free: 2.199 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.415, allocations: 0.5156 kB / 0.5118 GB, free: 2.199 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.415, allocations: 1.031 kB / 0.5118 GB, free: 2.199 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000197/0.4152, allocations: 213.6 kB / 0.512 GB, free: 1.988 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.21e-07/0.4152, allocations: 1.094 kB / 0.512 GB, free: 1.988 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.605e-06/0.4152, allocations: 8.531 kB / 0.512 GB, free: 1.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.4152, allocations: 5.031 kB / 0.512 GB, free: 1.977 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.57e-05/0.4152, allocations: 5.125 kB / 0.512 GB, free: 1.977 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.4152, allocations: 0 / 0.512 GB, free: 1.977 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.4152, allocations: 5.75 kB / 0.512 GB, free: 1.973 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004511/0.4157, allocations: 458.7 kB / 0.5125 GB, free: 1.738 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.84e-05/0.4157, allocations: 97.22 kB / 0.5125 GB, free: 1.629 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.609e-05/0.4158, allocations: 4.828 kB / 0.5126 GB, free: 1.629 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.997e-05/0.4158, allocations: 3.812 kB / 0.5126 GB, free: 1.629 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.729e-05/0.4159, allocations: 10.14 kB / 0.5126 GB, free: 1.621 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.415e-05/0.4159, allocations: 10.16 kB / 0.5126 GB, free: 1.617 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.181e-05/0.416, allocations: 101.3 kB / 0.5127 GB, free: 1.539 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.416, allocations: 0 / 0.5127 GB, free: 1.539 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006254/0.4166, allocations: 138.4 kB / 0.5128 GB, free: 1.523 MB / 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.001134/0.4177, allocations: 1.234 MB / 0.514 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005372/0.4183, allocations: 0.5641 MB / 0.5146 GB, free: 384 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.4183, allocations: 5.062 kB / 0.5146 GB, free: 380 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003418/0.4186, allocations: 467.9 kB / 0.515 GB, free: 80 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003045/0.419, allocations: 14.78 kB / 0.515 GB, free: 80 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002994/0.422, allocations: 2.447 MB / 0.5174 GB, free: 14.54 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003073/0.4223, allocations: 0.7335 MB / 0.5181 GB, free: 13.84 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.571e-05/0.4223, allocations: 2.312 kB / 0.5181 GB, free: 13.84 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.359e-05/0.4224, allocations: 36.52 kB / 0.5182 GB, free: 13.81 MB / 398.1 MB Notification: Performance of SimCode: time 3.41e-07/0.4224, allocations: 0 / 0.5182 GB, free: 13.81 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].