Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat.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.EqCircFromTransDat,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat") translateModel(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001127/0.001127, allocations: 110.2 kB / 17.75 MB, free: 5.332 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.001036/0.001036, allocations: 185.4 kB / 18.67 MB, free: 4.41 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.289/1.289, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1745/0.1745, allocations: 38.03 MB / 330.6 MB, free: 8.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001299/0.001299, allocations: 67.83 kB / 458.8 MB, free: 6.809 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2891/0.2904, allocations: 58.06 MB / 0.5048 GB, free: 8.07 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat): time 0.002845/0.2933, allocations: 2.148 MB / 0.5069 GB, free: 6.562 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002373/0.2957, allocations: 2.045 MB / 0.5089 GB, free: 5.191 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.585e-05/0.2957, allocations: 4 kB / 0.5089 GB, free: 5.188 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001175/0.2959, allocations: 10.48 kB / 0.5089 GB, free: 5.184 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.331e-05/0.296, allocations: 46.8 kB / 0.5089 GB, free: 5.156 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00189/0.2979, allocations: 0.8128 MB / 0.5097 GB, free: 4.883 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001485/0.298, allocations: 98.75 kB / 0.5098 GB, free: 4.848 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.448e-05/0.2981, allocations: 8.141 kB / 0.5098 GB, free: 4.844 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.26e-05/0.2982, allocations: 37.45 kB / 0.5099 GB, free: 4.832 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000101/0.2983, allocations: 52.02 kB / 0.5099 GB, free: 4.816 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.596e-05/0.2983, allocations: 2.312 kB / 0.5099 GB, free: 4.816 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001896/0.3002, allocations: 1.385 MB / 0.5113 GB, free: 4.383 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.387e-05/0.3003, allocations: 31.91 kB / 0.5113 GB, free: 4.375 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.881e-05/0.3003, allocations: 37.42 kB / 0.5113 GB, free: 4.355 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001648/0.302, allocations: 1.332 MB / 0.5126 GB, free: 4.105 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.302, allocations: 0 / 0.5126 GB, free: 4.105 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.302, allocations: 1 kB / 0.5126 GB, free: 4.105 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.32e-06/0.302, allocations: 0 / 0.5126 GB, free: 4.105 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0005085/0.3025, allocations: 0.5512 MB / 0.5132 GB, free: 3.59 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.577e-05/0.3026, allocations: 11.83 kB / 0.5132 GB, free: 3.586 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.842e-05/0.3026, allocations: 14.06 kB / 0.5132 GB, free: 3.578 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001277/0.3027, allocations: 200.7 kB / 0.5134 GB, free: 3.359 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.358e-06/0.3028, allocations: 5.469 kB / 0.5134 GB, free: 3.355 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.436e-05/0.3028, allocations: 2.266 kB / 0.5134 GB, free: 3.355 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001368/0.3029, allocations: 76.23 kB / 0.5135 GB, free: 3.316 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.873e-06/0.3029, allocations: 0 / 0.5135 GB, free: 3.316 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.908e-06/0.303, allocations: 5.375 kB / 0.5135 GB, free: 3.312 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.537e-06/0.303, allocations: 4 kB / 0.5135 GB, free: 3.309 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.627e-05/0.303, allocations: 41.52 kB / 0.5135 GB, free: 3.301 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001284/0.3032, allocations: 180.5 kB / 0.5137 GB, free: 3.098 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001083/0.3033, allocations: 81.55 kB / 0.5138 GB, free: 3.047 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.56e-05/0.3034, allocations: 58.67 kB / 0.5138 GB, free: 3.023 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.937e-06/0.3034, allocations: 3.984 kB / 0.5138 GB, free: 3.02 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.771e-05/0.3034, allocations: 40.5 kB / 0.5139 GB, free: 2.973 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.072e-06/0.3034, allocations: 0 / 0.5139 GB, free: 2.973 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004093/0.3038, allocations: 221.3 kB / 0.5141 GB, free: 2.883 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.714e-05/0.3039, allocations: 91.28 kB / 0.5142 GB, free: 2.785 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001318/0.304, allocations: 150.6 kB / 0.5143 GB, free: 2.676 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.358e-05/0.304, allocations: 25.7 kB / 0.5143 GB, free: 2.645 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.6e-05/0.3041, allocations: 98.55 kB / 0.5144 GB, free: 2.551 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5e-05/0.3041, allocations: 49.81 kB / 0.5145 GB, free: 2.512 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.167e-05/0.3042, allocations: 25.08 kB / 0.5145 GB, free: 2.492 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.974e-05/0.3043, allocations: 325.8 kB / 0.5148 GB, free: 2.172 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.441e-05/0.3043, allocations: 41.2 kB / 0.5149 GB, free: 2.164 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.586e-05/0.3044, allocations: 37.33 kB / 0.5149 GB, free: 2.16 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001622/0.3046, allocations: 177.7 kB / 0.5151 GB, free: 2.074 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.3046, allocations: 0 / 0.5151 GB, free: 2.074 MB / 382.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002007/0.3048, allocations: 184.1 kB / 0.5152 GB, free: 1.98 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.2e-05/0.3048, allocations: 47.59 kB / 0.5153 GB, free: 1.949 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.037e-06/0.3048, allocations: 4 kB / 0.5153 GB, free: 1.945 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.227e-05/0.3048, allocations: 0.6094 kB / 0.5153 GB, free: 1.945 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.52e-07/0.3048, allocations: 4.062 kB / 0.5153 GB, free: 1.941 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.329e-06/0.3049, allocations: 1.781 kB / 0.5153 GB, free: 1.941 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.215e-05/0.3049, allocations: 3.594 kB / 0.5153 GB, free: 1.941 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.072e-05/0.3049, allocations: 4.125 kB / 0.5153 GB, free: 1.941 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.457e-05/0.305, allocations: 171.5 kB / 0.5155 GB, free: 1.789 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.216e-05/0.3051, allocations: 16.52 kB / 0.5155 GB, free: 1.781 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.668e-05/0.3051, allocations: 12.97 kB / 0.5155 GB, free: 1.773 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-06/0.3051, allocations: 0.6562 kB / 0.5155 GB, free: 1.773 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.71e-07/0.3051, allocations: 1.625 kB / 0.5155 GB, free: 1.773 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.253e-05/0.3051, allocations: 96.12 kB / 0.5156 GB, free: 1.664 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.166e-05/0.3052, allocations: 3.016 kB / 0.5156 GB, free: 1.664 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.581e-05/0.3052, allocations: 2.469 kB / 0.5156 GB, free: 1.664 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.682e-05/0.3052, allocations: 7.312 kB / 0.5156 GB, free: 1.66 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003589/0.3056, allocations: 426.6 kB / 0.516 GB, free: 1.414 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003981/0.306, allocations: 439.1 kB / 0.5164 GB, free: 1.137 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001627/0.3062, allocations: 171.4 kB / 0.5166 GB, free: 1.051 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.774e-05/0.3062, allocations: 119.9 kB / 0.5167 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of Backend: time 2.91e-07/0.3062, allocations: 3.938 kB / 0.5167 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001415/0.3077, allocations: 0.5931 MB / 0.5173 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of SimCode: time 0.0005418/0.3082, allocations: 0.8008 MB / 0.5181 GB, free: 15.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]. Error: Internal error SimCode DAEmode: The model PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat could not be translated