Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_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.00107/0.00107, allocations: 107 kB / 17.74 MB, free: 5.355 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.001035/0.001035, allocations: 190.4 kB / 18.68 MB, free: 4.426 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.295/1.295, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1722/0.1722, allocations: 38.04 MB / 330.6 MB, free: 8.707 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001928/0.001928, allocations: 59.91 kB / 458.8 MB, free: 6.852 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2906/0.2926, allocations: 58.07 MB / 0.5048 GB, free: 7.773 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2): time 0.002617/0.2952, allocations: 2.105 MB / 0.5068 GB, free: 6.305 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00229/0.2975, allocations: 2.034 MB / 0.5088 GB, free: 4.945 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.204e-05/0.2976, allocations: 1.156 kB / 0.5088 GB, free: 4.945 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001194/0.2977, allocations: 10.02 kB / 0.5088 GB, free: 4.941 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.802e-05/0.2978, allocations: 33.53 kB / 0.5089 GB, free: 4.922 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001859/0.2997, allocations: 0.8344 MB / 0.5097 GB, free: 4.641 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001162/0.2998, allocations: 78.34 kB / 0.5098 GB, free: 4.613 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.999e-05/0.2998, allocations: 4.938 kB / 0.5098 GB, free: 4.613 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.588e-05/0.2999, allocations: 40.08 kB / 0.5098 GB, free: 4.594 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.654e-05/0.3, allocations: 53.31 kB / 0.5099 GB, free: 4.57 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.349e-05/0.3, allocations: 1.281 kB / 0.5099 GB, free: 4.57 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001867/0.3019, allocations: 1.4 MB / 0.5112 GB, free: 4.141 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.99e-05/0.302, allocations: 30.56 kB / 0.5112 GB, free: 4.133 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.398e-05/0.302, allocations: 41.22 kB / 0.5113 GB, free: 4.105 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001571/0.3036, allocations: 1.357 MB / 0.5126 GB, free: 3.855 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.3036, allocations: 5.25 kB / 0.5126 GB, free: 3.852 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3036, allocations: 0 / 0.5126 GB, free: 3.852 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.588e-06/0.3036, allocations: 0 / 0.5126 GB, free: 3.852 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.0004987/0.3041, allocations: 0.5713 MB / 0.5132 GB, free: 3.328 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.412e-05/0.3042, allocations: 12.8 kB / 0.5132 GB, free: 3.324 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.112e-05/0.3042, allocations: 13.41 kB / 0.5132 GB, free: 3.316 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001213/0.3043, allocations: 208.8 kB / 0.5134 GB, free: 3.09 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.566e-06/0.3043, allocations: 0.9375 kB / 0.5134 GB, free: 3.09 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.189e-05/0.3044, allocations: 1.984 kB / 0.5134 GB, free: 3.09 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001507/0.3045, allocations: 103 kB / 0.5135 GB, free: 3.039 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.983e-06/0.3045, allocations: 0.5625 kB / 0.5135 GB, free: 3.039 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.768e-06/0.3045, allocations: 1.156 kB / 0.5135 GB, free: 3.039 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.136e-06/0.3046, allocations: 0 / 0.5135 GB, free: 3.039 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.219e-05/0.3046, allocations: 61.77 kB / 0.5136 GB, free: 3.027 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001091/0.3048, allocations: 188.7 kB / 0.5137 GB, free: 2.82 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001001/0.3049, allocations: 100.4 kB / 0.5138 GB, free: 2.766 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.406e-05/0.305, allocations: 98.03 kB / 0.5139 GB, free: 2.723 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.484e-06/0.305, allocations: 3.938 kB / 0.5139 GB, free: 2.719 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.461e-05/0.305, allocations: 37.03 kB / 0.514 GB, free: 2.68 MB / 382.1 MB Notification: Performance of pre-optimization done (n=24): time 1.152e-06/0.305, allocations: 0 / 0.514 GB, free: 2.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004168/0.3054, allocations: 316.8 kB / 0.5143 GB, free: 2.57 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.221e-05/0.3055, allocations: 98.91 kB / 0.5144 GB, free: 2.473 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.758e-05/0.3056, allocations: 150.5 kB / 0.5145 GB, free: 2.363 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.416e-06/0.3056, allocations: 25.7 kB / 0.5145 GB, free: 2.332 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.938e-05/0.3056, allocations: 104.5 kB / 0.5146 GB, free: 2.234 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.437e-05/0.3057, allocations: 80.42 kB / 0.5147 GB, free: 2.172 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.075e-05/0.3057, allocations: 31.64 kB / 0.5147 GB, free: 2.148 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.386e-05/0.3058, allocations: 333.2 kB / 0.5151 GB, free: 1.824 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.24e-05/0.3058, allocations: 56.05 kB / 0.5151 GB, free: 1.816 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.934e-05/0.3059, allocations: 66.22 kB / 0.5152 GB, free: 1.801 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002067/0.3061, allocations: 254.8 kB / 0.5154 GB, free: 1.699 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.3061, allocations: 0.6562 kB / 0.5154 GB, free: 1.699 MB / 382.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002515/0.3064, allocations: 238 kB / 0.5156 GB, free: 1.598 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.471e-05/0.3065, allocations: 64 kB / 0.5157 GB, free: 1.562 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.108e-06/0.3065, allocations: 0.5 kB / 0.5157 GB, free: 1.562 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.076e-05/0.3065, allocations: 0.5625 kB / 0.5157 GB, free: 1.562 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.312e-06/0.3065, allocations: 4.734 kB / 0.5157 GB, free: 1.559 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.028e-06/0.3065, allocations: 0.5625 kB / 0.5157 GB, free: 1.559 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.837e-05/0.3066, allocations: 13.14 kB / 0.5157 GB, free: 1.551 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.687e-05/0.3066, allocations: 6.891 kB / 0.5157 GB, free: 1.551 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.000144/0.3068, allocations: 199.9 kB / 0.5159 GB, free: 1.395 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.139e-05/0.3068, allocations: 21.47 kB / 0.5159 GB, free: 1.383 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.795e-05/0.3068, allocations: 9.984 kB / 0.516 GB, free: 1.375 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.455e-06/0.3068, allocations: 4.531 kB / 0.516 GB, free: 1.371 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.3068, allocations: 0.7031 kB / 0.516 GB, free: 1.371 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.489e-05/0.3069, allocations: 94.33 kB / 0.516 GB, free: 1.266 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.822e-05/0.3069, allocations: 3.812 kB / 0.5161 GB, free: 1.266 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.818e-05/0.3069, allocations: 8.906 kB / 0.5161 GB, free: 1.262 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.777e-05/0.307, allocations: 6.719 kB / 0.5161 GB, free: 1.258 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0007546/0.3077, allocations: 0.7206 MB / 0.5168 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0005083/0.3082, allocations: 0.6666 MB / 0.5174 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002576/0.3085, allocations: 401.7 kB / 0.5178 GB, free: 428 kB / 382.1 MB Notification: Performance of sorting global known variables: time 5.345e-05/0.3086, allocations: 112.7 kB / 0.5179 GB, free: 344 kB / 382.1 MB Notification: Performance of Backend: time 3.2e-07/0.3086, allocations: 0 / 0.5179 GB, free: 344 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001498/0.3101, allocations: 0.9292 MB / 0.5188 GB, free: 15.88 MB / 398.1 MB Notification: Performance of SimCode: time 0.0007255/0.3108, allocations: 0.9054 MB / 0.5197 GB, free: 15.16 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]. Error: Internal error SimCode DAEmode: The model PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2 could not be translated