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.001091/0.001091, allocations: 112.8 kB / 17.06 MB, free: 5.973 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.001162/0.001162, allocations: 200 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.488/1.488, 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-master/package.mo): time 0.1789/0.1789, allocations: 38.06 MB / 329.9 MB, free: 8.738 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00139/0.00139, allocations: 63.91 kB / 457.7 MB, free: 7.34 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4068/0.4082, allocations: 58.06 MB / 0.5036 GB, free: 7.289 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc): time 0.003706/0.412, allocations: 2.155 MB / 0.5057 GB, free: 5.781 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001641/0.4137, allocations: 1.071 MB / 0.5068 GB, free: 5.059 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.766e-05/0.4137, allocations: 0 / 0.5068 GB, free: 5.059 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001454/0.4139, allocations: 16.31 kB / 0.5068 GB, free: 5.051 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001265/0.4141, allocations: 50 kB / 0.5068 GB, free: 5.027 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009648/0.415, allocations: 286.9 kB / 0.5071 GB, free: 4.926 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001995/0.4152, allocations: 117.7 kB / 0.5072 GB, free: 4.887 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.81e-05/0.4153, allocations: 3.891 kB / 0.5072 GB, free: 4.887 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001116/0.4154, allocations: 47.48 kB / 0.5073 GB, free: 4.871 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001217/0.4155, allocations: 71.75 kB / 0.5074 GB, free: 4.844 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.312e-05/0.4156, allocations: 6.219 kB / 0.5074 GB, free: 4.84 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007245/0.4163, allocations: 419.5 kB / 0.5078 GB, free: 4.703 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.164e-05/0.4164, allocations: 33.02 kB / 0.5078 GB, free: 4.699 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.776e-05/0.4164, allocations: 37.7 kB / 0.5078 GB, free: 4.68 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008839/0.4173, allocations: 0.5094 MB / 0.5083 GB, free: 4.59 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.4174, allocations: 1.125 kB / 0.5083 GB, free: 4.59 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.996e-06/0.4174, allocations: 3.938 kB / 0.5083 GB, free: 4.586 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.075e-05/0.4174, allocations: 3.938 kB / 0.5083 GB, free: 4.582 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.0005109/0.4179, allocations: 472.7 kB / 0.5088 GB, free: 4.129 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.659e-05/0.4179, allocations: 17.11 kB / 0.5088 GB, free: 4.121 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.525e-05/0.418, allocations: 69.05 kB / 0.5089 GB, free: 4.059 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.623e-05/0.4181, allocations: 15.62 kB / 0.5089 GB, free: 4.051 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000194/0.4183, allocations: 192.8 kB / 0.5091 GB, free: 3.844 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.828e-05/0.4183, allocations: 3.812 kB / 0.5091 GB, free: 3.844 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.145e-05/0.4183, allocations: 13.11 kB / 0.5091 GB, free: 3.836 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002838/0.4186, allocations: 129 kB / 0.5092 GB, free: 3.785 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.156e-05/0.4187, allocations: 0 / 0.5092 GB, free: 3.785 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.844e-05/0.4187, allocations: 5.375 kB / 0.5092 GB, free: 3.781 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.446e-06/0.4187, allocations: 2.562 kB / 0.5092 GB, free: 3.781 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001593/0.4189, allocations: 90.2 kB / 0.5093 GB, free: 3.758 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004161/0.4193, allocations: 353.1 kB / 0.5096 GB, free: 3.449 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001525/0.4194, allocations: 132.7 kB / 0.5098 GB, free: 3.367 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001199/0.4196, allocations: 119.6 kB / 0.5099 GB, free: 3.305 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.003e-05/0.4196, allocations: 0 / 0.5099 GB, free: 3.305 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.29e-05/0.4196, allocations: 40.19 kB / 0.5099 GB, free: 3.262 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 9.52e-07/0.4196, allocations: 4 kB / 0.5099 GB, free: 3.258 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004783/0.4201, allocations: 291.3 kB / 0.5102 GB, free: 3.148 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.277e-05/0.4202, allocations: 99.83 kB / 0.5103 GB, free: 3.047 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.367e-05/0.4203, allocations: 134.3 kB / 0.5104 GB, free: 2.938 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.289e-05/0.4203, allocations: 26.86 kB / 0.5104 GB, free: 2.906 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.203e-05/0.4203, allocations: 114.2 kB / 0.5106 GB, free: 2.801 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.467e-05/0.4204, allocations: 64.8 kB / 0.5106 GB, free: 2.75 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.683e-05/0.4204, allocations: 27.88 kB / 0.5106 GB, free: 2.73 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.285e-05/0.4205, allocations: 329.5 kB / 0.511 GB, free: 2.406 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.89e-05/0.4206, allocations: 57.89 kB / 0.511 GB, free: 2.395 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.51e-05/0.4207, allocations: 56.69 kB / 0.5111 GB, free: 2.383 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002471/0.421, allocations: 229.3 kB / 0.5113 GB, free: 2.281 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.704e-06/0.421, allocations: 0 / 0.5113 GB, free: 2.281 MB / 382.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003424/0.4213, allocations: 222 kB / 0.5115 GB, free: 2.18 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.804e-05/0.4214, allocations: 58.66 kB / 0.5115 GB, free: 2.145 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.4214, allocations: 1.312 kB / 0.5116 GB, free: 2.145 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.989e-05/0.4215, allocations: 0.7031 kB / 0.5116 GB, free: 2.145 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.955e-06/0.4215, allocations: 0 / 0.5116 GB, free: 2.145 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.862e-06/0.4215, allocations: 9.438 kB / 0.5116 GB, free: 2.137 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.106e-05/0.4216, allocations: 16.97 kB / 0.5116 GB, free: 2.125 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.733e-05/0.4216, allocations: 10.42 kB / 0.5116 GB, free: 2.121 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.0001446/0.4218, allocations: 184.9 kB / 0.5118 GB, free: 1.969 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.04e-05/0.4218, allocations: 17.31 kB / 0.5118 GB, free: 1.961 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.034e-05/0.4219, allocations: 9.266 kB / 0.5118 GB, free: 1.953 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/0.4219, allocations: 0.9375 kB / 0.5118 GB, free: 1.953 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.4219, allocations: 1.062 kB / 0.5118 GB, free: 1.953 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.344e-06/0.4219, allocations: 0 / 0.5118 GB, free: 1.953 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001901/0.4221, allocations: 217.5 kB / 0.512 GB, free: 1.738 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.4221, allocations: 1.094 kB / 0.512 GB, free: 1.738 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.144e-06/0.4221, allocations: 4.5 kB / 0.512 GB, free: 1.734 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.4221, allocations: 0 / 0.512 GB, free: 1.734 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.682e-05/0.4221, allocations: 6.422 kB / 0.512 GB, free: 1.734 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.4221, allocations: 0 / 0.512 GB, free: 1.734 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.4221, allocations: 0.6562 kB / 0.512 GB, free: 1.734 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005128/0.4227, allocations: 458.3 kB / 0.5124 GB, free: 1.5 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.498e-05/0.4227, allocations: 97.61 kB / 0.5125 GB, free: 1.391 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.582e-05/0.4227, allocations: 4.297 kB / 0.5125 GB, free: 1.391 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.721e-05/0.4228, allocations: 8.125 kB / 0.5126 GB, free: 1.387 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.569e-05/0.4228, allocations: 6.297 kB / 0.5126 GB, free: 1.383 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.605e-05/0.4229, allocations: 6.422 kB / 0.5126 GB, free: 1.383 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.511e-05/0.4229, allocations: 104.7 kB / 0.5127 GB, free: 1.301 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.423, allocations: 0 / 0.5127 GB, free: 1.301 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007032/0.4237, allocations: 139.2 kB / 0.5128 GB, free: 1.285 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.001475/0.4252, allocations: 1.241 MB / 0.514 GB, free: 464 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006584/0.4258, allocations: 0.5689 MB / 0.5146 GB, free: 136 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.4258, allocations: 0 / 0.5146 GB, free: 136 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004923/0.4263, allocations: 467.7 kB / 0.515 GB, free: 15.84 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003342/0.4267, allocations: 21.83 kB / 0.515 GB, free: 15.83 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003295/0.43, allocations: 2.44 MB / 0.5174 GB, free: 14.3 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003111/0.4303, allocations: 0.7294 MB / 0.5181 GB, free: 13.61 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.578e-05/0.4303, allocations: 1.531 kB / 0.5181 GB, free: 13.61 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.702e-05/0.4304, allocations: 39.66 kB / 0.5182 GB, free: 13.57 MB / 398.1 MB Notification: Performance of SimCode: time 5.71e-07/0.4304, allocations: 1.344 kB / 0.5182 GB, free: 13.57 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].