Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc.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.TransDatFromEqCirc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|tc_d.1.|tc_d.2.|tc_q.1.|tc_q.2.|to_d.1.|to_d.2.|to_q.1.|to_q.2.|xtr_d.1.|xtr_d.2.|xtr_q.1.|xtr_q.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc") translateModel(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|tc_d.1.|tc_d.2.|tc_q.1.|tc_q.2.|to_d.1.|to_d.2.|to_q.1.|to_q.2.|xtr_d.1.|xtr_d.2.|xtr_q.1.|xtr_q.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001135/0.001135, allocations: 111.2 kB / 17.75 MB, free: 5.223 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.001157/0.001157, allocations: 189.3 kB / 18.67 MB, free: 4.305 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.397/1.397, allocations: 222.9 MB / 242.4 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.1727/0.1727, allocations: 38.04 MB / 330.6 MB, free: 8.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001393/0.001393, allocations: 63.89 kB / 458.8 MB, free: 6.832 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3282/0.3296, allocations: 58.06 MB / 0.5048 GB, free: 7.66 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc): time 0.002882/0.3326, allocations: 2.151 MB / 0.5069 GB, free: 6.156 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001363/0.3339, allocations: 1.062 MB / 0.5079 GB, free: 5.449 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.946e-05/0.334, allocations: 0 / 0.5079 GB, free: 5.449 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001367/0.3342, allocations: 20.38 kB / 0.5079 GB, free: 5.438 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001141/0.3343, allocations: 57.56 kB / 0.508 GB, free: 5.406 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008211/0.3351, allocations: 282.4 kB / 0.5083 GB, free: 5.309 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001588/0.3353, allocations: 114.3 kB / 0.5084 GB, free: 5.273 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.682e-05/0.3353, allocations: 11.36 kB / 0.5084 GB, free: 5.266 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.855e-05/0.3354, allocations: 48.73 kB / 0.5084 GB, free: 5.25 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001035/0.3355, allocations: 67.44 kB / 0.5085 GB, free: 5.227 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.497e-05/0.3356, allocations: 6.391 kB / 0.5085 GB, free: 5.223 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006483/0.3362, allocations: 418.7 kB / 0.5089 GB, free: 5.086 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.713e-05/0.3363, allocations: 38.22 kB / 0.5089 GB, free: 5.078 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.445e-05/0.3363, allocations: 37.48 kB / 0.509 GB, free: 5.059 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007278/0.3371, allocations: 0.5145 MB / 0.5095 GB, free: 4.965 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.3371, allocations: 0 / 0.5095 GB, free: 4.965 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.156e-06/0.3371, allocations: 1.094 kB / 0.5095 GB, free: 4.965 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.053e-06/0.3371, allocations: 0 / 0.5095 GB, free: 4.965 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0004578/0.3376, allocations: 466.3 kB / 0.5099 GB, free: 4.516 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.185e-05/0.3376, allocations: 12.95 kB / 0.5099 GB, free: 4.512 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.816e-05/0.3377, allocations: 14.78 kB / 0.5099 GB, free: 4.504 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001842/0.3379, allocations: 190.1 kB / 0.5101 GB, free: 4.293 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.302e-05/0.3379, allocations: 2.625 kB / 0.5101 GB, free: 4.293 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.63e-05/0.3379, allocations: 6.219 kB / 0.5101 GB, free: 4.289 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002097/0.3382, allocations: 97.7 kB / 0.5102 GB, free: 4.242 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.167e-06/0.3382, allocations: 0 / 0.5102 GB, free: 4.242 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.277e-05/0.3382, allocations: 1.219 kB / 0.5102 GB, free: 4.242 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.051e-06/0.3382, allocations: 5.375 kB / 0.5102 GB, free: 4.238 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001096/0.3383, allocations: 57.5 kB / 0.5103 GB, free: 4.227 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001748/0.3385, allocations: 184.2 kB / 0.5105 GB, free: 4.02 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001571/0.3387, allocations: 134 kB / 0.5106 GB, free: 3.938 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001363/0.3388, allocations: 122.7 kB / 0.5107 GB, free: 3.871 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.042e-05/0.3388, allocations: 0 / 0.5107 GB, free: 3.871 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.561e-05/0.3388, allocations: 32.52 kB / 0.5107 GB, free: 3.832 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 9.32e-07/0.3389, allocations: 4.969 kB / 0.5107 GB, free: 3.828 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005479/0.3394, allocations: 291 kB / 0.511 GB, free: 3.719 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.618e-05/0.3395, allocations: 98.58 kB / 0.5111 GB, free: 3.617 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001199/0.3396, allocations: 136.7 kB / 0.5113 GB, free: 3.508 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.214e-05/0.3396, allocations: 26.77 kB / 0.5113 GB, free: 3.477 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.729e-05/0.3397, allocations: 93.77 kB / 0.5114 GB, free: 3.387 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.972e-05/0.3397, allocations: 56.22 kB / 0.5114 GB, free: 3.344 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.991e-05/0.3398, allocations: 28.2 kB / 0.5114 GB, free: 3.324 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.546e-05/0.3399, allocations: 322 kB / 0.5118 GB, free: 3.008 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000105/0.34, allocations: 57.61 kB / 0.5118 GB, free: 2.996 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.769e-05/0.3401, allocations: 68.44 kB / 0.5119 GB, free: 2.977 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002967/0.3404, allocations: 225.5 kB / 0.5121 GB, free: 2.875 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.073e-06/0.3404, allocations: 0 / 0.5121 GB, free: 2.875 MB / 382.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002882/0.3407, allocations: 224.7 kB / 0.5123 GB, free: 2.773 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.026e-05/0.3408, allocations: 56.58 kB / 0.5124 GB, free: 2.738 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.3408, allocations: 5.766 kB / 0.5124 GB, free: 2.734 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.675e-05/0.3408, allocations: 0 / 0.5124 GB, free: 2.734 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.032e-06/0.3408, allocations: 0 / 0.5124 GB, free: 2.734 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.242e-05/0.3408, allocations: 5.781 kB / 0.5124 GB, free: 2.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.685e-05/0.3409, allocations: 15.81 kB / 0.5124 GB, free: 2.719 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.082e-05/0.3409, allocations: 7.297 kB / 0.5124 GB, free: 2.719 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.0001337/0.3411, allocations: 181 kB / 0.5126 GB, free: 2.566 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.896e-05/0.3411, allocations: 19.39 kB / 0.5126 GB, free: 2.559 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.508e-05/0.3411, allocations: 12.8 kB / 0.5126 GB, free: 2.547 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.916e-06/0.3411, allocations: 0 / 0.5126 GB, free: 2.547 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.3411, allocations: 0 / 0.5126 GB, free: 2.547 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.295e-05/0.3412, allocations: 89.09 kB / 0.5127 GB, free: 2.445 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.622e-05/0.3412, allocations: 5.062 kB / 0.5127 GB, free: 2.445 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.866e-05/0.3413, allocations: 3.406 kB / 0.5127 GB, free: 2.445 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.945e-05/0.3413, allocations: 6.938 kB / 0.5127 GB, free: 2.441 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0005796/0.3419, allocations: 0.5069 MB / 0.5132 GB, free: 2.172 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0004893/0.3424, allocations: 0.5155 MB / 0.5137 GB, free: 1.867 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003095/0.3427, allocations: 369.1 kB / 0.514 GB, free: 1.641 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.242e-05/0.3428, allocations: 103 kB / 0.5141 GB, free: 1.562 MB / 382.1 MB Notification: Performance of Backend: time 1.71e-07/0.3428, allocations: 0 / 0.5141 GB, free: 1.562 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009511/0.3437, allocations: 0.6307 MB / 0.5148 GB, free: 1.176 MB / 382.1 MB Notification: Performance of SimCode: time 0.000567/0.3443, allocations: 0.7935 MB / 0.5155 GB, free: 476 kB / 382.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]. Error: Internal error SimCode DAEmode: The model PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc could not be translated