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.001648/0.001647, allocations: 113.5 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.0019/0.0019, allocations: 200 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.438/1.438, 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.2057/0.2057, allocations: 38.04 MB / 329.9 MB, free: 8.734 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00192/0.00192, allocations: 63.91 kB / 457.7 MB, free: 7.32 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3545/0.3564, allocations: 58.06 MB / 0.5036 GB, free: 7.504 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc): time 0.00339/0.3598, allocations: 2.157 MB / 0.5057 GB, free: 5.996 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001513/0.3614, allocations: 1.063 MB / 0.5068 GB, free: 5.281 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.658e-05/0.3615, allocations: 1.438 kB / 0.5068 GB, free: 5.281 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001717/0.3617, allocations: 19.53 kB / 0.5068 GB, free: 5.27 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001414/0.3618, allocations: 54.55 kB / 0.5069 GB, free: 5.242 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001082/0.3629, allocations: 277.5 kB / 0.5071 GB, free: 5.148 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002164/0.3631, allocations: 122 kB / 0.5072 GB, free: 5.105 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.948e-05/0.3632, allocations: 3.844 kB / 0.5072 GB, free: 5.105 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001125/0.3633, allocations: 52.17 kB / 0.5073 GB, free: 5.086 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001258/0.3635, allocations: 66.97 kB / 0.5074 GB, free: 5.062 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.655e-05/0.3635, allocations: 3.469 kB / 0.5074 GB, free: 5.062 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007648/0.3643, allocations: 414.7 kB / 0.5078 GB, free: 4.93 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.618e-05/0.3643, allocations: 45.77 kB / 0.5078 GB, free: 4.914 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.05e-05/0.3644, allocations: 37.78 kB / 0.5078 GB, free: 4.895 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009182/0.3653, allocations: 0.5125 MB / 0.5083 GB, free: 4.801 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.3654, allocations: 0 / 0.5083 GB, free: 4.801 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.916e-06/0.3654, allocations: 4.594 kB / 0.5083 GB, free: 4.797 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.654e-06/0.3654, allocations: 0 / 0.5083 GB, free: 4.797 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.0005391/0.3659, allocations: 468.6 kB / 0.5088 GB, free: 4.348 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.798e-05/0.366, allocations: 13.59 kB / 0.5088 GB, free: 4.344 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.203e-05/0.3661, allocations: 68.34 kB / 0.5089 GB, free: 4.281 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.93e-05/0.3661, allocations: 15.53 kB / 0.5089 GB, free: 4.273 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002011/0.3663, allocations: 197.6 kB / 0.5091 GB, free: 4.062 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.689e-05/0.3664, allocations: 3.25 kB / 0.5091 GB, free: 4.062 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.056e-05/0.3664, allocations: 13.88 kB / 0.5091 GB, free: 4.055 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000275/0.3667, allocations: 131.8 kB / 0.5092 GB, free: 4 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.17e-05/0.3667, allocations: 1.062 kB / 0.5092 GB, free: 4 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.535e-05/0.3667, allocations: 2.141 kB / 0.5092 GB, free: 4 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.58e-06/0.3667, allocations: 1.188 kB / 0.5092 GB, free: 4 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001564/0.3669, allocations: 92.06 kB / 0.5093 GB, free: 3.977 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003841/0.3673, allocations: 359.1 kB / 0.5096 GB, free: 3.66 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001511/0.3674, allocations: 129.7 kB / 0.5098 GB, free: 3.582 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000117/0.3676, allocations: 119 kB / 0.5099 GB, free: 3.52 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.046e-05/0.3676, allocations: 1.156 kB / 0.5099 GB, free: 3.52 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.222e-05/0.3676, allocations: 35.53 kB / 0.5099 GB, free: 3.477 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 1.873e-06/0.3676, allocations: 0 / 0.5099 GB, free: 3.477 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005279/0.3681, allocations: 303.8 kB / 0.5102 GB, free: 3.355 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.981e-05/0.3682, allocations: 91.44 kB / 0.5103 GB, free: 3.262 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.583e-05/0.3683, allocations: 130.4 kB / 0.5104 GB, free: 3.156 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.069e-05/0.3683, allocations: 26.92 kB / 0.5104 GB, free: 3.125 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.572e-05/0.3684, allocations: 113.1 kB / 0.5106 GB, free: 3.02 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.13e-05/0.3684, allocations: 62 kB / 0.5106 GB, free: 2.973 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.54e-05/0.3685, allocations: 27.64 kB / 0.5106 GB, free: 2.953 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.433e-05/0.3685, allocations: 325.6 kB / 0.5109 GB, free: 2.633 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.889e-05/0.3686, allocations: 57.27 kB / 0.511 GB, free: 2.621 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.046e-05/0.3687, allocations: 61.28 kB / 0.5111 GB, free: 2.605 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002129/0.3689, allocations: 231.9 kB / 0.5113 GB, free: 2.5 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.3689, allocations: 1.062 kB / 0.5113 GB, free: 2.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002359/0.3692, allocations: 221.8 kB / 0.5115 GB, free: 2.398 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.531e-05/0.3692, allocations: 59.36 kB / 0.5116 GB, free: 2.363 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.3692, allocations: 0 / 0.5116 GB, free: 2.363 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.506e-05/0.3693, allocations: 0.6562 kB / 0.5116 GB, free: 2.363 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.12e-07/0.3693, allocations: 1.281 kB / 0.5116 GB, free: 2.363 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.917e-06/0.3693, allocations: 4.062 kB / 0.5116 GB, free: 2.359 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.94e-05/0.3693, allocations: 17.08 kB / 0.5116 GB, free: 2.348 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.568e-05/0.3694, allocations: 6.781 kB / 0.5116 GB, free: 2.348 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.000122/0.3695, allocations: 180.9 kB / 0.5118 GB, free: 2.199 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.792e-05/0.3695, allocations: 17.91 kB / 0.5118 GB, free: 2.191 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.228e-05/0.3696, allocations: 12.88 kB / 0.5118 GB, free: 2.18 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.3696, allocations: 0 / 0.5118 GB, free: 2.18 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.81e-06/0.3696, allocations: 1.156 kB / 0.5118 GB, free: 2.18 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.3696, allocations: 0.6094 kB / 0.5118 GB, free: 2.18 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002049/0.3698, allocations: 213.2 kB / 0.512 GB, free: 1.969 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.888e-06/0.3698, allocations: 8.562 kB / 0.512 GB, free: 1.965 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.102e-06/0.3698, allocations: 3.938 kB / 0.512 GB, free: 1.961 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.3698, allocations: 1.094 kB / 0.512 GB, free: 1.961 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.833e-05/0.3698, allocations: 8.891 kB / 0.512 GB, free: 1.957 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.3699, allocations: 0.6562 kB / 0.512 GB, free: 1.957 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.3699, allocations: 0.875 kB / 0.512 GB, free: 1.957 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005403/0.3704, allocations: 458.4 kB / 0.5124 GB, free: 1.723 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.656e-05/0.3705, allocations: 98.47 kB / 0.5125 GB, free: 1.613 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.577e-05/0.3705, allocations: 4.031 kB / 0.5125 GB, free: 1.613 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.73e-05/0.3706, allocations: 8 kB / 0.5126 GB, free: 1.609 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.231e-05/0.3706, allocations: 5.984 kB / 0.5126 GB, free: 1.605 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.56e-05/0.3706, allocations: 7.328 kB / 0.5126 GB, free: 1.605 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.114e-05/0.3707, allocations: 100.8 kB / 0.5127 GB, free: 1.527 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3707, allocations: 0 / 0.5127 GB, free: 1.527 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007151/0.3714, allocations: 143.1 kB / 0.5128 GB, free: 1.508 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.001252/0.3727, allocations: 1.233 MB / 0.514 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005327/0.3732, allocations: 0.5654 MB / 0.5146 GB, free: 368 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.3732, allocations: 0 / 0.5146 GB, free: 368 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003224/0.3735, allocations: 467.9 kB / 0.515 GB, free: 68 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003012/0.3738, allocations: 22.59 kB / 0.515 GB, free: 60 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002999/0.3769, allocations: 2.449 MB / 0.5174 GB, free: 14.52 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004898/0.3774, allocations: 0.7295 MB / 0.5181 GB, free: 13.83 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.215e-05/0.3774, allocations: 1.797 kB / 0.5181 GB, free: 13.83 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.381e-05/0.3775, allocations: 31.92 kB / 0.5182 GB, free: 13.8 MB / 398.1 MB Notification: Performance of SimCode: time 3.3e-07/0.3775, allocations: 0 / 0.5182 GB, free: 13.8 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].