Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1.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.Z_matrixTrDat1,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1",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.001138/0.001138, allocations: 108 kB / 16.51 MB, free: 6.715 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.001166/0.001166, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.223/1.223, allocations: 222.9 MB / 241.1 MB, free: 13.64 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1604/0.1604, allocations: 38.04 MB / 329.3 MB, free: 8.824 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001067/0.001067, allocations: 64.44 kB / 398.2 MB, free: 34.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08475/0.08583, allocations: 58.07 MB / 456.3 MB, free: 8.391 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1): time 0.002979/0.08885, allocations: 2.135 MB / 458.4 MB, free: 6.23 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002689/0.09155, allocations: 2.18 MB / 460.6 MB, free: 4.039 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.36e-05/0.09159, allocations: 0 / 460.6 MB, free: 4.039 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001055/0.09171, allocations: 7.922 kB / 460.6 MB, free: 4.031 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.869e-05/0.09179, allocations: 19.91 kB / 460.6 MB, free: 4.012 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001421/0.09322, allocations: 0.6982 MB / 461.3 MB, free: 3.312 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001226/0.09335, allocations: 119.7 kB / 461.4 MB, free: 3.195 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.367e-05/0.0934, allocations: 4.172 kB / 461.4 MB, free: 3.191 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.451e-05/0.09348, allocations: 35.84 kB / 461.4 MB, free: 3.156 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.046e-05/0.09356, allocations: 43.83 kB / 461.5 MB, free: 3.113 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.16e-05/0.09358, allocations: 0 / 461.5 MB, free: 3.113 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001456/0.09504, allocations: 1.236 MB / 462.7 MB, free: 1.875 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.029e-05/0.0951, allocations: 23.92 kB / 462.8 MB, free: 1.852 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.668e-05/0.09514, allocations: 23.81 kB / 462.8 MB, free: 1.828 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00119/0.09633, allocations: 1.275 MB / 464 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.09635, allocations: 4 kB / 464.1 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of FrontEnd: time 7.62e-07/0.09636, allocations: 4 kB / 464.1 MB, free: 0.543 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.747e-06/0.09636, allocations: 0 / 464.1 MB, free: 0.543 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0005236/0.09689, allocations: 0.5163 MB / 464.6 MB, free: 15.97 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.117e-05/0.09693, allocations: 8.031 kB / 464.6 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.262e-05/0.09697, allocations: 38.73 kB / 464.6 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.612e-05/0.097, allocations: 4.844 kB / 464.6 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001437/0.09715, allocations: 203.2 kB / 464.8 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.283e-06/0.09716, allocations: 0 / 464.8 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.416e-06/0.09718, allocations: 0 / 464.8 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001183/0.0973, allocations: 73.61 kB / 464.9 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.16e-06/0.09731, allocations: 0 / 464.9 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.835e-06/0.09732, allocations: 0 / 464.9 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.016e-06/0.09733, allocations: 0 / 464.9 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.948e-05/0.09741, allocations: 35.97 kB / 464.9 MB, free: 15.56 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001226/0.09753, allocations: 169.6 kB / 465.1 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.477e-05/0.09763, allocations: 66.48 kB / 465.2 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.184e-05/0.09768, allocations: 44.88 kB / 465.2 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.811e-06/0.0977, allocations: 4 kB / 465.2 MB, free: 15.22 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.244e-05/0.09773, allocations: 34.56 kB / 465.2 MB, free: 15.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.032e-06/0.09773, allocations: 0 / 465.2 MB, free: 15.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0002706/0.09801, allocations: 191.2 kB / 465.4 MB, free: 14.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.516e-05/0.09807, allocations: 89.09 kB / 465.5 MB, free: 14.88 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.669e-05/0.09816, allocations: 136.3 kB / 465.6 MB, free: 14.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.426e-05/0.09818, allocations: 25.7 kB / 465.7 MB, free: 14.7 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.525e-05/0.09823, allocations: 96.11 kB / 465.8 MB, free: 14.61 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.132e-05/0.09828, allocations: 47.3 kB / 465.8 MB, free: 14.56 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.71e-05/0.09832, allocations: 25.7 kB / 465.8 MB, free: 14.53 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001001/0.09843, allocations: 326.8 kB / 466.2 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.311e-05/0.09848, allocations: 27.98 kB / 466.2 MB, free: 14.17 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.795e-05/0.09853, allocations: 31.98 kB / 466.2 MB, free: 14.14 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001328/0.09867, allocations: 160.6 kB / 466.4 MB, free: 13.97 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.09868, allocations: 0 / 466.4 MB, free: 13.97 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001698/0.09885, allocations: 155.2 kB / 466.5 MB, free: 13.8 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.04e-05/0.0989, allocations: 53.73 kB / 466.6 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.189e-06/0.09891, allocations: 0 / 466.6 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.045e-06/0.09892, allocations: 3.938 kB / 466.6 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.914e-06/0.09893, allocations: 4 kB / 466.6 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.09894, allocations: 0 / 466.6 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.617e-05/0.09898, allocations: 7.938 kB / 466.6 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.724e-05/0.099, allocations: 7.938 kB / 466.6 MB, free: 13.72 MB / 350.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.0001135/0.09912, allocations: 163.5 kB / 466.8 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.739e-05/0.09914, allocations: 7.906 kB / 466.8 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.502e-05/0.09917, allocations: 20.7 kB / 466.8 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-06/0.09917, allocations: 0 / 466.8 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.495e-06/0.09918, allocations: 0 / 466.8 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.162e-06/0.09918, allocations: 0 / 466.8 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000125/0.09931, allocations: 189.4 kB / 467 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.01e-07/0.09932, allocations: 0 / 467 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.09932, allocations: 0 / 467 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.002e-06/0.09933, allocations: 0 / 467 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.141e-05/0.09934, allocations: 4 kB / 467 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.32e-07/0.09935, allocations: 0 / 467 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.09936, allocations: 3.984 kB / 467 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003106/0.09967, allocations: 294.5 kB / 467.3 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.476e-05/0.09972, allocations: 81.02 kB / 467.3 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.882e-05/0.09974, allocations: 4 kB / 467.4 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.556e-05/0.09977, allocations: 0 / 467.4 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.79e-05/0.09979, allocations: 4 kB / 467.4 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.558e-06/0.09981, allocations: 4 kB / 467.4 MB, free: 12.85 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.523e-05/0.09988, allocations: 113.5 kB / 467.5 MB, free: 12.74 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09988, allocations: 7.969 kB / 467.5 MB, free: 12.73 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000619/0.1005, allocations: 315.9 kB / 467.8 MB, free: 12.43 MB / 350.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.001242/0.1018, allocations: 1.085 MB / 468.9 MB, free: 11.31 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000292/0.1021, allocations: 299.2 kB / 469.2 MB, free: 11 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.1021, allocations: 0 / 469.2 MB, free: 11 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001711/0.1022, allocations: 223.3 kB / 469.4 MB, free: 10.77 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001964/0.1024, allocations: 15.94 kB / 469.4 MB, free: 10.76 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001747/0.1042, allocations: 1.944 MB / 471.3 MB, free: 8.73 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002366/0.1045, allocations: 0.7043 MB / 472 MB, free: 8 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.097e-05/0.1045, allocations: 0 / 472 MB, free: 8 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.944e-05/0.1045, allocations: 31.36 kB / 472.1 MB, free: 7.969 MB / 350.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1045, allocations: 0 / 472.1 MB, free: 7.969 MB / 350.1 MB [CodegenCFunctions.tpl:5622:13-5622:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].