Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat.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.EqCircFromTransDat,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_EqCircFromTransDat",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_EqCircFromTransDat",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.00111/0.00111, allocations: 110.7 kB / 17.06 MB, free: 5.828 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.001099/0.001099, allocations: 200 kB / 18.01 MB, free: 4.938 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.388/1.388, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.178/0.178, allocations: 38.04 MB / 329.9 MB, free: 8.695 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001361/0.001361, allocations: 63.89 kB / 457.7 MB, free: 7.316 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3669/0.3683, allocations: 58.05 MB / 0.5036 GB, free: 7.473 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat): time 0.004203/0.3725, allocations: 2.147 MB / 0.5057 GB, free: 5.969 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002677/0.3752, allocations: 2.044 MB / 0.5077 GB, free: 4.598 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.319e-05/0.3753, allocations: 1.531 kB / 0.5077 GB, free: 4.598 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001334/0.3755, allocations: 10.62 kB / 0.5077 GB, free: 4.594 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001063/0.3756, allocations: 45.88 kB / 0.5078 GB, free: 4.566 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002291/0.3779, allocations: 0.8161 MB / 0.5086 GB, free: 4.289 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001695/0.3781, allocations: 99.03 kB / 0.5087 GB, free: 4.254 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.769e-05/0.3781, allocations: 8.906 kB / 0.5087 GB, free: 4.25 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.22e-05/0.3782, allocations: 44.5 kB / 0.5087 GB, free: 4.23 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.72e-05/0.3783, allocations: 55.31 kB / 0.5088 GB, free: 4.211 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.539e-05/0.3784, allocations: 2.312 kB / 0.5088 GB, free: 4.211 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002162/0.3805, allocations: 1.378 MB / 0.5101 GB, free: 3.785 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.259e-05/0.3806, allocations: 27.58 kB / 0.5101 GB, free: 3.781 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.679e-05/0.3807, allocations: 52.33 kB / 0.5102 GB, free: 3.746 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002011/0.3827, allocations: 1.32 MB / 0.5115 GB, free: 3.512 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.137e-06/0.3827, allocations: 4.656 kB / 0.5115 GB, free: 3.508 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.3827, allocations: 0 / 0.5115 GB, free: 3.508 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.39e-06/0.3827, allocations: 1.375 kB / 0.5115 GB, free: 3.508 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0006446/0.3834, allocations: 0.5466 MB / 0.512 GB, free: 2.996 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.331e-05/0.3834, allocations: 12.61 kB / 0.512 GB, free: 2.992 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.912e-05/0.3835, allocations: 66.77 kB / 0.5121 GB, free: 2.934 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.236e-05/0.3836, allocations: 19.95 kB / 0.5121 GB, free: 2.922 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001754/0.3837, allocations: 207.9 kB / 0.5123 GB, free: 2.703 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.336e-05/0.3838, allocations: 6.938 kB / 0.5123 GB, free: 2.699 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.729e-05/0.3838, allocations: 12.12 kB / 0.5123 GB, free: 2.691 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000224/0.384, allocations: 124.5 kB / 0.5125 GB, free: 2.641 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.796e-06/0.384, allocations: 0 / 0.5125 GB, free: 2.641 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.293e-05/0.384, allocations: 9.094 kB / 0.5125 GB, free: 2.633 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/0.3841, allocations: 2.25 kB / 0.5125 GB, free: 2.633 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001111/0.3842, allocations: 71.52 kB / 0.5125 GB, free: 2.621 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004038/0.3846, allocations: 356.3 kB / 0.5129 GB, free: 2.316 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.969e-05/0.3847, allocations: 81 kB / 0.5129 GB, free: 2.266 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.607e-05/0.3848, allocations: 74.11 kB / 0.513 GB, free: 2.23 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.446e-06/0.3848, allocations: 0 / 0.513 GB, free: 2.23 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.702e-05/0.3848, allocations: 32.58 kB / 0.513 GB, free: 2.191 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.012e-06/0.3848, allocations: 0 / 0.513 GB, free: 2.191 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0003578/0.3852, allocations: 230.7 kB / 0.5133 GB, free: 2.094 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.7e-05/0.3852, allocations: 87.12 kB / 0.5134 GB, free: 2 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001021/0.3853, allocations: 149.5 kB / 0.5135 GB, free: 1.891 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.068e-05/0.3854, allocations: 30.89 kB / 0.5135 GB, free: 1.855 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.563e-05/0.3854, allocations: 119.5 kB / 0.5136 GB, free: 1.746 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.384e-05/0.3854, allocations: 48.91 kB / 0.5137 GB, free: 1.707 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.101e-05/0.3855, allocations: 20.23 kB / 0.5137 GB, free: 1.691 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.706e-05/0.3856, allocations: 327.4 kB / 0.514 GB, free: 1.371 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.997e-05/0.3856, allocations: 40.78 kB / 0.5141 GB, free: 1.363 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.792e-05/0.3857, allocations: 41.97 kB / 0.5141 GB, free: 1.355 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001633/0.3858, allocations: 176 kB / 0.5143 GB, free: 1.27 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.3859, allocations: 5.281 kB / 0.5143 GB, free: 1.266 MB / 382.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000198/0.3861, allocations: 171.5 kB / 0.5144 GB, free: 1.184 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.616e-05/0.3861, allocations: 50.67 kB / 0.5145 GB, free: 1.148 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.3861, allocations: 0 / 0.5145 GB, free: 1.148 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.543e-05/0.3861, allocations: 2.25 kB / 0.5145 GB, free: 1.148 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.002e-06/0.3862, allocations: 0 / 0.5145 GB, free: 1.148 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.07e-06/0.3862, allocations: 0 / 0.5145 GB, free: 1.148 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.535e-05/0.3862, allocations: 8.984 kB / 0.5145 GB, free: 1.145 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.448e-05/0.3863, allocations: 4.875 kB / 0.5145 GB, free: 1.145 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.0001163/0.3864, allocations: 183.9 kB / 0.5147 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.139e-05/0.3864, allocations: 16.34 kB / 0.5147 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.903e-05/0.3864, allocations: 9.531 kB / 0.5147 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.3865, allocations: 1.078 kB / 0.5147 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.3865, allocations: 1.156 kB / 0.5147 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.524e-06/0.3865, allocations: 0 / 0.5147 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001671/0.3866, allocations: 217.2 kB / 0.5149 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.3866, allocations: 3.938 kB / 0.5149 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.3867, allocations: 0 / 0.5149 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.021e-06/0.3867, allocations: 0 / 0.5149 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.268e-05/0.3867, allocations: 5.125 kB / 0.5149 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.3867, allocations: 5.281 kB / 0.5149 GB, free: 0.75 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.3867, allocations: 0 / 0.5149 GB, free: 0.75 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003586/0.387, allocations: 376.3 kB / 0.5153 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.681e-05/0.3871, allocations: 84.75 kB / 0.5154 GB, free: 448 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.57e-05/0.3871, allocations: 2.438 kB / 0.5154 GB, free: 448 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.842e-05/0.3872, allocations: 3.719 kB / 0.5154 GB, free: 448 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.625e-05/0.3872, allocations: 1.922 kB / 0.5154 GB, free: 448 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.249e-05/0.3872, allocations: 9.719 kB / 0.5154 GB, free: 444 kB / 382.1 MB Notification: Performance of sorting global known variables: time 6.498e-05/0.3873, allocations: 120.9 kB / 0.5155 GB, free: 356 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3873, allocations: 1.625 kB / 0.5155 GB, free: 356 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.001372/0.3887, allocations: 343.4 kB / 0.5158 GB, free: 300 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.001884/0.3906, allocations: 1.283 MB / 0.5171 GB, free: 15.46 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003941/0.391, allocations: 337.1 kB / 0.5174 GB, free: 15.29 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.391, allocations: 0 / 0.5174 GB, free: 15.29 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002127/0.3912, allocations: 263 kB / 0.5176 GB, free: 15.13 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003681/0.3916, allocations: 17.81 kB / 0.5177 GB, free: 15.13 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002615/0.3942, allocations: 2.324 MB / 0.5199 GB, free: 13.62 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003182/0.3946, allocations: 0.7273 MB / 0.5206 GB, free: 12.92 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.07e-05/0.3946, allocations: 1.609 kB / 0.5206 GB, free: 12.92 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.719e-05/0.3946, allocations: 37.52 kB / 0.5207 GB, free: 12.89 MB / 398.1 MB Notification: Performance of SimCode: time 2.034e-06/0.3946, allocations: 0 / 0.5207 GB, free: 12.89 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].