Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0.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: translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_q.1.|zx_d.1,1.|zx_d.1,2.|zx_d.2,1.|zx_d.2,2.|zx_q.1,1.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_q.1.|zx_d.1,1.|zx_d.1,2.|zx_d.2,1.|zx_d.2,2.|zx_q.1,1.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001124/0.001124, allocations: 109.1 kB / 17.06 MB, free: 6 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.0009823/0.0009827, allocations: 200 kB / 18.01 MB, free: 5.074 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.37/1.37, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1773/0.1773, allocations: 38.05 MB / 329.9 MB, free: 8.73 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001217/0.001217, allocations: 63.91 kB / 458.2 MB, free: 6.82 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4671/0.4683, allocations: 58.04 MB / 0.5041 GB, free: 7.738 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0): time 0.003737/0.4721, allocations: 2.105 MB / 0.5062 GB, free: 6.27 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003574/0.4757, allocations: 2.03 MB / 0.5081 GB, free: 4.918 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.738e-05/0.4758, allocations: 4 kB / 0.5082 GB, free: 4.914 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002165/0.476, allocations: 15.83 kB / 0.5082 GB, free: 4.906 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001058/0.4761, allocations: 33.27 kB / 0.5082 GB, free: 4.887 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002651/0.4788, allocations: 0.8338 MB / 0.509 GB, free: 4.609 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001776/0.479, allocations: 73.06 kB / 0.5091 GB, free: 4.586 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.14e-05/0.479, allocations: 4.516 kB / 0.5091 GB, free: 4.586 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.362e-05/0.4791, allocations: 40.55 kB / 0.5091 GB, free: 4.566 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.595e-05/0.4793, allocations: 45.11 kB / 0.5092 GB, free: 4.547 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.322e-05/0.4793, allocations: 5.5 kB / 0.5092 GB, free: 4.543 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002572/0.4819, allocations: 1.403 MB / 0.5105 GB, free: 4.109 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.494e-05/0.4819, allocations: 8.828 kB / 0.5106 GB, free: 4.109 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.529e-05/0.482, allocations: 26.78 kB / 0.5106 GB, free: 4.09 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002603/0.4846, allocations: 1.306 MB / 0.5119 GB, free: 3.871 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.043e-06/0.4846, allocations: 1.281 kB / 0.5119 GB, free: 3.871 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.4846, allocations: 0 / 0.5119 GB, free: 3.871 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.035e-06/0.4846, allocations: 4 kB / 0.5119 GB, free: 3.867 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0007488/0.4854, allocations: 0.5124 MB / 0.5124 GB, free: 3.379 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.62e-05/0.4855, allocations: 13.27 kB / 0.5124 GB, free: 3.375 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.657e-05/0.4855, allocations: 8.922 kB / 0.5124 GB, free: 3.371 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001727/0.4857, allocations: 182.8 kB / 0.5126 GB, free: 3.164 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.102e-05/0.4857, allocations: 3.938 kB / 0.5126 GB, free: 3.16 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.336e-05/0.4857, allocations: 3.688 kB / 0.5126 GB, free: 3.16 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001494/0.4859, allocations: 54.66 kB / 0.5126 GB, free: 3.125 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.436e-06/0.4859, allocations: 1.125 kB / 0.5126 GB, free: 3.125 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.295e-05/0.4859, allocations: 4.656 kB / 0.5126 GB, free: 3.121 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.08e-06/0.4859, allocations: 0.9375 kB / 0.5126 GB, free: 3.121 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.94e-05/0.486, allocations: 27.41 kB / 0.5126 GB, free: 3.113 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001577/0.4862, allocations: 167.8 kB / 0.5128 GB, free: 2.914 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.724e-05/0.4863, allocations: 44.31 kB / 0.5128 GB, free: 2.883 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.074e-05/0.4863, allocations: 34.28 kB / 0.5129 GB, free: 2.867 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.981e-06/0.4863, allocations: 3.938 kB / 0.5129 GB, free: 2.863 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.294e-05/0.4864, allocations: 39.75 kB / 0.5129 GB, free: 2.816 MB / 382.1 MB Notification: Performance of pre-optimization done (n=8): time 1.322e-06/0.4864, allocations: 0 / 0.5129 GB, free: 2.816 MB / 382.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003404/0.4867, allocations: 151.4 kB / 0.5131 GB, free: 2.738 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.096e-05/0.4868, allocations: 85.53 kB / 0.5131 GB, free: 2.645 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.631e-05/0.4869, allocations: 120.6 kB / 0.5133 GB, free: 2.539 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.019e-05/0.4869, allocations: 26.8 kB / 0.5133 GB, free: 2.508 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.096e-05/0.4869, allocations: 95.55 kB / 0.5134 GB, free: 2.414 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.795e-05/0.487, allocations: 23.25 kB / 0.5134 GB, free: 2.398 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.634e-05/0.487, allocations: 24.61 kB / 0.5134 GB, free: 2.375 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.244e-05/0.4871, allocations: 320.8 kB / 0.5137 GB, free: 2.059 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.989e-05/0.4872, allocations: 22.38 kB / 0.5138 GB, free: 2.055 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.857e-05/0.4872, allocations: 23.2 kB / 0.5138 GB, free: 2.051 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001181/0.4873, allocations: 125.8 kB / 0.5139 GB, free: 1.973 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.4873, allocations: 3.938 kB / 0.5139 GB, free: 1.969 MB / 382.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001603/0.4875, allocations: 126.3 kB / 0.514 GB, free: 1.895 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.668e-05/0.4876, allocations: 42.06 kB / 0.5141 GB, free: 1.863 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.4876, allocations: 64 / 0.5141 GB, free: 1.863 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.482e-05/0.4876, allocations: 4.609 kB / 0.5141 GB, free: 1.859 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.876e-06/0.4876, allocations: 5.188 kB / 0.5141 GB, free: 1.855 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/0.4876, allocations: 3.984 kB / 0.5141 GB, free: 1.852 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.93e-05/0.4876, allocations: 7.125 kB / 0.5141 GB, free: 1.848 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.209e-05/0.4877, allocations: 2.438 kB / 0.5141 GB, free: 1.848 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 9.758e-05/0.4878, allocations: 160.5 kB / 0.5142 GB, free: 1.695 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.759e-05/0.4878, allocations: 9.375 kB / 0.5142 GB, free: 1.691 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.847e-05/0.4878, allocations: 6.734 kB / 0.5142 GB, free: 1.688 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.4878, allocations: 5.125 kB / 0.5143 GB, free: 1.684 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.4878, allocations: 0.6562 kB / 0.5143 GB, free: 1.684 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.4878, allocations: 5.094 kB / 0.5143 GB, free: 1.684 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.401e-05/0.4879, allocations: 176.7 kB / 0.5144 GB, free: 1.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.488, allocations: 0 / 0.5144 GB, free: 1.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.032e-06/0.488, allocations: 2.188 kB / 0.5144 GB, free: 1.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.488, allocations: 3.938 kB / 0.5144 GB, free: 1.477 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.342e-05/0.488, allocations: 3.406 kB / 0.5144 GB, free: 1.477 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.488, allocations: 0 / 0.5144 GB, free: 1.477 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.488, allocations: 4.594 kB / 0.5144 GB, free: 1.473 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002602/0.4883, allocations: 221.9 kB / 0.5147 GB, free: 1.348 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.703e-05/0.4883, allocations: 83.11 kB / 0.5147 GB, free: 1.25 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.024e-05/0.4883, allocations: 2.828 kB / 0.5147 GB, free: 1.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.217e-05/0.4884, allocations: 1.156 kB / 0.5147 GB, free: 1.25 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.997e-05/0.4884, allocations: 2.859 kB / 0.5147 GB, free: 1.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.065e-05/0.4884, allocations: 4.297 kB / 0.5147 GB, free: 1.25 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.921e-05/0.4884, allocations: 96.91 kB / 0.5148 GB, free: 1.172 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4885, allocations: 0 / 0.5148 GB, free: 1.172 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001256/0.4897, allocations: 321.1 kB / 0.5151 GB, free: 1.125 MB / 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.001073/0.4908, allocations: 371.5 kB / 0.5155 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004118/0.4912, allocations: 201.2 kB / 0.5157 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.4912, allocations: 1 kB / 0.5157 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001905/0.4914, allocations: 152.9 kB / 0.5158 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003353/0.4918, allocations: 13.55 kB / 0.5158 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006868/0.4925, allocations: 250.1 kB / 0.5161 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003333/0.4928, allocations: 0.6947 MB / 0.5168 GB, free: 15.91 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.722e-05/0.4928, allocations: 0.6562 kB / 0.5168 GB, free: 15.91 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.677e-05/0.4929, allocations: 9.062 kB / 0.5168 GB, free: 15.91 MB / 398.1 MB Notification: Performance of SimCode: time 1.754e-06/0.4929, allocations: 0 / 0.5168 GB, free: 15.91 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].