Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3.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_matrixTrDat3,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3",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.001753/0.001753, allocations: 108.8 kB / 17.06 MB, free: 5.781 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.002126/0.002126, allocations: 193.4 kB / 18 MB, free: 4.945 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.457/1.457, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1849/0.1849, allocations: 38.05 MB / 329.9 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001938/0.001938, allocations: 59.91 kB / 457.7 MB, free: 7.355 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3847/0.3866, allocations: 58.06 MB / 0.5036 GB, free: 7.504 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3): time 0.003055/0.3897, allocations: 2.105 MB / 0.5057 GB, free: 6.031 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002895/0.3927, allocations: 2.043 MB / 0.5077 GB, free: 4.664 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.227e-05/0.3927, allocations: 5.125 kB / 0.5077 GB, free: 4.66 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001489/0.3929, allocations: 9.375 kB / 0.5077 GB, free: 4.656 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.83e-05/0.393, allocations: 33.78 kB / 0.5077 GB, free: 4.637 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002609/0.3956, allocations: 0.8237 MB / 0.5085 GB, free: 4.363 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001478/0.3958, allocations: 78.2 kB / 0.5086 GB, free: 4.336 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.815e-05/0.3959, allocations: 6.906 kB / 0.5086 GB, free: 4.336 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.352e-05/0.396, allocations: 32.47 kB / 0.5086 GB, free: 4.324 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.768e-05/0.3961, allocations: 50.89 kB / 0.5087 GB, free: 4.305 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.84e-05/0.3961, allocations: 4.219 kB / 0.5087 GB, free: 4.305 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002313/0.3984, allocations: 1.404 MB / 0.5101 GB, free: 3.871 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.207e-05/0.3985, allocations: 43.67 kB / 0.5101 GB, free: 3.859 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.486e-05/0.3986, allocations: 55.17 kB / 0.5102 GB, free: 3.82 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002047/0.4006, allocations: 1.387 MB / 0.5115 GB, free: 3.555 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.4006, allocations: 1.25 kB / 0.5115 GB, free: 3.555 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.4006, allocations: 0 / 0.5115 GB, free: 3.555 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.422e-06/0.4007, allocations: 0 / 0.5115 GB, free: 3.555 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.0007393/0.4014, allocations: 0.6282 MB / 0.5121 GB, free: 3 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.347e-05/0.4014, allocations: 13.92 kB / 0.5121 GB, free: 2.996 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.24e-05/0.4015, allocations: 45.05 kB / 0.5122 GB, free: 2.953 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.069e-05/0.4015, allocations: 18.89 kB / 0.5122 GB, free: 2.941 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001677/0.4017, allocations: 212.5 kB / 0.5124 GB, free: 2.715 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.248e-05/0.4017, allocations: 1.281 kB / 0.5124 GB, free: 2.715 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.436e-05/0.4018, allocations: 0 / 0.5124 GB, free: 2.715 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002351/0.402, allocations: 140.8 kB / 0.5125 GB, free: 2.656 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-06/0.402, allocations: 0 / 0.5125 GB, free: 2.656 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.114e-05/0.402, allocations: 5.531 kB / 0.5126 GB, free: 2.652 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-06/0.4021, allocations: 0 / 0.5126 GB, free: 2.652 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00013/0.4022, allocations: 104.2 kB / 0.5127 GB, free: 2.625 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001665/0.4024, allocations: 210.5 kB / 0.5129 GB, free: 2.406 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001628/0.4025, allocations: 159.1 kB / 0.513 GB, free: 2.324 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001414/0.4027, allocations: 143.3 kB / 0.5131 GB, free: 2.262 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.538e-06/0.4027, allocations: 0 / 0.5131 GB, free: 2.262 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.171e-05/0.4027, allocations: 44.7 kB / 0.5132 GB, free: 2.211 MB / 382.1 MB Notification: Performance of pre-optimization done (n=40): time 1.664e-06/0.4027, allocations: 3.891 kB / 0.5132 GB, free: 2.211 MB / 382.1 MB Notification: Performance of matching and sorting (n=40): time 0.0007832/0.4035, allocations: 498.5 kB / 0.5137 GB, free: 2.059 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.213e-05/0.4036, allocations: 108.3 kB / 0.5138 GB, free: 1.961 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001606/0.4038, allocations: 169.4 kB / 0.5139 GB, free: 1.844 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.098e-05/0.4038, allocations: 25.7 kB / 0.514 GB, free: 1.812 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.375e-05/0.4038, allocations: 105.8 kB / 0.5141 GB, free: 1.715 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001053/0.404, allocations: 135 kB / 0.5142 GB, free: 1.609 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.532e-05/0.404, allocations: 42.41 kB / 0.5142 GB, free: 1.582 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.51e-05/0.4041, allocations: 336.8 kB / 0.5145 GB, free: 1.258 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001191/0.4042, allocations: 102.7 kB / 0.5146 GB, free: 1.23 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001197/0.4043, allocations: 95.59 kB / 0.5147 GB, free: 1.211 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004944/0.4048, allocations: 380.3 kB / 0.5151 GB, free: 1.078 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.4049, allocations: 3.938 kB / 0.5151 GB, free: 1.074 MB / 382.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005032/0.4054, allocations: 338.5 kB / 0.5154 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001223/0.4055, allocations: 86.8 kB / 0.5155 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.4055, allocations: 4 kB / 0.5155 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.09e-05/0.4055, allocations: 4.594 kB / 0.5155 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.743e-06/0.4055, allocations: 0.5 kB / 0.5155 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.633e-06/0.4056, allocations: 0.625 kB / 0.5155 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.969e-05/0.4057, allocations: 23.28 kB / 0.5155 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.133e-05/0.4057, allocations: 8.781 kB / 0.5155 GB, free: 0.8906 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.0002375/0.4059, allocations: 236.9 kB / 0.5158 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.203e-05/0.406, allocations: 26.05 kB / 0.5158 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.301e-05/0.406, allocations: 18.06 kB / 0.5158 GB, free: 0.707 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.983e-06/0.406, allocations: 0 / 0.5158 GB, free: 0.707 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.406, allocations: 5.188 kB / 0.5158 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-06/0.406, allocations: 0 / 0.5158 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001672/0.4062, allocations: 239 kB / 0.516 GB, free: 492 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.4062, allocations: 0.7969 kB / 0.516 GB, free: 492 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.82e-07/0.4062, allocations: 0 / 0.516 GB, free: 492 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.382e-06/0.4062, allocations: 1.125 kB / 0.516 GB, free: 492 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.36e-05/0.4063, allocations: 7.75 kB / 0.5161 GB, free: 492 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.4063, allocations: 0 / 0.5161 GB, free: 492 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.4063, allocations: 5.062 kB / 0.5161 GB, free: 488 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001155/0.4074, allocations: 0.92 MB / 0.517 GB, free: 224 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.916e-05/0.4075, allocations: 98.44 kB / 0.5171 GB, free: 112 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.468e-05/0.4075, allocations: 7.219 kB / 0.5171 GB, free: 112 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.109e-05/0.4076, allocations: 5.406 kB / 0.5171 GB, free: 112 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.158e-05/0.4076, allocations: 8.719 kB / 0.5171 GB, free: 108 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.203e-05/0.4077, allocations: 8.781 kB / 0.5171 GB, free: 108 kB / 382.1 MB Notification: Performance of sorting global known variables: time 8.357e-05/0.4077, allocations: 132.2 kB / 0.5172 GB, free: 16 kB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4078, allocations: 3.938 kB / 0.5172 GB, free: 12 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.001614/0.4094, allocations: 364.4 kB / 0.5176 GB, free: 15.96 MB / 398.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.002816/0.4122, allocations: 1.728 MB / 0.5192 GB, free: 15.1 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001944/0.4142, allocations: 1.598 MB / 0.5208 GB, free: 14.27 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.4142, allocations: 0 / 0.5208 GB, free: 14.27 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001895/0.4161, allocations: 1.376 MB / 0.5222 GB, free: 13.49 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003004/0.4164, allocations: 12.98 kB / 0.5222 GB, free: 13.49 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005358/0.4218, allocations: 3.682 MB / 0.5258 GB, free: 11.72 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005601/0.4223, allocations: 0.7533 MB / 0.5265 GB, free: 11.03 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.804e-05/0.4224, allocations: 1.75 kB / 0.5265 GB, free: 11.03 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.788e-05/0.4225, allocations: 45.38 kB / 0.5265 GB, free: 10.99 MB / 398.1 MB Notification: Performance of SimCode: time 1.202e-06/0.4225, allocations: 4.031 kB / 0.5265 GB, free: 10.98 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].