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: translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_d.3.|zr_q.1.|zr_q.2.|zr_q.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_d.3.|zr_q.1.|zr_q.2.|zr_q.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00155/0.00155, allocations: 109.9 kB / 17.06 MB, free: 5.969 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.001649/0.00165, allocations: 200 kB / 18.01 MB, free: 5.055 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.521/1.521, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.173/0.173, allocations: 38.03 MB / 329.9 MB, free: 8.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00132/0.00132, allocations: 55.91 kB / 458.2 MB, free: 6.852 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4176/0.419, allocations: 58.06 MB / 0.5041 GB, free: 7.684 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2): time 0.003386/0.4224, allocations: 2.102 MB / 0.5062 GB, free: 6.215 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003108/0.4255, allocations: 2.034 MB / 0.5082 GB, free: 4.859 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.641e-05/0.4256, allocations: 5.219 kB / 0.5082 GB, free: 4.855 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001488/0.4257, allocations: 14.64 kB / 0.5082 GB, free: 4.848 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.835e-05/0.4259, allocations: 33.56 kB / 0.5082 GB, free: 4.828 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002301/0.4282, allocations: 0.8331 MB / 0.509 GB, free: 4.551 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001677/0.4283, allocations: 78.47 kB / 0.5091 GB, free: 4.523 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.84e-05/0.4284, allocations: 3.578 kB / 0.5091 GB, free: 4.523 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001043/0.4285, allocations: 36.47 kB / 0.5091 GB, free: 4.508 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001118/0.4286, allocations: 49.22 kB / 0.5092 GB, free: 4.488 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.536e-05/0.4287, allocations: 6.156 kB / 0.5092 GB, free: 4.484 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002251/0.4309, allocations: 1.399 MB / 0.5106 GB, free: 4.055 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.427e-05/0.431, allocations: 26.66 kB / 0.5106 GB, free: 4.051 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.431e-05/0.4311, allocations: 40.81 kB / 0.5106 GB, free: 4.023 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002332/0.4334, allocations: 1.353 MB / 0.5119 GB, free: 3.777 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.4334, allocations: 0 / 0.5119 GB, free: 3.777 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.4334, allocations: 0 / 0.5119 GB, free: 3.777 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.306e-06/0.4334, allocations: 5.375 kB / 0.5119 GB, free: 3.773 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0007073/0.4342, allocations: 0.564 MB / 0.5125 GB, free: 3.258 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.682e-05/0.4342, allocations: 9.297 kB / 0.5125 GB, free: 3.258 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.499e-05/0.4343, allocations: 18.16 kB / 0.5125 GB, free: 3.246 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001718/0.4344, allocations: 200.4 kB / 0.5127 GB, free: 3.027 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.164e-05/0.4345, allocations: 0.7031 kB / 0.5127 GB, free: 3.027 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.332e-05/0.4345, allocations: 5.156 kB / 0.5127 GB, free: 3.023 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001989/0.4347, allocations: 100.8 kB / 0.5128 GB, free: 2.98 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.063e-06/0.4347, allocations: 0 / 0.5128 GB, free: 2.98 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.216e-05/0.4347, allocations: 4 kB / 0.5128 GB, free: 2.977 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.4347, allocations: 2.188 kB / 0.5128 GB, free: 2.977 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.705e-05/0.4348, allocations: 60.19 kB / 0.5129 GB, free: 2.965 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001755/0.435, allocations: 193 kB / 0.5131 GB, free: 2.754 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001407/0.4352, allocations: 105.2 kB / 0.5132 GB, free: 2.695 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001127/0.4353, allocations: 86.81 kB / 0.5132 GB, free: 2.66 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.08e-05/0.4353, allocations: 0.75 kB / 0.5132 GB, free: 2.66 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.794e-05/0.4353, allocations: 39.81 kB / 0.5133 GB, free: 2.613 MB / 382.1 MB Notification: Performance of pre-optimization done (n=24): time 1.223e-06/0.4353, allocations: 0 / 0.5133 GB, free: 2.613 MB / 382.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005864/0.4359, allocations: 317.7 kB / 0.5136 GB, free: 2.504 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.109e-05/0.436, allocations: 94.16 kB / 0.5137 GB, free: 2.41 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001214/0.4361, allocations: 158.2 kB / 0.5138 GB, free: 2.293 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.38e-05/0.4361, allocations: 26.8 kB / 0.5139 GB, free: 2.262 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.779e-05/0.4362, allocations: 98.98 kB / 0.514 GB, free: 2.168 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.683e-05/0.4363, allocations: 78.91 kB / 0.514 GB, free: 2.105 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.866e-05/0.4363, allocations: 37.3 kB / 0.5141 GB, free: 2.078 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.738e-05/0.4364, allocations: 328.2 kB / 0.5144 GB, free: 1.758 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.076e-05/0.4365, allocations: 62 kB / 0.5144 GB, free: 1.746 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001034/0.4366, allocations: 59.8 kB / 0.5145 GB, free: 1.734 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002773/0.4369, allocations: 252.6 kB / 0.5147 GB, free: 1.637 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.4369, allocations: 0 / 0.5147 GB, free: 1.637 MB / 382.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003014/0.4372, allocations: 238 kB / 0.515 GB, free: 1.535 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.664e-05/0.4373, allocations: 63.83 kB / 0.515 GB, free: 1.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.63e-06/0.4373, allocations: 0.8125 kB / 0.515 GB, free: 1.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.517e-05/0.4373, allocations: 9 kB / 0.515 GB, free: 1.492 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.084e-06/0.4373, allocations: 0.7031 kB / 0.515 GB, free: 1.492 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.611e-06/0.4373, allocations: 0 / 0.515 GB, free: 1.492 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.024e-05/0.4374, allocations: 13.06 kB / 0.515 GB, free: 1.484 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.053e-05/0.4374, allocations: 6.859 kB / 0.515 GB, free: 1.484 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.0001713/0.4376, allocations: 195.5 kB / 0.5152 GB, free: 1.332 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.607e-05/0.4377, allocations: 17.92 kB / 0.5153 GB, free: 1.324 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.422e-05/0.4377, allocations: 14.03 kB / 0.5153 GB, free: 1.312 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-06/0.4377, allocations: 0.5938 kB / 0.5153 GB, free: 1.312 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.4377, allocations: 4.75 kB / 0.5153 GB, free: 1.309 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.4377, allocations: 4.562 kB / 0.5153 GB, free: 1.309 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001455/0.4379, allocations: 208.6 kB / 0.5155 GB, free: 1.098 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.91e-07/0.4379, allocations: 0 / 0.5155 GB, free: 1.098 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.31e-07/0.4379, allocations: 0.5 kB / 0.5155 GB, free: 1.098 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.4379, allocations: 1.25 kB / 0.5155 GB, free: 1.098 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.123e-05/0.4379, allocations: 5 kB / 0.5155 GB, free: 1.098 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/0.4379, allocations: 5.203 kB / 0.5155 GB, free: 1.094 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.4379, allocations: 0.5938 kB / 0.5155 GB, free: 1.094 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008178/0.4387, allocations: 0.5306 MB / 0.516 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.86e-05/0.4388, allocations: 98.06 kB / 0.5161 GB, free: 0.793 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.886e-05/0.4388, allocations: 4.844 kB / 0.5161 GB, free: 0.793 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.989e-05/0.4389, allocations: 3.5 kB / 0.5161 GB, free: 0.793 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.592e-05/0.4389, allocations: 3.469 kB / 0.5161 GB, free: 0.793 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.139e-05/0.4389, allocations: 6.812 kB / 0.5161 GB, free: 0.793 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.579e-05/0.439, allocations: 112.8 kB / 0.5162 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.439, allocations: 0 / 0.5162 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001164/0.4402, allocations: 338 kB / 0.5165 GB, free: 0.668 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.0009275/0.4411, allocations: 369.3 kB / 0.5169 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007091/0.4418, allocations: 0.7127 MB / 0.5176 GB, free: 184 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.4419, allocations: 0 / 0.5176 GB, free: 184 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005185/0.4424, allocations: 0.5709 MB / 0.5182 GB, free: 15.87 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002133/0.4426, allocations: 11.3 kB / 0.5182 GB, free: 15.87 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007942/0.4434, allocations: 475.6 kB / 0.5186 GB, free: 15.66 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003154/0.4437, allocations: 0.7251 MB / 0.5193 GB, free: 14.96 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.453e-05/0.4438, allocations: 1.828 kB / 0.5193 GB, free: 14.96 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.586e-05/0.4438, allocations: 8.531 kB / 0.5193 GB, free: 14.95 MB / 398.1 MB Notification: Performance of SimCode: time 3.1e-07/0.4438, allocations: 1.156 kB / 0.5193 GB, free: 14.95 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].