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.001586/0.001586, allocations: 113.3 kB / 17.06 MB, free: 5.965 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.00174/0.00174, allocations: 198.8 kB / 18.01 MB, free: 5.047 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.371/1.371, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.177/0.177, allocations: 38.04 MB / 329.9 MB, free: 8.727 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001363/0.001363, allocations: 63.91 kB / 457.7 MB, free: 7.32 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3753/0.3767, allocations: 58.06 MB / 0.5036 GB, free: 7.453 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3): time 0.003536/0.3802, allocations: 2.107 MB / 0.5057 GB, free: 5.98 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003075/0.3834, allocations: 2.035 MB / 0.5077 GB, free: 4.621 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.516e-05/0.3834, allocations: 0 / 0.5077 GB, free: 4.621 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001684/0.3837, allocations: 19.27 kB / 0.5077 GB, free: 4.609 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001197/0.3838, allocations: 33.08 kB / 0.5077 GB, free: 4.59 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002677/0.3865, allocations: 0.8349 MB / 0.5085 GB, free: 4.309 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001565/0.3866, allocations: 78.42 kB / 0.5086 GB, free: 4.281 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.138e-05/0.3867, allocations: 6.953 kB / 0.5086 GB, free: 4.281 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.274e-05/0.3868, allocations: 36.34 kB / 0.5087 GB, free: 4.266 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.998e-05/0.3869, allocations: 47.72 kB / 0.5087 GB, free: 4.25 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.85e-05/0.3869, allocations: 3.812 kB / 0.5087 GB, free: 4.25 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002505/0.3894, allocations: 1.404 MB / 0.5101 GB, free: 3.816 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.357e-05/0.3895, allocations: 44.44 kB / 0.5101 GB, free: 3.805 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.212e-05/0.3896, allocations: 54.86 kB / 0.5102 GB, free: 3.766 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002266/0.3919, allocations: 1.383 MB / 0.5115 GB, free: 3.504 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.3919, allocations: 0 / 0.5115 GB, free: 3.504 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.3919, allocations: 0 / 0.5115 GB, free: 3.504 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.752e-06/0.3919, allocations: 1.094 kB / 0.5115 GB, free: 3.504 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.0007712/0.3927, allocations: 0.6257 MB / 0.5121 GB, free: 2.949 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.429e-05/0.3927, allocations: 14.2 kB / 0.5122 GB, free: 2.945 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.772e-05/0.3928, allocations: 49.19 kB / 0.5122 GB, free: 2.898 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.04e-05/0.3928, allocations: 19.05 kB / 0.5122 GB, free: 2.887 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001694/0.393, allocations: 211.7 kB / 0.5124 GB, free: 2.66 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.402e-06/0.393, allocations: 1.188 kB / 0.5124 GB, free: 2.66 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.489e-05/0.393, allocations: 1.156 kB / 0.5124 GB, free: 2.66 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002198/0.3933, allocations: 143.5 kB / 0.5126 GB, free: 2.598 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.3933, allocations: 1.156 kB / 0.5126 GB, free: 2.598 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.018e-05/0.3933, allocations: 4 kB / 0.5126 GB, free: 2.594 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.3933, allocations: 0.9688 kB / 0.5126 GB, free: 2.594 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001189/0.3934, allocations: 96.75 kB / 0.5127 GB, free: 2.574 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001696/0.3936, allocations: 219 kB / 0.5129 GB, free: 2.348 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001701/0.3938, allocations: 158.4 kB / 0.513 GB, free: 2.266 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001534/0.3939, allocations: 145.1 kB / 0.5132 GB, free: 2.203 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.077e-06/0.394, allocations: 0 / 0.5132 GB, free: 2.203 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.71e-05/0.394, allocations: 39.59 kB / 0.5132 GB, free: 2.156 MB / 382.1 MB Notification: Performance of pre-optimization done (n=40): time 1.052e-06/0.394, allocations: 0 / 0.5132 GB, free: 2.156 MB / 382.1 MB Notification: Performance of matching and sorting (n=40): time 0.0007742/0.3948, allocations: 498.7 kB / 0.5137 GB, free: 2.004 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.804e-05/0.3948, allocations: 108.7 kB / 0.5138 GB, free: 1.906 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001714/0.395, allocations: 169.6 kB / 0.5139 GB, free: 1.789 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.538e-05/0.3951, allocations: 29.64 kB / 0.514 GB, free: 1.754 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.738e-05/0.3951, allocations: 104.9 kB / 0.5141 GB, free: 1.656 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.745e-05/0.3952, allocations: 136 kB / 0.5142 GB, free: 1.551 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.709e-05/0.3953, allocations: 41.39 kB / 0.5142 GB, free: 1.523 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.333e-05/0.3954, allocations: 338 kB / 0.5146 GB, free: 1.199 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000121/0.3955, allocations: 95.66 kB / 0.5146 GB, free: 1.18 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001179/0.3956, allocations: 99.27 kB / 0.5147 GB, free: 1.156 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005003/0.3961, allocations: 381.9 kB / 0.5151 GB, free: 1.02 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.3961, allocations: 5.062 kB / 0.5151 GB, free: 1.016 MB / 382.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004966/0.3966, allocations: 338.8 kB / 0.5154 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001453/0.3968, allocations: 85.09 kB / 0.5155 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.388e-06/0.3968, allocations: 4.188 kB / 0.5155 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.752e-05/0.3968, allocations: 4.062 kB / 0.5155 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.71e-07/0.3968, allocations: 0.625 kB / 0.5155 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.234e-06/0.3968, allocations: 1.375 kB / 0.5155 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.084e-05/0.3969, allocations: 19.84 kB / 0.5155 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.139e-05/0.397, allocations: 8.656 kB / 0.5155 GB, free: 0.8359 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.0002278/0.3972, allocations: 240.1 kB / 0.5158 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.189e-05/0.3973, allocations: 25.36 kB / 0.5158 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.867e-05/0.3973, allocations: 14.97 kB / 0.5158 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-06/0.3973, allocations: 3.266 kB / 0.5158 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.3973, allocations: 4 kB / 0.5158 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.3973, allocations: 5 kB / 0.5158 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001709/0.3975, allocations: 239.3 kB / 0.5161 GB, free: 432 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.502e-06/0.3975, allocations: 1.5 kB / 0.5161 GB, free: 432 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.52e-07/0.3975, allocations: 0 / 0.5161 GB, free: 432 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.3975, allocations: 0.7031 kB / 0.5161 GB, free: 432 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.257e-05/0.3975, allocations: 6.938 kB / 0.5161 GB, free: 432 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.456e-06/0.3975, allocations: 1.844 kB / 0.5161 GB, free: 432 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.3975, allocations: 0 / 0.5161 GB, free: 432 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001107/0.3987, allocations: 0.9192 MB / 0.517 GB, free: 168 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.035e-05/0.3987, allocations: 99.66 kB / 0.5171 GB, free: 56 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.606e-05/0.3988, allocations: 9.047 kB / 0.5171 GB, free: 56 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.277e-05/0.3988, allocations: 5.375 kB / 0.5171 GB, free: 56 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.929e-05/0.3989, allocations: 7.594 kB / 0.5171 GB, free: 52 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.644e-05/0.3989, allocations: 9.25 kB / 0.5171 GB, free: 52 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001138/0.399, allocations: 130.1 kB / 0.5172 GB, free: 15.96 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.399, allocations: 0.9375 kB / 0.5172 GB, free: 15.96 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001419/0.4005, allocations: 358.5 kB / 0.5176 GB, free: 15.91 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.002678/0.4031, allocations: 1.729 MB / 0.5192 GB, free: 15.05 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001624/0.4048, allocations: 1.599 MB / 0.5208 GB, free: 14.23 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.4048, allocations: 0 / 0.5208 GB, free: 14.23 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001221/0.406, allocations: 1.376 MB / 0.5221 GB, free: 13.45 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000326/0.4064, allocations: 17.72 kB / 0.5222 GB, free: 13.44 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004945/0.4113, allocations: 3.681 MB / 0.5258 GB, free: 11.67 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003897/0.4117, allocations: 0.7569 MB / 0.5265 GB, free: 10.97 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.056e-05/0.4118, allocations: 4.609 kB / 0.5265 GB, free: 10.97 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.802e-05/0.4118, allocations: 50.45 kB / 0.5266 GB, free: 10.93 MB / 398.1 MB Notification: Performance of SimCode: time 8.72e-07/0.4119, allocations: 4.031 kB / 0.5266 GB, free: 10.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].