Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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-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.EqCircFromTransDat,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_EqCircFromTransDat",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat,fileNamePrefix="PowerSystems_latest_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.001501/0.001501, allocations: 106 kB / 17.06 MB, free: 6.133 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.001841/0.001841, allocations: 195 kB / 18 MB, free: 5.207 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.485/1.485, allocations: 222.9 MB / 241.7 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.234/0.234, allocations: 38.04 MB / 329.9 MB, free: 8.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001442/0.001442, allocations: 63.91 kB / 457.7 MB, free: 7.355 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3623/0.3637, allocations: 58.06 MB / 0.5036 GB, free: 7.469 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat): time 0.002969/0.3667, allocations: 2.15 MB / 0.5057 GB, free: 5.965 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002455/0.3692, allocations: 2.048 MB / 0.5077 GB, free: 4.598 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.519e-05/0.3693, allocations: 1.219 kB / 0.5077 GB, free: 4.598 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001294/0.3694, allocations: 9.703 kB / 0.5077 GB, free: 4.594 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001038/0.3695, allocations: 47.91 kB / 0.5078 GB, free: 4.566 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001989/0.3715, allocations: 0.8128 MB / 0.5086 GB, free: 4.293 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001519/0.3717, allocations: 98.42 kB / 0.5087 GB, free: 4.258 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.282e-05/0.3718, allocations: 12.66 kB / 0.5087 GB, free: 4.25 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.009e-05/0.3718, allocations: 41.16 kB / 0.5087 GB, free: 4.234 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.362e-05/0.3719, allocations: 50.92 kB / 0.5088 GB, free: 4.219 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.284e-05/0.3719, allocations: 2.188 kB / 0.5088 GB, free: 4.219 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001941/0.3739, allocations: 1.382 MB / 0.5101 GB, free: 3.789 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.107e-05/0.374, allocations: 31.64 kB / 0.5102 GB, free: 3.781 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.312e-05/0.374, allocations: 44.69 kB / 0.5102 GB, free: 3.754 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001875/0.3759, allocations: 1.321 MB / 0.5115 GB, free: 3.516 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.3759, allocations: 1.062 kB / 0.5115 GB, free: 3.516 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3759, allocations: 0 / 0.5115 GB, free: 3.516 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.013e-06/0.3759, allocations: 0 / 0.5115 GB, free: 3.516 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.0006129/0.3766, allocations: 0.5412 MB / 0.512 GB, free: 3.012 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/0.3766, allocations: 12.36 kB / 0.512 GB, free: 3.008 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.928e-05/0.3767, allocations: 68.09 kB / 0.5121 GB, free: 2.945 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.702e-05/0.3767, allocations: 20.34 kB / 0.5121 GB, free: 2.934 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001773/0.3769, allocations: 195.6 kB / 0.5123 GB, free: 2.727 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.521e-05/0.3769, allocations: 14.47 kB / 0.5123 GB, free: 2.715 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.805e-05/0.377, allocations: 9.703 kB / 0.5123 GB, free: 2.711 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002295/0.3772, allocations: 123.2 kB / 0.5124 GB, free: 2.66 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/0.3772, allocations: 4.547 kB / 0.5124 GB, free: 2.656 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.4e-05/0.3772, allocations: 5.312 kB / 0.5124 GB, free: 2.652 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.673e-06/0.3772, allocations: 2.375 kB / 0.5125 GB, free: 2.652 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001211/0.3774, allocations: 71.36 kB / 0.5125 GB, free: 2.641 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004284/0.3778, allocations: 364.5 kB / 0.5129 GB, free: 2.328 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00011/0.3779, allocations: 84.45 kB / 0.5129 GB, free: 2.273 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.135e-05/0.378, allocations: 62.5 kB / 0.513 GB, free: 2.246 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.041e-05/0.378, allocations: 1 kB / 0.513 GB, free: 2.246 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.077e-05/0.3781, allocations: 32.33 kB / 0.513 GB, free: 2.207 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.433e-06/0.3781, allocations: 0 / 0.513 GB, free: 2.207 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0003788/0.3784, allocations: 217.4 kB / 0.5132 GB, free: 2.121 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.677e-05/0.3785, allocations: 87.77 kB / 0.5133 GB, free: 2.027 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001322/0.3786, allocations: 153.7 kB / 0.5135 GB, free: 1.914 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.245e-05/0.3787, allocations: 25.7 kB / 0.5135 GB, free: 1.883 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.677e-05/0.3787, allocations: 124.9 kB / 0.5136 GB, free: 1.77 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.625e-05/0.3788, allocations: 44.33 kB / 0.5137 GB, free: 1.734 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.524e-05/0.3788, allocations: 24.61 kB / 0.5137 GB, free: 1.715 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.874e-05/0.3789, allocations: 322.6 kB / 0.514 GB, free: 1.398 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.128e-05/0.379, allocations: 36.92 kB / 0.514 GB, free: 1.395 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.387e-05/0.379, allocations: 41.89 kB / 0.5141 GB, free: 1.387 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001865/0.3792, allocations: 179.4 kB / 0.5142 GB, free: 1.297 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.3792, allocations: 1.188 kB / 0.5142 GB, free: 1.297 MB / 382.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002218/0.3795, allocations: 176.7 kB / 0.5144 GB, free: 1.211 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.93e-05/0.3795, allocations: 51.09 kB / 0.5145 GB, free: 1.176 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.647e-06/0.3795, allocations: 0 / 0.5145 GB, free: 1.176 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.407e-05/0.3795, allocations: 3.656 kB / 0.5145 GB, free: 1.176 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.964e-06/0.3796, allocations: 0 / 0.5145 GB, free: 1.176 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.002e-06/0.3796, allocations: 5.344 kB / 0.5145 GB, free: 1.172 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.247e-05/0.3796, allocations: 10.47 kB / 0.5145 GB, free: 1.164 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.721e-05/0.3797, allocations: 9.828 kB / 0.5145 GB, free: 1.16 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.000128/0.3798, allocations: 180.3 kB / 0.5147 GB, free: 1.004 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.932e-05/0.3798, allocations: 12.81 kB / 0.5147 GB, free: 1 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.949e-05/0.3799, allocations: 12.59 kB / 0.5147 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.075e-06/0.3799, allocations: 1.875 kB / 0.5147 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.3799, allocations: 0 / 0.5147 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/0.3799, allocations: 0 / 0.5147 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001926/0.3801, allocations: 217.3 kB / 0.5149 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.91e-07/0.3801, allocations: 0 / 0.5149 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.142e-06/0.3801, allocations: 0.5625 kB / 0.5149 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.082e-06/0.3801, allocations: 0.9375 kB / 0.5149 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.57e-05/0.3801, allocations: 9.234 kB / 0.5149 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.3801, allocations: 0 / 0.5149 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.3801, allocations: 0.7969 kB / 0.5149 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003803/0.3805, allocations: 375.3 kB / 0.5153 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.327e-05/0.3806, allocations: 84.89 kB / 0.5153 GB, free: 472 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.238e-05/0.3806, allocations: 3 kB / 0.5153 GB, free: 472 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.565e-05/0.3807, allocations: 7.344 kB / 0.5154 GB, free: 468 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.057e-05/0.3807, allocations: 6.797 kB / 0.5154 GB, free: 464 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.379e-05/0.3807, allocations: 5.641 kB / 0.5154 GB, free: 464 kB / 382.1 MB Notification: Performance of sorting global known variables: time 7.146e-05/0.3808, allocations: 116.1 kB / 0.5155 GB, free: 380 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3808, allocations: 0 / 0.5155 GB, free: 380 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.001255/0.382, allocations: 336.7 kB / 0.5158 GB, free: 332 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.001761/0.3838, allocations: 1.281 MB / 0.517 GB, free: 15.49 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004195/0.3842, allocations: 345.5 kB / 0.5174 GB, free: 15.32 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3843, allocations: 0 / 0.5174 GB, free: 15.32 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002412/0.3845, allocations: 255.4 kB / 0.5176 GB, free: 15.17 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003477/0.3849, allocations: 15.27 kB / 0.5176 GB, free: 15.16 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00242/0.3873, allocations: 2.309 MB / 0.5199 GB, free: 13.66 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003331/0.3876, allocations: 0.7288 MB / 0.5206 GB, free: 12.97 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.024e-05/0.3877, allocations: 1.156 kB / 0.5206 GB, free: 12.97 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.045e-05/0.3877, allocations: 37.67 kB / 0.5206 GB, free: 12.94 MB / 398.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3877, allocations: 3.938 kB / 0.5206 GB, free: 12.93 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].