Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2.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_matrixTrDat2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2",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.001188/0.001188, allocations: 107.8 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.001212/0.001212, 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.286/1.286, allocations: 222.9 MB / 241.1 MB, free: 15.36 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1592/0.1592, allocations: 38.04 MB / 329.3 MB, free: 8.961 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001089/0.001089, allocations: 63.77 kB / 398.2 MB, free: 34.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09424/0.09534, allocations: 58.06 MB / 456.3 MB, free: 8.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2): time 0.003335/0.09872, allocations: 2.139 MB / 458.4 MB, free: 6.246 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002794/0.1015, allocations: 2.18 MB / 460.6 MB, free: 4.055 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.522e-05/0.1016, allocations: 0 / 460.6 MB, free: 4.055 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001139/0.1017, allocations: 7.922 kB / 460.6 MB, free: 4.047 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.509e-05/0.1018, allocations: 23.89 kB / 460.6 MB, free: 4.023 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001413/0.1032, allocations: 0.6943 MB / 461.3 MB, free: 3.328 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001235/0.1033, allocations: 123.6 kB / 461.4 MB, free: 3.207 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.929e-05/0.1034, allocations: 4.188 kB / 461.4 MB, free: 3.203 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.302e-05/0.1035, allocations: 31.8 kB / 461.5 MB, free: 3.172 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.296e-05/0.1035, allocations: 51.75 kB / 461.5 MB, free: 3.121 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.287e-05/0.1036, allocations: 8 kB / 461.5 MB, free: 3.113 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001448/0.105, allocations: 1.236 MB / 462.7 MB, free: 1.875 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.27e-05/0.1051, allocations: 31.84 kB / 462.8 MB, free: 1.844 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.955e-05/0.1051, allocations: 39.69 kB / 462.8 MB, free: 1.805 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001223/0.1064, allocations: 1.302 MB / 464.1 MB, free: 0.5 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.1064, allocations: 4 kB / 464.1 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1064, allocations: 0 / 464.1 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.118e-06/0.1064, allocations: 0 / 464.1 MB, free: 0.4961 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0005862/0.107, allocations: 0.5553 MB / 464.7 MB, free: 15.89 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.463e-05/0.107, allocations: 8.031 kB / 464.7 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.276e-05/0.1071, allocations: 38.73 kB / 464.7 MB, free: 15.83 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.198e-05/0.1071, allocations: 12.75 kB / 464.7 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001664/0.1073, allocations: 207.4 kB / 464.9 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.15e-06/0.1073, allocations: 0 / 464.9 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.327e-05/0.1073, allocations: 4 kB / 464.9 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001456/0.1075, allocations: 100.5 kB / 465 MB, free: 15.47 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.28e-06/0.1075, allocations: 4 kB / 465 MB, free: 15.47 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.626e-06/0.1075, allocations: 0 / 465 MB, free: 15.47 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.1075, allocations: 0 / 465 MB, free: 15.47 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.147e-05/0.1076, allocations: 71.77 kB / 465.1 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001407/0.1077, allocations: 189.4 kB / 465.3 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001011/0.1078, allocations: 98.55 kB / 465.4 MB, free: 15.06 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.739e-05/0.1079, allocations: 92.86 kB / 465.5 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.86e-06/0.1079, allocations: 0 / 465.5 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.017e-05/0.108, allocations: 34.56 kB / 465.5 MB, free: 14.92 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 7.92e-07/0.108, allocations: 0 / 465.5 MB, free: 14.92 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004023/0.1084, allocations: 319.5 kB / 465.8 MB, free: 14.6 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.313e-05/0.1084, allocations: 97.09 kB / 465.9 MB, free: 14.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001057/0.1085, allocations: 156.5 kB / 466.1 MB, free: 14.32 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.304e-05/0.1086, allocations: 25.7 kB / 466.1 MB, free: 14.29 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.85e-05/0.1086, allocations: 100.6 kB / 466.2 MB, free: 14.19 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.916e-05/0.1087, allocations: 74.81 kB / 466.3 MB, free: 14.12 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.966e-05/0.1087, allocations: 29.75 kB / 466.3 MB, free: 14.08 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001083/0.1088, allocations: 334.8 kB / 466.6 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.669e-05/0.1089, allocations: 59.97 kB / 466.7 MB, free: 13.69 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.213e-05/0.109, allocations: 59.97 kB / 466.7 MB, free: 13.63 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002164/0.1092, allocations: 254.8 kB / 467 MB, free: 13.37 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-06/0.1092, allocations: 4 kB / 467 MB, free: 13.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002456/0.1095, allocations: 234.2 kB / 467.2 MB, free: 13.12 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.272e-05/0.1095, allocations: 65.66 kB / 467.3 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.965e-06/0.1095, allocations: 7.875 kB / 467.3 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.904e-06/0.1095, allocations: 4.062 kB / 467.3 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.22e-07/0.1096, allocations: 0 / 467.3 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.1096, allocations: 3.984 kB / 467.3 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.211e-05/0.1096, allocations: 15.83 kB / 467.3 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.99e-05/0.1096, allocations: 8 kB / 467.3 MB, free: 13.02 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.0001384/0.1098, allocations: 199.4 kB / 467.5 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.531e-05/0.1098, allocations: 15.81 kB / 467.5 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.25e-05/0.1098, allocations: 9.188 kB / 467.6 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.52e-07/0.1098, allocations: 0 / 467.6 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.1099, allocations: 4 kB / 467.6 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.1099, allocations: 3.984 kB / 467.6 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001285/0.11, allocations: 213.4 kB / 467.8 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.71e-07/0.11, allocations: 0 / 467.8 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.11, allocations: 0 / 467.8 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.012e-06/0.11, allocations: 0 / 467.8 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.454e-05/0.11, allocations: 4 kB / 467.8 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.11, allocations: 0 / 467.8 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.11, allocations: 7.938 kB / 467.8 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005118/0.1106, allocations: 0.5179 MB / 468.3 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.747e-05/0.1106, allocations: 92.86 kB / 468.4 MB, free: 11.85 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.426e-05/0.1106, allocations: 4 kB / 468.4 MB, free: 11.85 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.664e-05/0.1107, allocations: 4 kB / 468.4 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.487e-05/0.1107, allocations: 7.984 kB / 468.4 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.283e-05/0.1107, allocations: 4 kB / 468.4 MB, free: 11.83 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.079e-05/0.1108, allocations: 122.7 kB / 468.5 MB, free: 11.71 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1108, allocations: 0 / 468.5 MB, free: 11.71 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006508/0.1115, allocations: 335.9 kB / 468.9 MB, free: 11.39 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.001464/0.1129, allocations: 1.331 MB / 470.2 MB, free: 10.02 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006139/0.1136, allocations: 0.71 MB / 470.9 MB, free: 9.301 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.1136, allocations: 0 / 470.9 MB, free: 9.301 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004253/0.114, allocations: 0.5696 MB / 471.5 MB, free: 8.719 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001856/0.1142, allocations: 12 kB / 471.5 MB, free: 8.707 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002496/0.1167, allocations: 2.689 MB / 474.2 MB, free: 5.934 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000264/0.117, allocations: 0.7241 MB / 474.9 MB, free: 5.184 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.658e-06/0.117, allocations: 0 / 474.9 MB, free: 5.184 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.947e-05/0.117, allocations: 39.42 kB / 474.9 MB, free: 5.145 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.117, allocations: 0 / 474.9 MB, free: 5.145 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].