Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1.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_matrixTrDat1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_q.1.|zr_q.2.|zx_d.1,1.|zx_d.1,2.|zx_d.2,1.|zx_d.2,2.|zx_q.1,1.|zx_q.1,2.|zx_q.2,1.|zx_q.2,2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_q.1.|zr_q.2.|zx_d.1,1.|zx_d.1,2.|zx_d.2,1.|zx_d.2,2.|zx_q.1,1.|zx_q.1,2.|zx_q.2,1.|zx_q.2,2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001234/0.001234, allocations: 108.2 kB / 17.06 MB, free: 5.992 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.001162/0.001162, allocations: 196 kB / 18 MB, free: 5.082 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.441/1.441, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1762/0.1762, allocations: 38.04 MB / 329.9 MB, free: 8.785 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001208/0.001208, allocations: 63.89 kB / 458.2 MB, free: 6.875 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4148/0.4161, allocations: 58.05 MB / 0.5041 GB, free: 7.73 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1): time 0.003923/0.42, allocations: 2.106 MB / 0.5062 GB, free: 6.258 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003339/0.4234, allocations: 2.04 MB / 0.5082 GB, free: 4.898 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.417e-05/0.4235, allocations: 0.9375 kB / 0.5082 GB, free: 4.898 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001693/0.4237, allocations: 11.31 kB / 0.5082 GB, free: 4.895 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001126/0.4238, allocations: 31.98 kB / 0.5082 GB, free: 4.875 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002574/0.4264, allocations: 0.8261 MB / 0.509 GB, free: 4.602 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002068/0.4266, allocations: 72.77 kB / 0.5091 GB, free: 4.578 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.898e-05/0.4267, allocations: 4.422 kB / 0.5091 GB, free: 4.578 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001292/0.4268, allocations: 36.39 kB / 0.5091 GB, free: 4.562 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001227/0.4269, allocations: 41.59 kB / 0.5092 GB, free: 4.547 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.553e-05/0.427, allocations: 1.062 kB / 0.5092 GB, free: 4.547 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002913/0.4299, allocations: 1.403 MB / 0.5105 GB, free: 4.113 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.427e-05/0.43, allocations: 17.34 kB / 0.5105 GB, free: 4.109 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.309e-05/0.4301, allocations: 25.39 kB / 0.5106 GB, free: 4.094 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002772/0.4328, allocations: 1.335 MB / 0.5119 GB, free: 3.852 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.072e-06/0.4328, allocations: 0 / 0.5119 GB, free: 3.852 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.245e-06/0.4329, allocations: 1.094 kB / 0.5119 GB, free: 3.852 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.295e-06/0.4329, allocations: 4 kB / 0.5119 GB, free: 3.848 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0007396/0.4336, allocations: 0.5128 MB / 0.5124 GB, free: 3.363 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.594e-05/0.4337, allocations: 14.69 kB / 0.5124 GB, free: 3.359 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.897e-05/0.4337, allocations: 8.281 kB / 0.5124 GB, free: 3.355 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001904/0.4339, allocations: 200.2 kB / 0.5126 GB, free: 3.133 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.262e-05/0.434, allocations: 3.938 kB / 0.5126 GB, free: 3.133 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.712e-05/0.434, allocations: 2.562 kB / 0.5126 GB, free: 3.133 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001982/0.4342, allocations: 68.78 kB / 0.5127 GB, free: 3.094 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.258e-06/0.4342, allocations: 4 kB / 0.5127 GB, free: 3.09 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.641e-05/0.4342, allocations: 1.125 kB / 0.5127 GB, free: 3.09 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.612e-06/0.4342, allocations: 0 / 0.5127 GB, free: 3.09 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.134e-05/0.4343, allocations: 32.05 kB / 0.5127 GB, free: 3.086 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001785/0.4345, allocations: 175.1 kB / 0.5129 GB, free: 2.883 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001106/0.4346, allocations: 57.72 kB / 0.5129 GB, free: 2.848 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.635e-05/0.4347, allocations: 43.88 kB / 0.513 GB, free: 2.832 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.385e-06/0.4347, allocations: 0 / 0.513 GB, free: 2.832 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.657e-05/0.4348, allocations: 40.28 kB / 0.513 GB, free: 2.785 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 7.41e-07/0.4348, allocations: 0 / 0.513 GB, free: 2.785 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004267/0.4352, allocations: 195.5 kB / 0.5132 GB, free: 2.699 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.458e-05/0.4353, allocations: 90.55 kB / 0.5133 GB, free: 2.602 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001408/0.4354, allocations: 128.7 kB / 0.5134 GB, free: 2.496 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.701e-05/0.4354, allocations: 26.77 kB / 0.5134 GB, free: 2.465 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.788e-05/0.4355, allocations: 91.95 kB / 0.5135 GB, free: 2.375 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.808e-05/0.4356, allocations: 45.17 kB / 0.5136 GB, free: 2.34 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.634e-05/0.4356, allocations: 23.27 kB / 0.5136 GB, free: 2.32 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.4358, allocations: 325.8 kB / 0.5139 GB, free: 2 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.59e-05/0.4358, allocations: 31.28 kB / 0.5139 GB, free: 1.996 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.581e-05/0.4359, allocations: 35.42 kB / 0.5139 GB, free: 1.988 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002463/0.4362, allocations: 157.9 kB / 0.5141 GB, free: 1.906 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.4362, allocations: 0 / 0.5141 GB, free: 1.906 MB / 382.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002307/0.4364, allocations: 157.6 kB / 0.5143 GB, free: 1.824 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.49e-05/0.4365, allocations: 55.06 kB / 0.5143 GB, free: 1.785 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.4365, allocations: 4.062 kB / 0.5143 GB, free: 1.781 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.636e-05/0.4365, allocations: 0 / 0.5143 GB, free: 1.781 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.296e-06/0.4365, allocations: 2.328 kB / 0.5143 GB, free: 1.781 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-06/0.4365, allocations: 0 / 0.5143 GB, free: 1.781 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.016e-05/0.4366, allocations: 11.06 kB / 0.5143 GB, free: 1.773 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.749e-05/0.4366, allocations: 8.203 kB / 0.5143 GB, free: 1.77 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.0001324/0.4368, allocations: 165.2 kB / 0.5145 GB, free: 1.621 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.324e-05/0.4368, allocations: 13.58 kB / 0.5145 GB, free: 1.613 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.018e-05/0.4368, allocations: 9.203 kB / 0.5145 GB, free: 1.609 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.283e-06/0.4368, allocations: 4 kB / 0.5145 GB, free: 1.605 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.4368, allocations: 1.438 kB / 0.5145 GB, free: 1.605 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.4368, allocations: 0 / 0.5145 GB, free: 1.605 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001344/0.437, allocations: 183.4 kB / 0.5147 GB, free: 1.402 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.437, allocations: 0 / 0.5147 GB, free: 1.402 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.423e-06/0.437, allocations: 1.828 kB / 0.5147 GB, free: 1.402 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.437, allocations: 0 / 0.5147 GB, free: 1.402 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.523e-05/0.437, allocations: 4.266 kB / 0.5147 GB, free: 1.402 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/0.437, allocations: 1.156 kB / 0.5147 GB, free: 1.402 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.437, allocations: 0 / 0.5147 GB, free: 1.402 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004113/0.4375, allocations: 293.7 kB / 0.515 GB, free: 1.262 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.598e-05/0.4375, allocations: 84.81 kB / 0.5151 GB, free: 1.164 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.927e-05/0.4375, allocations: 5.375 kB / 0.5151 GB, free: 1.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.823e-05/0.4376, allocations: 3.781 kB / 0.5151 GB, free: 1.16 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.412e-05/0.4376, allocations: 6.375 kB / 0.5151 GB, free: 1.156 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.243e-05/0.4376, allocations: 3.906 kB / 0.5151 GB, free: 1.156 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.122e-05/0.4377, allocations: 105.2 kB / 0.5152 GB, free: 1.074 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4377, allocations: 1.219 kB / 0.5152 GB, free: 1.074 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001181/0.4389, allocations: 326.4 kB / 0.5155 GB, free: 1.027 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.0009927/0.4399, allocations: 368.3 kB / 0.5158 GB, free: 0.875 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000622/0.4405, allocations: 297.3 kB / 0.5161 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.4405, allocations: 0.625 kB / 0.5161 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002984/0.4408, allocations: 230 kB / 0.5163 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003061/0.4411, allocations: 13.75 kB / 0.5164 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006186/0.4418, allocations: 298.5 kB / 0.5166 GB, free: 456 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002874/0.4421, allocations: 0.7049 MB / 0.5173 GB, free: 15.75 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.519e-05/0.4421, allocations: 0 / 0.5173 GB, free: 15.75 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.316e-05/0.4421, allocations: 9.75 kB / 0.5173 GB, free: 15.74 MB / 398.1 MB Notification: Performance of SimCode: time 2.11e-07/0.4421, allocations: 0 / 0.5173 GB, free: 15.74 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].