Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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/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.TransDatFromEqCirc,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_TransDatFromEqCirc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc,fileNamePrefix="PowerSystems_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.001284/0.001284, allocations: 111.7 kB / 17.06 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.001265/0.001265, allocations: 198.8 kB / 18.01 MB, free: 5.066 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.364/1.364, 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/package.mo): time 0.1803/0.1803, allocations: 38.03 MB / 329.9 MB, free: 8.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002281/0.002282, allocations: 63.89 kB / 457.7 MB, free: 7.305 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4823/0.4846, allocations: 58.05 MB / 0.5036 GB, free: 7.559 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc): time 0.003639/0.4883, allocations: 2.159 MB / 0.5057 GB, free: 6.051 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001737/0.4901, allocations: 1.063 MB / 0.5068 GB, free: 5.336 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.749e-05/0.4902, allocations: 1.188 kB / 0.5068 GB, free: 5.336 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001694/0.4904, allocations: 14.8 kB / 0.5068 GB, free: 5.328 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001394/0.4905, allocations: 53.92 kB / 0.5068 GB, free: 5.301 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009973/0.4915, allocations: 286.5 kB / 0.5071 GB, free: 5.199 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001913/0.4917, allocations: 118.7 kB / 0.5072 GB, free: 5.16 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.428e-05/0.4918, allocations: 3.828 kB / 0.5072 GB, free: 5.16 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001057/0.4919, allocations: 48.59 kB / 0.5073 GB, free: 5.145 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001254/0.492, allocations: 70.36 kB / 0.5073 GB, free: 5.117 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.358e-05/0.492, allocations: 2.781 kB / 0.5073 GB, free: 5.117 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007081/0.4928, allocations: 419.4 kB / 0.5077 GB, free: 4.98 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.212e-05/0.4928, allocations: 37.52 kB / 0.5078 GB, free: 4.973 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.921e-05/0.4929, allocations: 37.16 kB / 0.5078 GB, free: 4.953 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007854/0.4937, allocations: 0.5208 MB / 0.5083 GB, free: 4.852 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.4937, allocations: 1.094 kB / 0.5083 GB, free: 4.852 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.4937, allocations: 0 / 0.5083 GB, free: 4.852 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.123e-06/0.4937, allocations: 0 / 0.5083 GB, free: 4.852 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.0004445/0.4942, allocations: 466.3 kB / 0.5088 GB, free: 4.402 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.859e-05/0.4942, allocations: 13.02 kB / 0.5088 GB, free: 4.398 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.879e-05/0.4943, allocations: 69.61 kB / 0.5088 GB, free: 4.336 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.574e-05/0.4944, allocations: 15.81 kB / 0.5089 GB, free: 4.328 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002038/0.4946, allocations: 201 kB / 0.509 GB, free: 4.113 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.536e-05/0.4946, allocations: 7.25 kB / 0.5091 GB, free: 4.109 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.927e-05/0.4946, allocations: 12.41 kB / 0.5091 GB, free: 4.102 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002775/0.4949, allocations: 129.3 kB / 0.5092 GB, free: 4.051 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.488e-06/0.4949, allocations: 0 / 0.5092 GB, free: 4.051 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.729e-05/0.4949, allocations: 1.734 kB / 0.5092 GB, free: 4.051 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.304e-06/0.495, allocations: 1.344 kB / 0.5092 GB, free: 4.051 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001546/0.4951, allocations: 92.25 kB / 0.5093 GB, free: 4.027 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004597/0.4956, allocations: 355.5 kB / 0.5096 GB, free: 3.715 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001539/0.4957, allocations: 133.2 kB / 0.5097 GB, free: 3.633 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001391/0.4959, allocations: 126 kB / 0.5099 GB, free: 3.566 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.039e-06/0.4959, allocations: 0 / 0.5099 GB, free: 3.566 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.881e-05/0.4959, allocations: 36.33 kB / 0.5099 GB, free: 3.523 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 9.62e-07/0.4959, allocations: 0.9688 kB / 0.5099 GB, free: 3.523 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005799/0.4965, allocations: 290.2 kB / 0.5102 GB, free: 3.414 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.241e-05/0.4966, allocations: 96.39 kB / 0.5103 GB, free: 3.316 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001093/0.4967, allocations: 134.1 kB / 0.5104 GB, free: 3.207 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.401e-05/0.4967, allocations: 27.17 kB / 0.5104 GB, free: 3.176 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.027e-05/0.4968, allocations: 113.2 kB / 0.5105 GB, free: 3.07 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.906e-05/0.4968, allocations: 64.55 kB / 0.5106 GB, free: 3.02 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.794e-05/0.4969, allocations: 28.39 kB / 0.5106 GB, free: 3 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.05e-05/0.497, allocations: 321.3 kB / 0.5109 GB, free: 2.684 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.151e-05/0.4971, allocations: 62.09 kB / 0.511 GB, free: 2.668 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.599e-05/0.4972, allocations: 61.69 kB / 0.511 GB, free: 2.652 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002564/0.4974, allocations: 227.1 kB / 0.5113 GB, free: 2.551 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.4974, allocations: 1.312 kB / 0.5113 GB, free: 2.551 MB / 382.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002883/0.4977, allocations: 222.1 kB / 0.5115 GB, free: 2.449 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.88e-05/0.4978, allocations: 59.45 kB / 0.5115 GB, free: 2.414 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.4978, allocations: 0 / 0.5115 GB, free: 2.414 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.4978, allocations: 0.5156 kB / 0.5115 GB, free: 2.414 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.473e-06/0.4978, allocations: 5.094 kB / 0.5115 GB, free: 2.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.4979, allocations: 4.062 kB / 0.5115 GB, free: 2.406 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.423e-05/0.4979, allocations: 12.94 kB / 0.5116 GB, free: 2.398 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.783e-05/0.498, allocations: 7.5 kB / 0.5116 GB, free: 2.398 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.0001511/0.4981, allocations: 181.1 kB / 0.5117 GB, free: 2.25 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.934e-05/0.4982, allocations: 16.83 kB / 0.5118 GB, free: 2.242 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.07e-05/0.4982, allocations: 13.06 kB / 0.5118 GB, free: 2.23 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.4982, allocations: 3.891 kB / 0.5118 GB, free: 2.23 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.4982, allocations: 1.906 kB / 0.5118 GB, free: 2.23 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.4982, allocations: 0 / 0.5118 GB, free: 2.23 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002171/0.4984, allocations: 214.7 kB / 0.512 GB, free: 2.02 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.32e-07/0.4984, allocations: 0 / 0.512 GB, free: 2.02 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.933e-06/0.4984, allocations: 7.875 kB / 0.512 GB, free: 2.012 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.843e-06/0.4985, allocations: 1.406 kB / 0.512 GB, free: 2.012 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.677e-05/0.4985, allocations: 4.719 kB / 0.512 GB, free: 2.012 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.4985, allocations: 2.047 kB / 0.512 GB, free: 2.012 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.4985, allocations: 7.922 kB / 0.512 GB, free: 2.004 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005803/0.4991, allocations: 458.5 kB / 0.5124 GB, free: 1.77 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.019e-05/0.4991, allocations: 101.1 kB / 0.5125 GB, free: 1.656 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.18e-05/0.4992, allocations: 9.531 kB / 0.5125 GB, free: 1.652 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.106e-05/0.4992, allocations: 3.375 kB / 0.5125 GB, free: 1.652 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.791e-05/0.4993, allocations: 6.797 kB / 0.5125 GB, free: 1.648 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.795e-05/0.4993, allocations: 6.312 kB / 0.5126 GB, free: 1.648 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.431e-05/0.4994, allocations: 100.7 kB / 0.5127 GB, free: 1.57 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4994, allocations: 0 / 0.5127 GB, free: 1.57 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006866/0.5001, allocations: 142.6 kB / 0.5128 GB, free: 1.551 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.001254/0.5013, allocations: 1.23 MB / 0.514 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005898/0.5019, allocations: 0.5686 MB / 0.5145 GB, free: 412 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.502, allocations: 0 / 0.5145 GB, free: 412 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003393/0.5023, allocations: 468.5 kB / 0.515 GB, free: 112 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003153/0.5026, allocations: 22.09 kB / 0.515 GB, free: 108 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003329/0.506, allocations: 2.443 MB / 0.5174 GB, free: 14.57 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004276/0.5064, allocations: 0.7327 MB / 0.5181 GB, free: 13.88 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.962e-05/0.5064, allocations: 2.5 kB / 0.5181 GB, free: 13.88 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.879e-05/0.5065, allocations: 35.62 kB / 0.5181 GB, free: 13.84 MB / 398.1 MB Notification: Performance of SimCode: time 8.02e-07/0.5065, allocations: 1.031 kB / 0.5181 GB, free: 13.84 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].